Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WatchESPN: Non-monotonous DTS in output stream 0:1 issues #11287

Closed
trevorcortez opened this issue Nov 24, 2016 · 1 comment
Closed

WatchESPN: Non-monotonous DTS in output stream 0:1 issues #11287

trevorcortez opened this issue Nov 24, 2016 · 1 comment

Comments

@trevorcortez
Copy link

@trevorcortez trevorcortez commented Nov 24, 2016

I've seen similar issues posted here for other sites. I've tried re-compiling the latest FFMPEG, and still have issues.

I'm trying to download from watchESPN for personal use. The URL below is currently valid, I'm not sure how long it will last. I've extracted the appropriate m3u8 url from the page on my own, since youtube-dl doesn't support watchESPN currently. In any case, there seems to be issues with the server-side inserted advertisements, which screw up the resulting file.

  • I've verified and I assure that I'm running youtube-dl 2016.11.22

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
$ youtube-dl -v 'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553' -o output.mkv
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'-v', u'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553', u'-o', u'eastern.mkv']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.11.22
[debug] Python version 2.7.10 - Darwin-16.1.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg N-82622-g42ae9c6-tessus, ffprobe git-2016-11-24-9955123
[debug] Proxy map: {}
[generic] z: Requesting header
[generic] z: Downloading m3u8 information
[debug] Invoking downloader on u'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553'
[download] Destination: eastern.mkv
[debug] ffmpeg command line: ffmpeg -y -headers 'Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20150101 Firefox/47.0 (Chrome)
' -i 'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553' -c copy -f mp4 -bsf:a aac_adtstoasc file:eastern.mkv.part
ffmpeg version N-82622-g42ae9c6-tessus Copyright (c) 2000-2016 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --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. 41.101 / 55. 41.101
  libavcodec     57. 66.107 / 57. 66.107
  libavformat    57. 58.100 / 57. 58.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 67.100 /  6. 67.100
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, hls,applehttp, from 'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553':
  Duration: 03:07:00.06, start: 0.000000, bitrate: 0 kb/s
  Program 0 
    Metadata:
      variant_bitrate : 0
    Stream #0:0: Audio: aac (HE-AACv2) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 1280x720, 29.97 fps, 29.97 tbr, 90k tbn, 60 tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:2: Data: timed_id3 (ID3  / 0x20334449)
    Metadata:
      variant_bitrate : 0
Output #0, mp4, to 'file:eastern.mkv.part':
  Metadata:
    encoder         : Lavf57.58.100
    Stream #0:0: Video: h264 (High) ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
    Metadata:
      variant_bitrate : 0
    Stream #0:1: Audio: aac (HE-AACv2) ([64][0][0][0] / 0x0040), 48000 Hz, stereo, fltp
    Metadata:
      variant_bitrate : 0
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
  Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:1; previous: 720896, current: 0; changing to 720897. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:1; previous: 720897, current: 2048; changing to 720898. This may result in incorrect timestamps in the output file.
[mpegts @ 0x7f969080a400] DTS 1216 < 1349848 out of order
[hls,applehttp @ 0x7f968f800600] DTS 1216 < 1349848 out of order
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:0; previous: 1349848, current: 1216; changing to 1349849. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:1; previous: 720898, current: 4096; changing to 720899. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:0; previous: 1349849, current: 4218; changing to 1349850. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:0; previous: 1349850, current: 7222; changing to 1349851. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:1; previous: 720899, current: 6144; changing to 720900. This may result in incorrect timestamps in the output file.
[mp4 @ 0x7f9690015400] Non-monotonous DTS in output stream 0:0; previous: 1349851, current: 10226; changing to 1349852. This may result in incorrect timestamps in the output file.
[…]

To be sure, I can reproduce this in ffmpeg directly, so it's not an issue with youtube-dl per se. I'm just looking for the right flags to add to the command to avoid this issue.

ffmpeg -i 'http://content-ausc2.uplynk.com/55cf54cc10ea4f40a9f9ee10d601e717/z.m3u8?pbs=c9b5a2fe2e3840c0b4f712d7c4422553' output.mp4
@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented Nov 24, 2016

ffmpeg provides a -loglevel option. Feeding it with error or above can eliminate those warnings.

Such errors indicate that the m3u8 file is not well-formed, and in general it won't affect the result. At the youtube-dl side, you can choose the native HLS downloader:

youtube-dl --hls-prefer-native <the URL>

Closing as it's not a youtube-dl issue. If you find the final file is broken, please go to http://trac.ffmpeg.org/ and report a bug.

@yan12125 yan12125 closed this Nov 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.