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
{{ message }}
Repository navigation
jellycompat sessions show source resolution/bitrate instead of actual transcode target in admin panel #920
The admin sessions panel (/api/v1/admin/sessions, backed by internal/api/handlers/playback_sessions.go) shows the wrong "Delivered" video resolution and a nulltarget_bitrate_kbps for Jellyfin-compatible (jellycompat) playback sessions that are actually being transcoded and downscaled.
This falls back to the source resolution whenever target_resolution wasn't recorded. The native app's playback path (playback_v3.go) explicitly threads TargetResolution/TargetBitrateKbps into the telemetry/recipe-card recording, but the jellycompat playback path (internal/jellycompat/streams.go, ensureTranscodeSessionWithToneMapMode) never writes those fields into that same telemetry table — so the admin panel always shows the source's own resolution/bitrate for jellycompat sessions currently being transcoded, never the actual encode target.
Play a high-bitrate 1080p source through a Jellyfin-compatible client (e.g. Jellyfin Android app) and pick a low quality profile (e.g. "360p - 420 Kbps").
Confirm via server logs that the actual ffmpeg command is correctly capped and downscaled (e.g. -b:v 420k -maxrate 420k ... scale_vaapi=h=480).
Open the admin sessions panel for that session — it shows Delivered: H.264 · 1080p and no target bitrate, even though the real encode is 480p/420kbps.
Impact
Cosmetic/observability only — the actual transcode behavior is correct. But it makes verifying playback quality decisions from the admin UI unreliable for any jellycompat-driven session (misleads support/debugging), and was likely already broken before #912 for any jellycompat resolution/bitrate-limiting scenario (tone-map bitrate selection, 4K-disallowed downscales, etc.) — #912 just made it newly visible since jellycompat downscaling wasn't previously exercised.
Suggested fix
Have the jellycompat transcode-start path (ensureTranscodeSessionWithToneMapMode / wherever it records stream details, see recordTranscodeStreamDetails) also populate target_resolution and target_bitrate_kbps in the same telemetry table the native playback_v3.go path writes to, so the admin panel reflects the actual encode target for jellycompat sessions too.
Activity
fix(jellycompat): report the actual transcode target resolution/bitra…