AFinity icon indicating copy to clipboard operation
AFinity copied to clipboard

Server Transcoding Capabilities

Open ParthMandaliya opened this issue 3 months ago • 5 comments

Problem description

Right now, I can only play pure direct play, and if the codec is not supported, too bad, watch something else, or if I want to watch something at lower quality due to internet constraints, that's not possible. Do you have any plans to implement the bitrate based transcoding and building a device profile and sending it to server rather than asking for file as it is?

Proposed solution

Building device profile (Auto) feature may be too big of a task, can you implement bitrate based transcoding at least that will solve the Auto problem as well. Just a bitrate picker in player and a new playback setting, where I can set the quality profile for streaming.

Alternatives considered

No response

Feature area

Player/Playback

Priority

Critical - Blocking my ability to use the app

Mockups or examples

In player bitrate quality picker: Image

Playback quality setting:

Image

Pick a default quality:

Image

Use case

  1. The device does not support the file as it is.
  2. Internet constraints, people may have 4K files or even 1080p with huge bitrates

Additional context

I am not an android dev, but I have implemented, transcoding using Opus 5, and I have been testing it for about 2 weeks, but I myself am not a fan of vibe coded things and since it and Andoird, I am not capable of reviewing the code myself, so, I am not uploading that. But if it's acceptable I can create a PR if you would be open to review the code.

Device

Google Pixel 8 Pro

Android version

17

Afinity version

No response

Checklist

  • [x] I have searched for similar feature requests before creating this one
  • [x] This feature would benefit multiple users, not just myself
  • [x] I am willing to help test this feature if implemented

ParthMandaliya avatar Aug 30 '26 21:08 ParthMandaliya

@ParthMandaliya if you are running v12 please try the latest nightly

MakD avatar Sep 04 '26 13:09 MakD

@ParthMandaliya if you are running v12 please try the latest nightly

That was a fast implementation; kudos. Unfortunately, I run linuxserver packaged jellyfin not the direct upstream Jellyfin; LinuxServer does not yet have a Jellyfin 12 package.

ParthMandaliya avatar Sep 04 '26 23:09 ParthMandaliya

Installed v12 a couple of days ago and testing this nightly since then, no issues so far, except for one thing selecting a bitrate in transcoding doesn't always mean jellyfin server transcode at the same bitrate for example selecting 1.5 Mbps (720p) in player but jellyfin server shows transcoding at 2.1 Mbps. But I checked the same with fladder client and observed the same behavior.

@ParthMandaliya if you are running v12 please try the latest nightly

ParthMandaliya avatar Sep 11 '26 15:09 ParthMandaliya

I never really use transcode, it could be other tracks on top or goal vs reality.

Bugs:

  • If I disable it - never to transcode, it will also disable the music UI but still transcode music. Setting is only in video.
  • Audio has goal 128 Opus, but it is AAC

Wish Movie the UI in player onto Direct/transcode info. Looks strange on small phone and overlays now display, feels so dense. Other text is related to it and would allow adding other option later inside the player. e.g do not transcode audio or downmix audio form 5.1 to 2.0 2.1 (device capability)

enter-a-random-username avatar Sep 12 '26 23:09 enter-a-random-username

Fixed in the latest release. Closing this for now. Please reopen if the issue still persist.

MakD avatar Oct 05 '26 10:10 MakD