[FFmpeg-trac] #9159(undetermined:new): Plays only one segment of audio iOS mobile
FFmpeg
trac at avcodec.org
Wed Mar 24 12:00:52 EET 2021
#9159: Plays only one segment of audio iOS mobile
--------------------------------------+----------------------------------
Reporter: dkirilenko | Type: defect
Status: new | Priority: normal
Component: undetermined | Version: 4.3.2
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Summary of the bug:
I use next command to create m3u8 playlist with video + audio
{{{
ffmpeg -use_wallclock_as_timestamps 1
-loglevel warning
-fflags nobuffer
-rtsp_transport tcp
-i rtsp://127.0.0.1:10270/proxyStream
-c:v copy
-c:a aac -b:a 64k -ac:a 2 -ar 44100 -af aresample=async=1000
-g 48
-keyint_min 48
-sc_threshold 0
-use_localtime 1
-hls_time 2
-hls_list_size 2
-hls_flags delete_segments+append_list
-hls_segment_type fmp4
-hls_fmp4_init_filename '5d7f91b5a34dbe6f53a78a6a-init.mp4'
-hls_base_url '/api/v1/cameras/5d7f91b5a34dbe6f53a78a6a/live?file='
-hls_segment_filename 5d7f91b5a34dbe6f53a78a6a-%s.m4s
5d7f91b5a34dbe6f53a78a6a.m3u8
}}}
{{{
ffmpeg -version
ffmpeg version N-97685-gde7b690300 Copyright (c) 2000-2020 the FFmpeg
developers
built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
configuration: --enable-libx264 --enable-libfdk-aac --enable-gpl --enable-
nonfree --enable-shared --enable-pic --enable-openssl
libavutil 56. 43.100 / 56. 43.100
libavcodec 58. 83.100 / 58. 83.100
libavformat 58. 43.100 / 58. 43.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 80.100 / 7. 80.100
libswscale 5. 6.101 / 5. 6.101
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
}}}
In the player, it plays stream video + audio. It works on all platform
except iOS mobile (safari). It just plays one segment of the live video +
sound and then the audio is off. But when I turn OFF/ON sound in the
player it became works but again only one segment. Tried with clappr and
plyr players.
The main point why I'm asking here is that it works properly when I use
`ts` files, ie:
{{{
ffmpeg -use_wallclock_as_timestamps 1
-loglevel warning
-fflags nobuffer
-rtsp_transport tcp
-i rtsp://127.0.0.1:10270/proxyStream
-c:v copy
-c:a aac -b:a 64k -ac:a 2 -ar 44100 -af aresample=async=1000
-g 48
-keyint_min 48
-sc_threshold 0
-use_localtime 1
-hls_time 2
-hls_list_size 2
-hls_flags delete_segments+append_list
-hls_base_url '/api/v1/cameras/5d7f91b5a34dbe6f53a78a6a/live?file='
-hls_segment_filename 5d7f91b5a34dbe6f53a78a6a-%s.ts
5d7f91b5a34dbe6f53a78a6a.m3u8
}}}
Any Ideas why it happens? Thanks
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9159>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list