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

How do I make youtube-dl use standard output (Do not close instantly !!!!) #21893

Closed
WhoseTheNerd opened this issue Jul 25, 2019 · 3 comments
Closed
Labels

Comments

@WhoseTheNerd
Copy link

@WhoseTheNerd WhoseTheNerd commented Jul 25, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

How can I use standard output to pipe output to another programs input. Like so:
$ youtube-dl -x --audio-format wav -o _ https://www.youtube.com/watch?v=n8X9_MgEdCg | sudo ./fm_transmitter -f 88.4 _, with error code Error: Cannot open _, file does not exist
How can I pipe youtube-dl output into ./fm_transmitter input?

@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 25, 2019

it's a dash not an undersore, -o - not -o _.

@remitamine remitamine closed this Jul 25, 2019
@WhoseTheNerd
Copy link
Author

@WhoseTheNerd WhoseTheNerd commented Jul 25, 2019

That will output an error youtube-dl: error: Cannot download a video and extract audio into the same file! Use "-.%(ext)s" instead of "-" as the output template. @remitamine

@WhoseTheNerd WhoseTheNerd changed the title How do I make youtube-dl use standard output How do I make youtube-dl use standard output (Do not close instantly !!!!) Jul 25, 2019
@remitamine
Copy link
Collaborator

@remitamine remitamine commented Jul 25, 2019

which means that you can't extract audio and at the same time send it to standard output.

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.