Swiftfin icon indicating copy to clipboard operation
Swiftfin copied to clipboard

AppleTV 4th Gen - Jellyfin/Swiftfin Not Transcoding Properly

Open jshwrner opened this issue 5 months ago • 1 comments

Describe the bug

I just set up HWA on my Jellyfin server using a Quadro p620. So far, so good; however, I just tried to play a tv show episode and it behaves as if Jellyfin doesn't even try to transcode on the AppleTV; sits at a black screen and eventually moves onto the next episode which also sits on a black screen. I tried the same video on my iPhone and it does transcode. Running ffprobe, here is a comparison of a working and not working file (stripping out stuff I didn't think was relevant):

Transcoding Not Transcoding
"codec_name": "hevc", "codec_name": "h264"
"codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)", "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"
"profile": "Main 10" "profile": "High 10",
"format_name": "matroska,webm", "format_name": "matroska,webm",
"format_long_name": "Matroska / WebM", "format_long_name": "Matroska / WebM",
"bit_rate": "4225888", "bit_rate": "224000",
"width": 1920 "width": 1920,
"height": 1080 "height": 1080,
"display_aspect_ratio": "16:9" "display_aspect_ratio": "16:9"
AUDIO AUDIO
"codec_name": "aac", "codec_name": "ac3"
"codec_long_name": "AAC (Advanced Audio Coding)", "codec_long_name": "ATSC A/52A (AC-3)"
"codec_type": "audio", "codec_type": "audio",
"sample_rate": "48000" "sample_rate": "48000"
"channels": 6, "channels": 6

I have also selected both HEVC and H264 under the "Enable hardware decoding for" section. I noticed that when I play the video on my AppleTV, I get a FFmpeg.DirectStream log whereas when playing via my iPhone, I see a FFmpeg.Transcode log file. I don't see any errors in the DirectStream log file, but noticed it says "SupportsDirectStream":true,"SupportsDirectPlay":true, so again, I'm curious why it's not attempting to transcode.

As a final mention, running nvidia-smi shows a process running for the "working" video but No running processes found for the other.

Hoping to get some direction without having to re-encode all these files. Please let me know if I can send anything else that would help diagnose.

Application version

1.0.1 (70)

Where did you install the app from?

App Store

Device information

AppleTV A1625 4th Gen. (32 GB)

OS version

tvOS 17.6 [21M71]

Jellyfin server version

10.8.3

jshwrner avatar Aug 28 '24 02:08 jshwrner