You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HLS support in Streamlink currently allows me to select an alternate audio stream with --hls-audio-select but that only allows me to select one audio stream.
As part of our work on tonycpsu/mlbstreamer#1 we would like to download all audio streams and mux them together into one file, which allows the user to select between the available audio streams in both VLC and mplayer.
This is an example playlist which I would like to handle:
I have successfully patched hls.py to pass all the audio streams to MuxedHLSStream() and would like to add this as an option to Streamlink. Would you be willing to add this if I create a PR?
I see two alternatives. Either I add a new command line option or I add a special keyword (for example ALL) as an option to --hls-audio-select which triggers this special case. I'm not sure which option you would prefer and would like some guidance.
The text was updated successfully, but these errors were encountered:
Sure, I'd be will to review it and help get the feature added.
Maybe providing a list to --hls-audio-select would work, you could also add * if you wanted to include them all (this is a pattern used in other arguments). If you need any assistance let me know :)
Thanks! Exactly the kind of feedback and direction I wanted to get before starting. I like the idea of using a list.
I assume that MuxedHLSStream is considered an internal class in src/streamlink/stream/hls.py so it's ok to change the method signature of init to take a list of audio tracks rather than just one?
Nothing else in the code base references this class.
The HLS support in Streamlink currently allows me to select an alternate audio stream with --hls-audio-select but that only allows me to select one audio stream.
As part of our work on tonycpsu/mlbstreamer#1 we would like to download all audio streams and mux them together into one file, which allows the user to select between the available audio streams in both VLC and mplayer.
This is an example playlist which I would like to handle:
I have successfully patched hls.py to pass all the audio streams to
MuxedHLSStream()
and would like to add this as an option to Streamlink. Would you be willing to add this if I create a PR?I see two alternatives. Either I add a new command line option or I add a special keyword (for example
ALL
) as an option to--hls-audio-select
which triggers this special case. I'm not sure which option you would prefer and would like some guidance.The text was updated successfully, but these errors were encountered: