-
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
No stdout streaming for reddit, writes to file instead (-.mp4) #27265
Comments
There are no video+audio formats served as single fil for this video. |
Isn't it reasonable to still let youtube-dl output to stdout when user specifies it, even if it needs to create temp files to merge? |
No, since this defeats the whole point of streaming to stdout. |
The point is up to the user imo, it might be to consume it from another program or to pipe it reliably to a media player, it makes more sense for the application to honor that contract if it can than to break it. I'd rather have it emit a warning that it can't purely stream, and is reverting to streaming after merge. |
ffmpeg just errors if you try to stream mp4 to stdout, so that might be a more useful behaviour than silently writing to |
Reddit offers DASH-mpeg and HLS urls together with a `fallback` which doesn't have audio. To make this work, I had to download the video locally with youtube-dl and re-encode it before sending it to Telegram servers, as the bot API don't accept DASH-mpeg or HLS. Tried to keep the video in memory only, but there's no way to output to stdout due to this bug, 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
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
Verbose log
Description
-o -
doesn't redirect to stdout for reddit but creates a file instead (-.mp4)You can run this command to reproduce
youtube-dl https://www.reddit.com/r/watchpeoplesurvive/comments/k3aoyn/f1_driver_romain_grosjean_coming_out_out_of_the -o - > hello.mp4
The text was updated successfully, but these errors were encountered: