Opened 7 months ago

Last modified 7 months ago

#9159 new defect

Plays only one segment of audio iOS mobile

Reported by: Den Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Change History (3)

comment:1 by Carl Eugen Hoyos, 7 months ago

Keywords: hls added
Version: 4.3.2unspecified

Please test current FFmpeg git head and report back.

in reply to:  1 comment:2 by Den, 7 months ago

Replying to cehoyos:

Please test current FFmpeg git head and report back.

Here is installed FFmpeg on ubuntu 20. Same problem. The sound is disappearing after loading the next playlist. After some downloads, the sound is back and disappears after load the next playlist.

ffmpeg -version
ffmpeg version n4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
configuration: --enable-libx264 --enable-libfdk-aac --enable-gpl --enable-nonfree --enable-shared --enable-pic --enable-openssl
libavutil      56. 51.100 / 56. 51.100
libavcodec     58. 91.100 / 58. 91.100
libavformat    58. 45.100 / 58. 45.100
libavdevice    58. 10.100 / 58. 10.100
libavfilter     7. 85.100 /  7. 85.100
libswscale      5.  7.100 /  5.  7.100
libswresample   3.  7.100 /  3.  7.100
libpostproc    55.  7.100 / 55.  7.100

comment:3 by Carl Eugen Hoyos, 7 months ago

Please test current FFmpeg git head and report back.

Note: See TracTickets for help on using tickets.