Error merging youtube dash video #3168

Closed
opened 2026-02-21 01:08:43 -05:00 by deekerman · 9 comments
Owner

Originally created by @LukeMauldin on GitHub (Oct 13, 2014).

Previously merging of webm youtube videos was supported but now I am receiving the error below:

avconv -y -i 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.f171.webm' -i 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.f242.webm' -c copy -map 0✌️0 -map 1🅰️0 -shortest 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.webm'
avconv version 11, Copyright (c) 2000-2014 the Libav developers
built on Oct 13 2014 13:10:27 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
Input #0, matroska,webm, from 'CppCon 2014 - Titus Winters 'The Philosophy of Google's C++ Code'-NOCElcMcFik.f171.webm':
Duration: 01:00:03.75, start: 0.000000, bitrate: N/A
Stream #0.0(eng): Audio: vorbis, 44100 Hz, stereo, fltp (default)
Input #1, matroska,webm, from 'CppCon 2014 - Titus Winters 'The Philosophy of Google's C++ Code'-NOCElcMcFik.f242.webm':
Duration: 01:00:03.73, start: 0.000000, bitrate: N/A
Stream #1.0(eng): Video: vp9, yuv420p, 426x240, PAR 1:1 DAR 71:40, 29.97 fps, 1k tbn (default)
Stream map '0✌️0' matches no streams.

avconv version:
avconv version 11, Copyright (c) 2000-2014 the Libav developers
built on Oct 13 2014 13:10:27 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
avconv 11
libavutil 54. 3. 0 / 54. 3. 0
libavcodec 56. 1. 0 / 56. 1. 0
libavformat 56. 1. 0 / 56. 1. 0
libavdevice 55. 0. 0 / 55. 0. 0
libavfilter 5. 0. 0 / 5. 0. 0
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0. 0 / 3. 0. 0

Originally created by @LukeMauldin on GitHub (Oct 13, 2014). Previously merging of webm youtube videos was supported but now I am receiving the error below: avconv -y -i 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.f171.webm' -i 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.f242.webm' -c copy -map 0:v:0 -map 1:a:0 -shortest 'CppCon 2014 - Titus Winters '"'"'The Philosophy of Google'"'"'s C++ Code'"'"'-NOCElcMcFik.webm' avconv version 11, Copyright (c) 2000-2014 the Libav developers built on Oct 13 2014 13:10:27 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) Input #0, matroska,webm, from 'CppCon 2014 - Titus Winters 'The Philosophy of Google's C++ Code'-NOCElcMcFik.f171.webm': Duration: 01:00:03.75, start: 0.000000, bitrate: N/A Stream #0.0(eng): Audio: vorbis, 44100 Hz, stereo, fltp (default) Input #1, matroska,webm, from 'CppCon 2014 - Titus Winters 'The Philosophy of Google's C++ Code'-NOCElcMcFik.f242.webm': Duration: 01:00:03.73, start: 0.000000, bitrate: N/A Stream #1.0(eng): Video: vp9, yuv420p, 426x240, PAR 1:1 DAR 71:40, 29.97 fps, 1k tbn (default) Stream map '0:v:0' matches no streams. avconv version: avconv version 11, Copyright (c) 2000-2014 the Libav developers built on Oct 13 2014 13:10:27 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn) avconv 11 libavutil 54. 3. 0 / 54. 3. 0 libavcodec 56. 1. 0 / 56. 1. 0 libavformat 56. 1. 0 / 56. 1. 0 libavdevice 55. 0. 0 / 55. 0. 0 libavfilter 5. 0. 0 / 5. 0. 0 libavresample 2. 1. 0 / 2. 1. 0 libswscale 3. 0. 0 / 3. 0. 0
deekerman 2026-02-21 01:08:43 -05:00
Author
Owner

@LukeMauldin commented on GitHub (Oct 13, 2014):

Command used to download video:
youtube-dl -f 171+242 https://www.youtube.com/watch?v=NOCElcMcFik

@LukeMauldin commented on GitHub (Oct 13, 2014): Command used to download video: youtube-dl -f 171+242 https://www.youtube.com/watch\?v\=NOCElcMcFik
Author
Owner

@LukeMauldin commented on GitHub (Oct 13, 2014):

Confirmed that this is a regression introduced in the 2014.10.13 version. The youtube-dl command above works in the 2014.10.05.2 version.

@LukeMauldin commented on GitHub (Oct 13, 2014): Confirmed that this is a regression introduced in the 2014.10.13 version. The youtube-dl command above works in the 2014.10.05.2 version.
Author
Owner

@jaimeMF commented on GitHub (Oct 13, 2014):

This is a caused by 2aefb886fa (requested in #3935), it now picks the video from the first format and the audio from the second one. You'll need to use -f 242+171.

We should document it in the help message.

@jaimeMF commented on GitHub (Oct 13, 2014): This is a caused by 2aefb886faa855518292c4078eb04c40b55d4f90 (requested in #3935), it now picks the video from the first format and the audio from the second one. You'll need to use `-f 242+171`. We should document it in the help message.
Author
Owner

@LukeMauldin commented on GitHub (Oct 13, 2014):

Couldn't youtube-dl inspect the streams and apply some logic to try to auto-determine which is video and audio?

@LukeMauldin commented on GitHub (Oct 13, 2014): Couldn't youtube-dl inspect the streams and apply some logic to try to auto-determine which is video and audio?
Author
Owner

@kaimi commented on GitHub (Oct 23, 2014):

I get this a lot using -f "bestvideo+bestaudio". That’s a problem.

@kaimi commented on GitHub (Oct 23, 2014): I get this a lot using `-f "bestvideo+bestaudio"`. That’s a problem.
Author
Owner

@jaimeMF commented on GitHub (Oct 23, 2014):

@kaimi It should work, please post the output of youtube-dl THE_URL -f bestvideo+bestaudio --verbose.

@jaimeMF commented on GitHub (Oct 23, 2014): @kaimi It should work, please post the output of `youtube-dl THE_URL -f bestvideo+bestaudio --verbose`.
Author
Owner

@kaimi commented on GitHub (Oct 23, 2014):

Oh wow, sorry. Incomplete research in the issues. I do get an error, but not this one – I guess I’ll open a new issue:

[debug] ffmpeg command line: ffmpeg -y -i /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.f248.webm -i /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.f141.m4a -c copy -map 0:v:0 -map 1:a:0 -shortest /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.webm
ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
@kaimi commented on GitHub (Oct 23, 2014): Oh wow, sorry. Incomplete research in the issues. I do get an error, but not this one – I guess I’ll open a new issue: ``` [debug] ffmpeg command line: ffmpeg -y -i /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.f248.webm -i /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.f141.m4a -c copy -map 0:v:0 -map 1:a:0 -shortest /share/videos/inbox/Sips-20141019-Minecraft_-_Skinny_Dipping_-_Cheat_Police_14_Yogscast_Complete_Mod_Pack-srkKpPlyb7M.webm ERROR: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument ```
Author
Owner

@healthyfood commented on GitHub (Nov 7, 2014):

Incredible. It was just about switching the numbers between the + sign! Thanks! First time it worked for me with WebM!(VP9)
youtube-dl --prefer-avconv -tf 172+244 C0DPdy98e4c
gives

[ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.webm"
ERROR: Stream map '0:v:0' matches no streams.

switching the numbers from 172+244 to 244+172 solves it
youtube-dl --prefer-avconv -tf 244+172 C0DPdy98e4c

[ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.webm"

This time it ends without an error but with a merged TEST VIDEO-C0DPdy98e4c.webm file

@healthyfood commented on GitHub (Nov 7, 2014): Incredible. It was just about switching the numbers between the + sign! Thanks! First time it worked for me with WebM!(VP9) `youtube-dl --prefer-avconv -tf 172+244 C0DPdy98e4c` gives ``` [ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.webm" ERROR: Stream map '0:v:0' matches no streams. ``` switching the numbers from 172+244 to 244+172 solves it `youtube-dl --prefer-avconv -tf 244+172 C0DPdy98e4c` ``` [ffmpeg] Merging formats into "TEST VIDEO-C0DPdy98e4c.webm" ``` This time it ends without an error but with a merged `TEST VIDEO-C0DPdy98e4c.webm` file
Author
Owner

@jaimeMF commented on GitHub (Nov 8, 2014):

I have documented that you need to use -f <videoformat>+<audioformat>.

@jaimeMF commented on GitHub (Nov 8, 2014): I have documented that you need to use `-f <videoformat>+<audioformat>`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl-ytdl-org#3168
No description provided.