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.
Can I compose a format of two urls (video+audio)? #24342
Comments
|
Extractor has nothing to do with "composing" in the first place. The goal of extractor is to provide data not to perform any processing. |
|
I nearly feel like saying Without specifying a format, YT currently combines the best audio and best video. So what I asked, YT already does! Maybe not in an extractor but then somewhere else. I merely asked for help combining non-best video-only formats with audio to spare end users the same. I guess I just keep the fallback solution on my own, then. |
I'm working on a fallback for the tvplay.py extractor, since some stream links are not available from the API.
I have found an alternative API. However, it uses EXT-X-MEDIA. So all videos are without audio and the audio tracks is stored separately.
Formats list is accordingly two audio-only and a couple of video-only. Without specifying a format, yt selected the highest video resolution and combining the audio.
But is it possible to, in the extractor, to "compose" joint formats for the different resolutions. So, if I want the second best resolution, I wouldn't have to add eg.: -f video[height=720]+bestaudio