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

Can I compose a format of two urls (video+audio)? #24342

Closed
nielsrune opened this issue Mar 13, 2020 · 2 comments
Closed

Can I compose a format of two urls (video+audio)? #24342

nielsrune opened this issue Mar 13, 2020 · 2 comments
Labels

Comments

@nielsrune
Copy link

@nielsrune nielsrune commented Mar 13, 2020

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

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Mar 13, 2020

Extractor has nothing to do with "composing" in the first place. The goal of extractor is to provide data not to perform any processing.

@dstftw dstftw closed this Mar 13, 2020
@dstftw dstftw added the incomplete label Mar 13, 2020
@nielsrune
Copy link
Author

@nielsrune nielsrune commented Mar 13, 2020

I nearly feel like saying <irony>Forgive me for asking</irony>

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.

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.