jellyfin / jellyfin-roku

The Official Roku Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
438 stars 133 forks source link

Roku Streaming Stick 4K Transcode Both Video (AV1) and Audio When Only Audio is Not Supported #1851

Open lakerssuperman opened 1 month ago

lakerssuperman commented 1 month ago

Software Versions

Describe the bug

Playing back an mkv file with AV1 video and DD+ 5.1 audio on a Roku 4k Streaming set to stereo causes a full transcode to occur instead of just Direct Streaming. A similar mkv file with HEVC and DD+ correctly triggers Direct Streaming and not a full transcode so the issue seems to be related to AV1.

This does not occur with my Roku Ultra 4800x when set to forced stereo output, however my Roku Dashboard(seemingly) incorrectly reports that the file is direct playing even though it probably should report Direct Streaming is occurring.

How To Reproduce

  1. Play back an mkv file with AV1 video and audio that is incompatible with the source and requires transcoding.
  2. Only audio should be transcoded and Direct Streaming should occur, but this triggers a full transcode of audio AND video.

Expected behavior

AV1 video is supported on the Roku streaming stick and should not be transcoded because the audio is not compatible. Direct Streaming should occur in this case.

Logs

I didn't immediately see any errors in the log that would help, but I will test more and add any log errors I find.

DEVICE PROFILE INFORMATION - https://pastebin.com/FhE4Gedb

Screenshots

Connection Information

Server is local.

Additional context

Both my Roku 4k Streaming sticks transcode video because the audio codec isn't supported when the video is AV1. The same situation with HEVC video doesn't cause this issue and the issue doesn't seem to happen on my Roku Ultra 4800x. The 4K stick and the Ultra have enough difference in the audio configuration options that I could see the bug/issue not hitting both, but I will test as many things as I can think of to be sure. I tested this on two different 4K sticks, one plugged into a receiver running in stereo mode and another plugged directly into a TV. Both exhibited the same behavior. I will be happy to update this post with any info I can that helps.

Hope everyone is doing well!

cewert commented 1 month ago

Do you know if this file ever played correctly using our app? and if so what version?

A debug log from the dev client showing the device profile output would be helpful to see as well as any and all information about the file in question.

lakerssuperman commented 1 month ago

Do you know if this file ever played correctly using our app? and if so what version?

A debug log from the dev client showing the device profile output would be helpful to see as well as any and all information about the file in question.

I don't know if it ever did play on Roku, as I've only recently begun to switch over to using AV1 for my Bluray collection.

I will work on getting the device profile output for you ASAP, but the files in question use mkv containers with AV1 video of the mostly 1080p SDR variety (Main@L4.0) and Dolby Digital+ audio of either 5.1 or 2.0 channels depending on the particular Bluray's channel layout.

I would also add that I tried playing back and H.264 video with incompatible audio and, like the HEVC video files, Direct Streamed like it was supposed to.