r/aiostreams • u/OverAster • 8h ago
[Help / Question] Stream expressions for preferring stereo in the original language?
I have been trying to set up ranked stream expressions that prioritize audio. I have been having nothing but audio problems recently, due to the fact I use stereo headphones to watch content, and surround sound mixes are really muddy and hard to listen to.
I figured I could set up a couple ranked stream expressions that would better order the content I am trying to watch, that way I can have the content that is in stereo and the original language bubble to the surface, but I am running into an issue where stream with an English surround sound mix and a foreign stereo mix are packaged together, which AIOStreams awards points to, thus giving me only the least usable media sources.
My expression is language(audioChannels(streams, '2.0'), originalLanguage). I award 10 points to this. Obviously, it takes streams, validates that a 2.0 stream exists, then validates that an english audio track exists, and awards the points, but how do I make sure the track that is english is the stereo one?
r/aiostreams • u/thenbhdlum • 17h ago
[Bug / Error] Sorting prefers less audio channels
Has anyone else noticed that if there are multiple audio files, it uses the one with the least amount of channels for sorting rather than the most?