[FFmpeg-user] Using ffmpeg with youtube-dl: Non-monotonous DTS in output stream
Tefl Zuren
sjx2170 at hotmail.com
Sat Dec 15 03:45:44 EET 2018
I'm trying to download a video with youtube-dl (http://rg3.github.io/youtube-dl/). It uses ffmpeg. At the beginning of the second group of mpegts files, ffmpeg starts throwing the error "Non-monotonous DTS in output stream 0:0; ... This may result in incorrect timestamps in the output file." and continues for the remainder of the download. The saved mp4 file is only playable up to 20:26 then it freezes. This problem usually occurs only on the TNT and TBS websites. The output is:
youtube-dl https://www.tntdrama.com/movies/a-christmas-story
[TBS] a-christmas-story: Downloading webpage
[TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Downloading JSON metadata
[TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Retrieving Media Token
[TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Downloading XML
[TBS] 4b2d9001ea25d41c9ff0d15c6c9f899af96d333f: Downloading m3u8 information
[download] Destination: A Christmas Story.mp4
ffmpeg version 4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.8 (SUSE Linux)
configuration: --enable-openssl
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
[hls,applehttp @ 0x23c7900] Opening 'https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/seg.key' for reading
[hls,applehttp @ 0x23c7900] Opening 'crypto+https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/seg-0_00000.ts' for reading
Input #0, hls,applehttp, from 'https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/layer7_bk.m3u8?hdntl=exp=1544853868~acl=%2ftnt%2f83b278d50b415d38d9d85e6584e23004%2f*~hmac=421213acd762b1be021249cc78935d1141e301a3b8f31e73318c0131dc384093':
Duration: 01:29:01.24, start: 1.466733, bitrate: 0 kb/s
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Output #0, mp4, to 'file:A Christmas Story.mp4.part':
Metadata:
encoder : Lavf58.20.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp
Metadata:
variant_bitrate : 0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0x23c7900] Opening 'crypto+https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/seg-0_00001.ts' for reading
...
[hls,applehttp @ 0x23c7900] Opening 'crypto+https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/seg-0_00204.ts' for reading
[hls,applehttp @ 0x23c7900] Opening 'crypto+https://tve.cdn.turner.com/tnt/83b278d50b415d38d9d85e6584e23004/layer7/seg-1_00000.ts' for reading
[mp4 @ 0x2479700] Non-monotonous DTS in output stream 0:0; previous: 110426426, current: -6006; changing to 110426427. This may result in incorrect timestamps in the output file.
[mp4 @ 0x2479700] Non-monotonous DTS in output stream 0:0; previous: 110426427, current: -3003; changing to 110426428. This may result in incorrect timestamps in the output file.
[mp4 @ 0x2479700] Non-monotonous DTS in output stream 0:0; previous: 110426428, current: 0; changing to 110426429. This may result in incorrect timestamps in the output file.
[mp4 @ 0x2479700] Non-monotonous DTS in output stream 0:0; previous: 110426429, current: 3003; changing to 110426430. This may result in incorrect timestamps in the output file.
[mp4 @ 0x2479700] Non-monotonous DTS in output stream 0:0; previous: 110426430, current: 6006; changing to 110426431. This may result in incorrect timestamps in the output file.
...
More information about the ffmpeg-user
mailing list