[FFmpeg-trac] #5419(undetermined:new): HLS EXT-X-DISCONTINUITY tag is not supported

FFmpeg trac at avcodec.org
Sun Apr 10 14:19:51 CEST 2016


#5419: HLS EXT-X-DISCONTINUITY tag is not supported
-------------------------------------+-------------------------------------
             Reporter:  xyq204101    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  git-master   |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by xyq204101):

 Network is not required for both input and output.

 It can be reproduced locally using the following ffmpeg commands:

 First, generate m3u8 file and segments:
 {{{
 ffmpeg -i test.mp4 -hls_list_size 0 -hls_segment_filename 'test%03d.ts'
 out.m3u8
 }}}
 The test.mp4 file I've used is (http://www.sample-
 videos.com/video/mp4/720/big_buck_bunny_720p_50mb.mp4)

 Then change the out.m3u8 file to swap the second and third segment and add
 #EXT-X-DISCONTINUITY tags before those two segments

 {{{
 First few lines of original m3u8

 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:10
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.400000,
 test000.ts
 #EXTINF:4.560000,
 test001.ts
 #EXTINF:3.120000,
 test002.ts
 #EXTINF:5.640000,
 test003.ts

 Modified:

 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-TARGETDURATION:10
 #EXT-X-MEDIA-SEQUENCE:0
 #EXTINF:8.400000,
 test000.ts
 #EXT-X-DISCONTINUITY
 #EXTINF:3.120000,
 test002.ts
 #EXT-X-DISCONTINUITY
 #EXTINF:4.560000,
 test001.ts
 #EXTINF:5.640000,
 test003.ts
 }}}

 Then use the following ffmpeg command to convert that to flv

 {{{
 ffmpeg -i out.m3u8  -acodec copy -vcodec copy -bsf:a aac_adtstoasc -f flv
 test.flv
 }}}

 Output:

 {{{
 ffmpeg version 3.0.1-tessus Copyright (c) 2000-2016 the FFmpeg developers
   built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM
 3.5svn)
   configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm
 --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl
 --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm
 --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
 --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger
 --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora
 --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-
 libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-
 ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb
   libavutil      55. 17.103 / 55. 17.103
   libavcodec     57. 24.102 / 57. 24.102
   libavformat    57. 25.100 / 57. 25.100
   libavdevice    57.  0.101 / 57.  0.101
   libavfilter     6. 31.100 /  6. 31.100
   libswscale      4.  0.100 /  4.  0.100
   libswresample   2.  0.101 /  2.  0.101
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, hls,applehttp, from 'out.m3u8':
   Duration: 00:04:41.80, start: 1.458667, bitrate: 0 kb/s
   Program 0
     Metadata:
       variant_bitrate : 0
     Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p,
 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1,
 fltp, 314 kb/s
 File 'test.flv' already exists. Overwrite ? [y/N] y
 Output #0, flv, to 'test.flv':
   Metadata:
     encoder         : Lavf57.25.100
     Stream #0:0: Video: h264 ([7][0][0][0] / 0x0007), yuv420p, 1280x720
 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1k tbn, 90k tbc
     Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, 5.1,
 314 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8341; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8363; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8384; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8341; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8381; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8405; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8427; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8448; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8421; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8469; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8491; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8512; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8461; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8501; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8533; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8555; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8576; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8541; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8581; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8597; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8619; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8640; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8621; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8661; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8683; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8704; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8661; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8701; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8725; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8747; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8768; changing to 16000. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:0; previous:
 15981, current: 8741; changing to 15981. This may result in incorrect
 timestamps in the output file.
 [flv @ 0x7ff473816800] Non-monotonous DTS in output stream 0:1; previous:
 16000, current: 8789; changing to 16000. This may result in incorrect
 timestamps in the output file.

 ... A lot more similar errors
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5419#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list