[FFmpeg-trac] #9327(avformat:closed): HLS muxer produces broken fMP4 segments
FFmpeg
trac at avcodec.org
Tue Jul 20 10:43:40 EEST 2021
#9327: HLS muxer produces broken fMP4 segments
-------------------------------------+-------------------------------------
Reporter: maichelmann | Owner: (none)
Type: defect | Status: closed
Priority: normal | Component: avformat
Version: unspecified | Resolution:
Keywords: hls h264 | worksforme
mp4 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by Steven Liu):
Replying to [comment:5 maichelmann]:
> Hi,
>
> thanks for trying to reproduce this. Could you please try to run ffplay
in another console windows while ffmpeg is still running? So that ffplay
plays the live stream that's currently being encoded?
sure, no problem too.
{{{
(base) liuqi05:ufbuild liuqi$ ./ffplay http://127.0.0.1/hls/master.m3u8
ffplay version N-103013-g05c9f6f4ef Copyright (c) 2003-2021 the FFmpeg
developers
built with Apple clang version 12.0.5 (clang-1205.0.22.11)
configuration: --prefix=/usr/local/ --libdir=/usr/local/lib/ --cc=clang
--quiet --enable-htmlpages --enable-libx264 --enable-libxml2 --enable-gpl
--extra-ldflags='-I/usr/local/opt/openssl/include/ -O0 -g3
-fsanitize=address -Wno-error -fPIC -I/usr/local/include' --extra-
ldflags='-O0 -g3 -fsanitize=address -Wno-error -fPIC -L/usr/local/lib
-L/usr/local/opt/openssl/lib' --enable-libfreetype --enable-fontconfig
--enable-libspeex --enable-libopus --enable-libzmq --enable-libx265
--enable-libass --enable-videotoolbox --disable-optimizations --enable-
audiotoolbox --enable-opengl --disable-stripping --samples=../../fate-
suite/ --enable-encoder=hevc_videotoolbox --enable-
hwaccel=hevc_videotoolbox --enable-hwaccel=h264_videotoolbox --enable-
openssl --enable-nonfree --disable-shared --enable-libfdk_aac
libavutil 57. 0.101 / 57. 0.101
libavcodec 59. 3.102 / 59. 3.102
libavformat 59. 4.101 / 59. 4.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.103 / 8. 0.103
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/init.mp4' for reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video108.m4s' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video109.m4s' for
reading
Input #0, hls, from 'http://127.0.0.1/hls/master.m3u8':
Duration: N/A, start: 108.080000, bitrate: 11 kb/s
Program 0
Metadata:
variant_bitrate : 5632000
Stream #0:0: Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661),
yuv444p, 1280x720 [SAR 1:1 DAR 16:9], 11 kb/s, 50 fps, 50 tbr, 12800 tbn
(default)
Metadata:
variant_bitrate : 5632000
compatible_brands: iso5iso6mp41
major_brand : iso5
minor_version : 512
encoder : Lavf59.4.101
[http @ 0x626000039100] Opening 'http://127.0.0.1/hls/video110.m4s' for
reading
[http @ 0x626000033100] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[http @ 0x62600003c100] Opening 'http://127.0.0.1/hls/init.mp4' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video111.m4s' for
reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x616000040280] Found duplicated MOOV Atom.
Skipped it
[http @ 0x626000033100] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[http @ 0x62600004e100] Opening 'http://127.0.0.1/hls/init.mp4' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video112.m4s' for
reading
[http @ 0x626000039100] Opening 'http://127.0.0.1/hls/video113.m4s' for
reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x616000040280] Found duplicated MOOV Atom.
Skipped it
[http @ 0x626000033100] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[http @ 0x626000039100] Opening 'http://127.0.0.1/hls/init.mp4' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video114.m4s' for
reading
[http @ 0x626000051100] Opening 'http://127.0.0.1/hls/video115.m4s' for
reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x616000040280] Found duplicated MOOV Atom.
Skipped it
[http @ 0x626000033100] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[http @ 0x626000054100] Opening 'http://127.0.0.1/hls/init.mp4' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video116.m4s' for
reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x616000040280] Found duplicated MOOV Atom.
Skipped it
[http @ 0x626000033100] Opening 'http://127.0.0.1/hls/video.m3u8' for
reading
[hls @ 0x61600003ff80] Skip ('#EXT-X-VERSION:7')
[http @ 0x626000057100] Opening 'http://127.0.0.1/hls/init.mp4' for
reading
[hls @ 0x61600003ff80] Opening 'http://127.0.0.1/hls/video117.m4s' for
reading
[http @ 0x626000051100] Opening 'http://127.0.0.1/hls/video118.m4s' for
reading
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x616000040280] Found duplicated MOOV Atom.
Skipped it
2021-07-20 15:42:58.261 ffplay[36660:71436098] TSM
AdjustCapsLockLEDForKeyTransitionHandling -
_ISSetPhysicalKeyboardCapsLockLED Inhibit
(base) liuqi05:ufbuild liuqi$ ps -ef|grep ffmpeg
501 36597 1001 0 3:40下午 ttys008 2:59.30
/Users/liuqi/multimedia/upstream_ffmpeg/ufbuild/ffmpeg -threads 4 -re -f
lavfi -i testsrc=size=1280x720:decimals=0:rate=50 -map 0:v:0 -c:v libx264
-b:v 5120K -maxrate 7168K -bufsize 5120K -g 50 -preset fast -f hls
-hls_segment_type fmp4 -hls_time 1s -hls_list_size 60 -var_stream_map
v:0,name:video -master_pl_name master.m3u8 hls/%v.m3u8
501 36665 1058 0 3:43下午 ttys010 0:00.01 grep ffmpeg
(base) liuqi05:ufbuild liuqi$
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9327#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list