Opened 8 years ago
Last modified 7 years ago
#6467 new defect
m3u8 to ts|mp4: Non-monotonous DTS in output stream 0:0... This may result in incorrect timestamps in the output file.
Reported by: | ponpon | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | undetermined |
Version: | unspecified | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
thank you for the good apps
when convering m3u8 to ts|mp4, Non-monotonous DTS....This may result in incorrect timestamps in the output file is displayed.
i don't know the way to stop such a change.
The source is https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8 in https://bitmovin.com/mpeg-dash-hls-examples-sample-streams/. This is the same as that of the comment in #3339.
i tried
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy test.ts|mp4 ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -fflags +genpts (-bsf:a aac_adtstoasc) test.ts|mp4 ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -copyts test.ts|mp4 ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -copytb 1 test.ts|mp4 ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -vsync cfr -r 24 test.ts|mp4 ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy -vsync cfr -r 24 -fflags +genpts (-bsf:a aac_adtstoasc) test.ts|mp4
i don't know the relationship with #5948.
log
ffmpeg -y -i "https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8" -c copy test.ts ffmpeg version N-86499-g1edbf5e20c Copyright (c) 2000-2017 the FFmpeg developers built with clang version 3.9.1 (tags/RELEASE_391/final) configuration: --prefix=/sw --disable-shared --enable-static --enable-gpl --enable-version3 --enable-nonfree --enable-pthreads --optflags=-Ofast --cc=clang-mp-3.9 --cxx=clang++-mp-3.9 --extra-cflags=' -march=native -I/sw/include -I/opt/local/include ' --extra-ldflags=' -L/sw/lib -L/opt/local/lib -fopenmp' --extra-ldlibflags='-L/sw/lib -L/opt/local/lib -static' --target-os=darwin --arch=x86_64 --cpu=corei7-avx --enable-avresample --enable-libfdk-aac --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libxvid --enable-libfreetype --enable-openssl --enable-gnutls --enable-gcrypt --enable-gmp --enable-librtmp --enable-libass --enable-fontconfig --enable-libfribidi --enable-libbluray --enable-libdc1394 --enable-libmodplug --enable-lzma --enable-libx264 --enable-libx265 --enable-libzimg --enable-libvidstab --enable-libsoxr --enable-libsmbclient --enable-libcdio --enable-opengl --enable-opencl --disable-vda --pkg-config-flags=' --libs --static' libavutil 55. 66.100 / 55. 66.100 libavcodec 57. 99.100 / 57. 99.100 libavformat 57. 73.100 / 57. 73.100 libavdevice 57. 7.100 / 57. 7.100 libavfilter 6. 92.100 / 6. 92.100 libavresample 3. 6. 0 / 3. 6. 0 libswscale 4. 7.101 / 4. 7.101 libswresample 2. 8.100 / 2. 8.100 libpostproc 54. 6.100 / 54. 6.100 [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit.m3u8' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-0.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/250kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/500kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/800kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1100kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/1500kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/4000kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/6000kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/en/128kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-1.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/stereo/none/128kbit/seq-1.ts' for reading Input #0, hls,applehttp, from 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8': Duration: 00:14:48.00, start: 0.000000, bitrate: 0 kb/s Program 0 Metadata: variant_bitrate : 258157 Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default) Metadata: variant_bitrate : 831270 comment : English Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 831270 comment : Dubbing Stream #0:4: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 426x180 [SAR 7680:7739 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 258157 Program 1 Metadata: variant_bitrate : 520929 Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default) Metadata: variant_bitrate : 831270 comment : English Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 831270 comment : Dubbing Stream #0:5: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x272 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 520929 Program 2 Metadata: variant_bitrate : 831270 Stream #0:0(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp (default) Metadata: variant_bitrate : 831270 comment : English Stream #0:1(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 831270 comment : Dubbing Stream #0:6: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 640x272 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 831270 Program 3 Metadata: variant_bitrate : 1144430 Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 10285391 comment : Dubbing Stream #0:7: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 960x408 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 1144430 Program 4 Metadata: variant_bitrate : 1558322 Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 10285391 comment : Dubbing Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1280x544 [SAR 544:545 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 1558322 Program 5 Metadata: variant_bitrate : 4149264 Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 10285391 comment : Dubbing Stream #0:9: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x818 [SAR 1636:1635 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 4149264 Program 6 Metadata: variant_bitrate : 6214307 Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 10285391 comment : Dubbing Stream #0:10: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1920x818 [SAR 1636:1635 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 6214307 Program 7 Metadata: variant_bitrate : 10285391 Stream #0:2(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream #0:3(dubbing): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp Metadata: variant_bitrate : 10285391 comment : Dubbing Stream #0:11: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 4096x1744 [SAR 1:1 DAR 256:109], 24 tbr, 90k tbn, 48 tbc Metadata: variant_bitrate : 10285391 Output #0, mpegts, to 'test.ts': Metadata: encoder : Lavf57.73.100 Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 4096x1744 [SAR 1:1 DAR 256:109], q=2-31, 24 tbr, 90k tbn, 90k tbc Metadata: variant_bitrate : 10285391 Stream #0:1(en): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, 5.1, fltp (default) Metadata: variant_bitrate : 10285391 comment : English Stream mapping: Stream #0:11 -> #0:0 (copy) Stream #0:2 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 0x7fca7100b600] Non-monotonous DTS in output stream 0:0; previous: 176250, current: 176250; changing to 176251. This may result in incorrect timestamps in the output file. [mpegts @ 0x7fca7100b600] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 4rate=7266.3kbits/s speed= 6.9x [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 5 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 6 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 7 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 8 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 9 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 10 [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-2.ts' for reading [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 0 [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 1 [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-2.ts' for reading [hls,applehttp @ 0x7fca70801200] No longer receiving playlist 3 [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/audio/surround/en/320kbit/seq-3.ts' for reading [hls,applehttp @ 0x7fca70801200] Opening 'https://bitdash-a.akamaihd.net/content/sintel/hls/video/10000kbit/seq-3.ts' for reading frame= 159 fps= 46 q=-1.0 Lsize= 11198kB time=00:00:06.59 bitrate=13916.3kbits/s speed=1.92x video:10093kB audio:262kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.133783% Exiting normally, received signal 2.
Note:
See TracTickets
for help on using tickets.
This issue happen under the git master.