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

Order dependency between video+audio #4132

Closed
maxnordlund opened this issue Nov 7, 2014 · 3 comments
Closed

Order dependency between video+audio #4132

maxnordlund opened this issue Nov 7, 2014 · 3 comments

Comments

@maxnordlund
Copy link

@maxnordlund maxnordlund commented Nov 7, 2014

I tried to download to separate streams and combine them using the -f bestaudio+bestvideo but it seams that the formats need to be in video+audio order. When I change the ordering it worked flawlessly.

I ran this:

$ youtube-dl ZJPVq71HCbg
[youtube] Confirming age
[youtube] ZJPVq71HCbg: Downloading webpage
[youtube] ZJPVq71HCbg: Downloading video info webpage
[youtube] ZJPVq71HCbg: Extracting video information
[youtube] ZJPVq71HCbg: Downloading DASH manifest
[download] Destination: Etho MindCrack SMP - Episode 187 - Elusive Farmers.f141.m4a
[download] 100% of 38.10MiB in 00:04
[download] Destination: Etho MindCrack SMP - Episode 187 - Elusive Farmers.f136.mp4
[download] 100% of 303.78MiB in 00:22
[ffmpeg] Merging formats into "Etho MindCrack SMP - Episode 187 - Elusive Farmers.m4a"
ERROR: Stream map '0:v:0' matches no streams.

With the this config file:

# Youtube Download config file
# Basic output format "Title.mp4"
--output "%(title)s.%(ext)s"
# Prefer 60 fps videos, but need seperate audio stream. The + combines them.
--format 299+bestaudio/303+bestaudio/298+bestaudio/302+bestaudio/bestaudio+bestvideo/best
--add-metadata
--prefer-ffmpeg
@jaimeMF jaimeMF closed this in c2b61af Nov 8, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 8, 2014

That's intentional (see #3935 for reference), I have documented it. Thanks for the report.

For future reports, please post the output of youtube-dl --verbose URL, it makes debugging problems easier (for example we can quickly see if you are using an outdated version) and it also prints the options from the config file.

@maxnordlund
Copy link
Author

@maxnordlund maxnordlund commented Nov 9, 2014

Ok, that makes a lot of sense, thanks for the link. But I was hoping it would warn you earlier before it started to download, that the options are wrong if it is possible. Otherwise I hope that the error message could be more descriptive then Stream map '0:v:0' matches no streams. which doesn't tell me much unless you know about the ffmpeg flags from #3935.

jaimeMF added a commit that referenced this issue Nov 9, 2014
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Nov 9, 2014

That's a good idea, I've added an error message that suggests changing the order. Thanks!

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.