jellyfin / jellyfin-android

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
1.34k stars 224 forks source link

Prefer Stereo/AAC over 5.1/AC3 on Android #953

Open ChristopherBull opened 1 year ago

ChristopherBull commented 1 year ago

Describe the feature you'd like I would like the Android client to have an option to default to stereo or specific codec (AAC) to avoid transcoding on the server. My video files have 5.1 AC3 as the default audio, which causes a Direct Stream and transcoding when using the Android app, instead of preferring Stereo/AAC for Direct Play (without transcoding).

satmandu commented 1 year ago

I'm having an issue where direct play (confirmed direct play) of video files with 5.1 audio to the 2.5.0-beta.2 android client (using the integrated player) seems to not downmix to stereo, such that only background audio appears to be playing, but not the channels with voice tracks.

Is that connected to this? Or should I open a new issue?

kmarius commented 1 year ago

@satmandu What you are experiencing happens when playing a movie that is in an MP4 container on Android, for some reason audio is not transcoded to stereo. Remuxing the file to MKV beforehand works for me every time. I don't think there is an issue, I've only found a dozen or so threads on Reddit.

Edit: clarification

satmandu commented 1 year ago

@satmandu What you are experiencing happens when playing an MP4 on Android, for some reason audio is not transcoded to stereo. Remuxing to MKV works for me every time. I don't think there is an issue, I've only found a dozen or so threads on Reddit.

The server has a transcode to MP4 on the fly... Should I suggest a feature of transcode to mkv on the fly?

kmarius commented 1 year ago

@satmandu What you are experiencing happens when playing an MP4 on Android, for some reason audio is not transcoded to stereo. Remuxing to MKV works for me every time. I don't think there is an issue, I've only found a dozen or so threads on Reddit.

The server has a transcode to MP4 on the fly... Should I suggest a feature of transcode to mkv on the fly?

What I meant to say is that if the movie is stored as MP4 converting the audio doesn't work, with MKV it works.

Strit commented 8 months ago

I'm having an issue where direct play (confirmed direct play) of video files with 5.1 audio to the 2.5.0-beta.2 android client (using the integrated player) seems to not downmix to stereo, such that only background audio appears to be playing, but not the channels with voice tracks.

Is that connected to this? Or should I open a new issue?

I am also experiencing this. Seems to be odd, since I'm fairly certain it has worked before. I don't use Jellyfin to play movies on my phone alot, but I'm sure this has worked like a year ago.