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

Download to /dev/null ? #9682

Closed
FlorentCoppint opened this issue Jun 3, 2016 · 6 comments
Closed

Download to /dev/null ? #9682

FlorentCoppint opened this issue Jun 3, 2016 · 6 comments

Comments

@FlorentCoppint
Copy link

@FlorentCoppint FlorentCoppint commented Jun 3, 2016

Hi everyone,

I have a little issue using Youtube-dl and downloading to /dev/null (black hole) on Ubuntu.

I use last pip packaged version : youtube-dl --version
2016.05.30.2

I run : youtube-dl --no-part --no-cache-dir -o '/dev/null' https://www.youtube.com/watch?v=e_I4i4whdXY

And it wants to create "/dev/null.f264" !

ERROR: unable to open for writing: [Errno 13] Permission denied: '/dev/null.f264'

On Windows, it works fine using "-o NUL".

Any hint on that issue ?

Thank you.
Florent

@TRox1972
Copy link
Contributor

@TRox1972 TRox1972 commented Jun 3, 2016

Does -o /dev/null/ work?

@FlorentCoppint
Copy link
Author

@FlorentCoppint FlorentCoppint commented Jun 3, 2016

@TRox1972 no, 'null' is a character special file, not a directory. So youtube-dl tries to create "/dev/null/.f264"

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2016

Specify single file format, e.g. -f best.

@dstftw dstftw closed this Jun 3, 2016
@FlorentCoppint
Copy link
Author

@FlorentCoppint FlorentCoppint commented Jun 3, 2016

@dstftw That's it, thank you ;)

@FlorentCoppint
Copy link
Author

@FlorentCoppint FlorentCoppint commented Jun 3, 2016

@dstftw But I don't understand, according to manual "best" is the default choice for format selection, isn't it ?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Jun 3, 2016

No. -f bestvideo+bestaudio/best is the default.

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