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

Dumping to `stdout` is broken for version `2015.04.26` #5627

Closed
cipriancraciun opened this issue May 6, 2015 · 3 comments
Closed

Dumping to `stdout` is broken for version `2015.04.26` #5627

cipriancraciun opened this issue May 6, 2015 · 3 comments

Comments

@cipriancraciun
Copy link

@cipriancraciun cipriancraciun commented May 6, 2015

As the subject says, if one tries to dump to stdout a video whose ID starts with an underscore (_), youtube-dl instead tries to save it to disk.

youtube-dl --output - -- 'https://www.youtube.com/watch?v=_KYvp8PrCFc'

@yan12125
Copy link
Collaborator

@yan12125 yan12125 commented May 6, 2015

Maybe you need to specify the best format. E.g.

youtube-dl -f best --output - 'https://www.youtube.com/watch?v=_KYvp8PrCFc'
@cipriancraciun
Copy link
Author

@cipriancraciun cipriancraciun commented May 6, 2015

I think I've found the issue: with the latest version (2015.04.26) it seems the option to write to stdout is broken (i.e. --output -).

I've downgraded to 2015.04.09 and it seems to be working now.

@cipriancraciun cipriancraciun changed the title Dumping to `stdout` a YouTube video that starts with and underscore (`_`) fails Dumping to `stdout` is broken for version `2015.04.26` May 6, 2015
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented May 6, 2015

as @yan12125 said you have to use -f best, because when ffmpeg/avconv is installed youtube-dl now defaults to -f bestvideo+bestaudio/best which gives a better quality video. bestvideo+bestaudio doesn't currently support being dump to stdout, and with a naive approach the two files would need to be downloaded first, that's not what you want when reading from stdout. If you really need to output to stdout bestvideo+bestaudio feel free to open a new issue.

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.

3 participants
You can’t perform that action at this time.