jellyfin / jellyfin-androidtv

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

Video Freezing While Audio Keeps Playing #4103

Open Tech-Owl opened 2 weeks ago

Tech-Owl commented 2 weeks ago

Describe the bug

Hey Everyone,

I recently updated my Dune HD Homatics box to Android 12 due to some stuttering issues in Android 11 that it had. Now, what happens when I go to watch an episode of a show, it will play normally for about 20-30 seconds before the video will freeze. The app is fine and the audio continues to play but the video will freeze. The only way to get it start playing the video again is to seek to a different time or have it reload the stream by, for instance, selecting a different audio/subtitle. This issue didn't occur at all back on Android 11 but for some reason the official Jellyfin Android TV app is the only app that seems to have this issue for me. If I use an external player like MX Player, everything plays completely fine. I've tried playing around with the resolutions, HDR, AFR, and even connected to my box via ADB to check out the logs. Even that doesn't show anything useful, it seems to act as if there's no issue at all, no error or warning logs, just normal requests to and from my server. Even though it doesn't seem to be the issue, I checked the server side logs as well and didn't see any error or warning messages in the Jellyfin log or in the ffmpeg logs either. I've also tried rolling back to an earlier version (v0.17.4) and setting the WebView version to Beta, Dev, and Canary through ADB, all with the same issue. I'm kinda at a loss here so any thoughts would be appreciated! Let me know if I need to provide any more info.

Logs

No response

FFmpeg logs

No response

Media info of the file

Video Title: Japanese [Uncut] - 1080p - H264 - SDR Codec: H264 AVC: Yes Profile: High Level: 40 Resolution: 1920x1080 Aspect ratio: 16:9 Anamorphic: No Interlaced: No Framerate: 23.976025 Bitrate: 8244 kbps Bit depth: 8 bit Video range: SDR Video range type: SDR Color space: bt709 Color transfer: bt709 Color primaries: bt709 Pixel format: yuv420p Ref frames: 1 NAL: 4

Application version

0.17.8

Device information

Dune HD Homatics R 4K Plus

Android version

Android 12

Jellyfin server version

10.9.11

Gruetti commented 3 days ago

Hi, does this issue only occur when transcoding? I have a similar issue and as far as I know the Dune HD Homatics is the same box as the Nokia 8010, which I use (just a different branding).

Tech-Owl commented 2 days ago

Hey @Gruetti, you are actually a genius. I'm having the same exact issue and disabling H.265 transcoding temporarily and playing a video fixed the issue. The only issue now though is why having H.265 enabled is an issue. I opened up a forum post as well since it seems like their GitLab issues page doesn't have a whole lot of activity.

I'm gonna reference the post you made in the discussion too.

Jellyfin Forum Link: https://forum.jellyfin.org/t-video-freezing-while-audio-keeps-playing

Gruetti commented 2 days ago

You are the genius here @Tech-Owl 😄 Thanks for finding that workaround! Disabling H.265/HEVC encoding worked for me as well.