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

Error merging youtube dash video #3940

Closed
LukeMauldin opened this issue Oct 13, 2014 · 9 comments
Closed

Error merging youtube dash video #3940

LukeMauldin opened this issue Oct 13, 2014 · 9 comments
Labels

Comments

@LukeMauldin
Copy link

@LukeMauldin LukeMauldin commented 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

@LukeMauldin
Copy link
Author

@LukeMauldin LukeMauldin commented Oct 13, 2014

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

@LukeMauldin
Copy link
Author

@LukeMauldin LukeMauldin commented 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.

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 13, 2014

This is a caused by 2aefb88 (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.

@LukeMauldin
Copy link
Author

@LukeMauldin LukeMauldin commented Oct 13, 2014

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

@kaimi
Copy link

@kaimi kaimi commented Oct 23, 2014

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

@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Oct 23, 2014

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

@kaimi
Copy link

@kaimi kaimi commented 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
@healthyfood
Copy link

@healthyfood healthyfood commented 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

@jaimeMF jaimeMF closed this in c2b61af Nov 8, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 8, 2014

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

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
4 participants
You can’t perform that action at this time.