Youtube-dl can't merge VP9+Opus youtube videos
See original GitHub issueChecklist
- I’m reporting a broken site support
- I’ve verified that I’m running youtube-dl version 2021.01.24.1
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar issues including closed ones
Verbose log
youtube-dl -v --abort-on-unavailable-fragment -f (bestvideo[vcodec=vp9])+(bestaudio[acodec=opus]) https://youtu.be/g6zva0stnOY --no-continue
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--abort-on-unavailable-fragment', '-f', '(bestvideo[vcodec=vp9])+(bestaudio[acodec=opus])', 'https://youtu.be/g6zva0stnOY', '--no-continue']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.01.24.1
[debug] Python version 3.8.7 (CPython) - Linux-5.10.11-0-lts-x86_64-with
[debug] exe versions: ffmpeg 4.3.1, ffprobe 4.3.1
[debug] Proxy map: {}
[youtube] g6zva0stnOY: Downloading webpage
[youtube] g6zva0stnOY: Downloading MPD manifest
[debug] Invoking downloader on [REDACTED]
[dashsegments] Total fragments: 280
[download] Destination: المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.f302.webm
[download] 100% of 417.83MiB in 24:16
[debug] Invoking downloader on [REDACTED]
[dashsegments] Total fragments: 157
[download] Destination: المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.f251.webm
[download] 100% of 22.60MiB in 00:36
[ffmpeg] Merging formats into "المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.f302.webm' -i 'file:المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:المحاضرة الثانية _ الثرموداينمك _ الجزء الثاني 2021-g6zva0stnOY.temp.webm'
ERROR: Conversion failed!
Traceback (most recent call last):
File "/usr/lib/python3.8/site-packages/youtube_dl/YoutubeDL.py", line 2102, in post_process
files_to_delete, info = pp.run(info)
File "/usr/lib/python3.8/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 523, in run
self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args)
File "/usr/lib/python3.8/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 235, in run_ffmpeg_multiple_files
raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: Conversion failed!
FFmpeg gives me the following error when I run the command mentioned in the above output manually:
[webm @ 0x7fe94ccf40c0] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 5620 >= 5600 av_interleaved_write_frame(): Invalid argument
I’ve tried to re-download it multiple times and the issue persists. Other videos can be merged fine, so it seems like this is a problem with this particular video.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:54 (10 by maintainers)
Top Results From Across the Web
For months, best quality (VP9+Opus) videos sometimes fail to ...
So it looks like a while ago, something changed with YouTube, and if you are trying to download the best quality video and...
Read more >When using youtube-dl with ffmpeg, what merge extension ...
As question title, when I use --merge-output-format, what output extension should be chosen then I can get a file with best sound quality....
Read more >Youtube-dl Tutorial With Examples For Beginners - OSTechNix
This tutorial explains the list of most commonly used Youtube-dl commands to download videos from Youtube and hundreds of websites in Linux.
Read more >yt-dlp(1) - Debian Manpages
yt-dlp is a youtube-dl (https://github.com/ytdl-org/youtube-dl) fork ... --video-multistreams: Allow multiple video streams to be merged ...
Read more >How to force youtube-dl to save Opus-encoded audio as ...
Additional notes: Why do I like to download VP9/Opus formats on YouTube and combine it later on ffmpeg? VP9/Opus are better than H264/AAC....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Vangelis66
You have bigger shit to worry about if you’re on Windows Vista. You do realize you’re on an operating system with no security from Microsoft? There should be no reason for you to be on there other than pure incompetence.
Hello 😃
We have narrowed down the problematic ffmpeg commit to https://github.com/FFmpeg/FFmpeg/commit/2e6636aa87303d37b112e79f093ca39500f92364
This commit disabled the ability for ffmpeg to correct DTS errors when the encoding is VP9, and the mode is a simple copy.
We are testing some patches right now to see if we can restore DTS correction for VP9 without re-introducing 4313.