Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Is it possible to abort if one of the formats is unavailable? #21488
Comments
I'll play around with a few ideas I have... I don't think something like that would be too hard.
Using "137,140" keeps its from merging-- whereas "137+140" merges.
You could run 2 instances of youtube-dl and then use something like "ffmpeg -i someVid.mkv -i someAudio.mp3 MergedVid.mkv" to merge them. Hope this helps! |
I know, but I wanted to avoid doing the merge afterwards while still requiring both inputs. This was a possible workaround idea, since "137,140" does not require both inputs. The problem is, currently I need twice as much space (for the inputs and for the output), and a lot more time (first to download, then to merge). I just want to watch a video in my favorite player instead of YouTube's proprietary slow player!..
How would this help with "on-the-fly" merging?.. Maybe if I find a way to redirect inputs with pipes, but I don't know how to redirect BOTH pipes with simple bash scripting... I think this would be easier to implement within youtube-dl . The audio stream is smaller and it's downloaded first, so it shouldn't take too much resources to keep it in a buffer and merge with the video stream as it's downloading. Alternatively, how about this: download the audio stream first, saving it as a file like it's currently done, and then download the video stream, merging it on the fly?.. I guess the best solution would be to simply require both inputs in case of "137,140". Maybe add another notation (or option) that does not require, but requests them as it's currently done. |
Checklist
Question
When I request a download from Youtube in formats "137,140" (for video and audio, without merging, because it is lengthy and useless), the following happens:
Your video is successfully downloaded!
(...but there is no video, only audio.)
Is it possible to do anything about this situation?