-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
Allow combining formats while writing to stdout #28146
Comments
Could you explain what is the use-case for this? According to your proposal, youtube-dl will download the files to disk, merge them with ffmpeg and then write the final file to stdout. In that case, why not just use |
How could |
Well, I don't know if your use-case is possible with |
My apologies, when opening this feature request I didn't think to explain any specific cases. Here's a contrived example for you. |
^ The one with You can sorta circumvent the problem of using files by using a queue instead of processing multiple files at once, and placing the file into a RAM disk, meaning a semi-virtual area by mounting a folder using the |
Now it's easier to see why muxing doesn't already support stdout; it appears to be more painful than I initially thought. |
For this to work: 1. The downloader must be ffmpeg 2. The selected formats must have the same protocol 3. The formats must be downloadable by ffmpeg to stdout Partial solution for: ytdl-org/youtube-dl#28146, ytdl-org/youtube-dl#27265
For this to work: 1. The downloader must be ffmpeg 2. The selected formats must have the same protocol 3. The formats must be downloadable by ffmpeg to stdout Partial solution for: ytdl-org/youtube-dl#28146, ytdl-org/youtube-dl#27265
Checklist
Description
Currently, youtube-dl wil only stream true "best" to stdout.
If a flag like
-f bestvideo+bestaudio
is specified as well as-o -
, it actually makes a file called-.webm
instead of streaming.A quick search shows that this was briefly discussed in #27265.
However, it was quickly dismissed, with the argument that making temp-files (for combining formats) makes stdout worthless.
I believe it's important to allow temp files with stdout, for example, to pipe the output to another program.
Objectively, it seems as if this would be trivial to program as well.
Please let me know if this can/will be implemented.
Also, thanks for your tireless upkeep of youtube-dl, especially through all the legal issues; you don't get enough credit for that.
The text was updated successfully, but these errors were encountered: