#7024: HLS: I receive "Can't deal with multiple sample timings per sample buffer" from mediaStreamValidator -------------------------------------+------------------------------------- Reporter: loki5100 | Owner: Type: defect | Status: new Priority: normal | Component: Version: unspecified | undetermined Keywords: | Resolution: Blocking: | Blocked By: Analyzed by developer: 0 | Reproduced by developer: 0 -------------------------------------+-------------------------------------
Comment (by loki5100): thanks ceyoyo, with the git version i have another problem when i use hevc ( https://trac.ffmpeg.org/ticket/7023#ticket ), however when i use x264 i can reproduce it : {{{ C:\Temp\ffmpeg>ffmpeg.exe -i "http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4" -loglevel verbose -c:a aac -b:a 128k - c:v libx264 -b:v 4977k -maxrate 4977k -bufsize 7466k -x264opts "keyint=60 :min-keyint=60:scenecut=0" -r 483570000/16117951 -t 30 -sn -movflags faststart -preset ultrafast -pix_fmt yuv420p -hls_time 4 -hls_segment_type fmp4 -hls_list_size 0 -hls_fmp4_init_filename C:\temp\ffmpeg\bbb_init.mp4 C:\temp\ffmpeg\bbb.m3u8 ffmpeg version N-90056-gdc77e64f2d Copyright (c) 2000-2018 the FFmpeg developers built with gcc 7.2.0 (GCC) configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable- bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libblur ay --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable- libshine --enab le-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --en able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable- libmysofa --enabl e-libspeex --enable-libxvid --enable-libmfx --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable- avisynth libavutil 56. 7.101 / 56. 7.101 libavcodec 58. 11.101 / 58. 11.101 libavformat 58. 9.100 / 58. 9.100 libavdevice 58. 1.100 / 58. 1.100 libavfilter 7. 12.100 / 7. 12.100 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [h264 @ 00000042f3c40c00] Reinit context to 1920x1088, pix_fmt: yuv420p Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 creation_time : 2013-12-16T17:44:39.000000Z title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation composer : Sacha Goedegebure Duration: 00:10:34.53, start: 0.000000, bitrate: 3481 kb/s Stream #0:0(und): Video: h264 (High), 1 reference frame (avc1 / 0x31637661), yuv420p(left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 2998 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler Side data: audio service type: main Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264)) Stream #0:2 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [h264 @ 00000042f3c2af40] Reinit context to 1920x1088, pix_fmt: yuv420p [graph 0 input from stream 0:0 @ 00000042f444ccc0] w:1920 h:1080 pixfmt:yuv420p tb:1/30000 fr:30/1 sar:1/1 sws_param:flags=2 [libx264 @ 00000042f3c4a000] using SAR=1/1 [libx264 @ 00000042f3c4a000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 00000042f3c4a000] profile Constrained Baseline, level 4.0 [libx264 @ 00000042f3c4a000] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=0 r ef=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 ch roma_qp_offset=0 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=60 keyint_min=31 scenecut=0 intra_refresh=0 rc_lookahead=0 rc=cbr mbtree=0 bitrate=4977 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=4977 vbv_bufsi ze=7466 nal_hrd=none filler=0 ip_ratio=1.40 aq=0 *** 2 dup! [graph_1_in_0_2 @ 00000042f8bcee00] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x60f [aac @ 00000042f4747b40] Using a PCE to encode channel layout [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb_init.mp4' for writing Output #0, hls, to 'C:\temp\ffmpeg\bbb.m3u8': Metadata: major_brand : isom minor_version : 1 compatible_brands: isomavc1 composer : Sacha Goedegebure title : Big Buck Bunny, Sunflower version artist : Blender Foundation 2008, Janus Bager Kristensen 2013 comment : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net genre : Animation encoder : Lavf58.9.100 Stream #0:0(und): Video: h264 (libx264), 1 reference frame, yuv420p(progressive, left), 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 4977 kb/s, 30 fps, 998795.00 tbn, 30 tbc (default) Metadata: creation_time : 2013-12-16T17:44:39.000000Z handler_name : GPAC ISO Video Handler encoder : Lavc58.11.101 libx264 Side data: cpb: bitrate max/min/avg: 4977000/0/4977000 buffer size: 7466000 vbv_delay: -1 Stream #0:1(und): Audio: aac (LC), 48000 Hz, 5.1(side), fltp, delay 1024, 128 kb/s (default) Metadata: creation_time : 2013-12-16T17:44:42.000000Z handler_name : GPAC ISO Audio Handler encoder : Lavc58.11.101 aac Side data: audio service type: main [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb0.m4s' for writingdrop=0 speed=5.71x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb1.m4s' for writing drop=0 speed=5.86x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb2.m4s' for writing [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb3.m4s' for writing drop=0 speed=5.71x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb4.m4s' for writing drop=0 speed=5.67x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb5.m4s' for writing drop=0 speed=5.46x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb6.m4s' for writing drop=0 speed=5.49x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb7.m4s' for writing drop=0 speed=5.59x [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 No more output streams to write to, finishing. [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb8.m4s' for writing [hls @ 00000042f472b040] Opening 'C:\temp\ffmpeg\bbb.m3u8.tmp' for writing EXT-X-MEDIA-SEQUENCE:0 frame= 901 fps=163 q=-1.0 Lsize=N/A time=00:00:30.01 bitrate=N/A dup=2 drop=0 speed=5.42x video:16798kB audio:470kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (http://distribution.bbb3d.renderfarming.net/video/mp4/bbb_sunflower_1080p_30fps_normal.mp4): Input stream #0:0 (video): 910 packets read (11573775 bytes); 901 frames decoded; Input stream #0:1 (audio): 21 packets read (10080 bytes); Input stream #0:2 (audio): 946 packets read (1210880 bytes); 946 frames decoded (1453056 samples); Total: 1877 packets (12794735 bytes) demuxed Output file #0 (C:\temp\ffmpeg\bbb.m3u8): Output stream #0:0 (video): 901 frames encoded; 901 packets muxed (17201197 bytes); Output stream #0:1 (audio): 1407 frames encoded (1440000 samples); 1408 packets muxed (481577 bytes); Total: 2309 packets (17682774 bytes) muxed [libx264 @ 00000042f3c4a000] frame I:16 Avg QP:23.18 size:141013 [libx264 @ 00000042f3c4a000] frame P:885 Avg QP:25.75 size: 16886 [libx264 @ 00000042f3c4a000] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 00000042f3c4a000] mb P I16..4: 5.7% 0.0% 0.0% P16..4: 21.1% 0.0% 0.0% 0.0% 0.0% skip:73.2% [libx264 @ 00000042f3c4a000] coded y,uvDC,uvAC intra: 22.2% 31.5% 13.1% inter: 9.1% 7.0% 1.0% [libx264 @ 00000042f3c4a000] i16 v,h,dc,p: 62% 17% 12% 9% [libx264 @ 00000042f3c4a000] i8c dc,h,v,p: 65% 18% 12% 5% [libx264 @ 00000042f3c4a000] kb/s:4582.01 [aac @ 00000042f4747b40] Qavg: 134.647 }}} and mediaStreamValidator return me : {{{ mediastreamvalidator: Version 1.2(170822) [ /test/bbb.m3u8 ] Started root playlist download [ /test/bbb.m3u8 ] Started media playlist download Can't deal with multiple sample timings per sample buffer Can't deal with multiple sample timings per sample buffer Can't deal with multiple sample timings per sample buffer Can't deal with multiple sample timings per sample buffer [ /test/bbb.m3u8 ] All media files delivered and have end tag, stopping Processed 9 out of 9 segments Average segment duration: 3.336820 Total segment bitrates (all discontinuities): average: 4714.62 kb/s, max: 6340.88 kb/s Discontinuity: sequence: 0, parsed segment count: 9 of 9, duration: 30.031 sec, average: 4714.62 kb/s, max: 6340.88 kb/s Track ID: 1 Video Codec: avc1 Video profile: Baseline Video level: 4.0 Video resolution: 1920x1080 Video average IDR interval: 1.999870, Standard deviation: 0.000000 Video frame rate: 30.002 Track ID: 2 Audio Codec: AAC-LC Audio sample rate: 48000 Hz Audio channels: 0 Audio channel layout: (null) -------------------------------------------------------------------------------- MUST fix issues -------------------------------------------------------------------------------- Error: Zero sample count --> Detail: Track ID 551 --> Source: bbb.m3u8 - bbb8.m4s }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/7024#comment:2> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac