SOLVED: H265 media not transcoded by certain devices - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: SOLVED: H265 media not transcoded by certain devices (/t-solved-h265-media-not-transcoded-by-certain-devices) |
H265 media not transcoded by certain devices - quietwalker - 2023-10-11 Hi people, I'm new in town I use jellyfin from multiple months and recently I decided to transcode with TDARR all my media library from H264 to H265 to save storage space. This media conversion is still in progress, but I already see some issues: - my smartphone (Android 13) works fine using the Official Jellyfin app - both Firefox and Chrome are not able to play H265/HVEV (mkv) files: they always reports "the client is not compatible with the media file and the server is not sending a compatible media format" (I'm translating it, so it will not looks 100% in that way in english probably ) - the above message is also reported by a Xiaomi Mi Box 3 device and Firestick TV In this last case I also set the client option to use LibVLC as video player and I see an interesting behavior: - the Mix Box 3 is still reporting problems with the format - the Amazon Firestick works correctly Now, checking at the logs I see ffmpeg errors when the client reports issues reproducing a video, so I guess the issue is caused by something in the transcoding. This seems also to be true because I also see in the logs: Code: [09:34:01] [INF] [28] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Anonymous Profile, Path=/JF_SERIES/True Lies/Season 1/True Lies - S01 E11 - Unfamiliar Partnerships HDTV-1080p.mkv, AudioStreamIndex=1, SubtitleStreamIndex=4 ) => ( PlayMethod=Transcode, TranscodeReason=VideoCodecNotSupported, AudioCodecNotSupported ) media:/videos/90f39a77-6f1c-6624-d57f-af18c2eb9d21/master.m3u8?MediaSourceId=90f39a776f1c6624d57faf18c2eb9d21&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=139616000&AudioBitrate=384000&MaxFramerate=23.976025&api_key=<token>&TranscodingMaxAudioChannels=2&RequireAvc=false&Tag=6af93a3e3f86f49772cee0bd368516ce&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&hevc-level=120&hevc-videobitdepth=8&hevc-profile=main&TranscodeReasons=VideoCodecNotSupported,%20AudioCodecNotSupported Until 3 days ago I was using the intel quicksync to transcode videos in jellyfin container, but now I put the NVIDIA Quadro P600 into my server to assign it to TDARR; this made me think that maybe it is not possible to use the NVIDIA for TDARR and the intel GPU only for jellyfin, thinking that this was the cause of the problem. For this reason I decided to configure Jellyfin to use NVIDIA for video decoding/encoding but the result is exactly the same (I'll attach the logs). Could you help me understand how I can solve my problem? If the format is not supported by a client, I expect Jellyfin to transcode correctly, rather than returning a playback error to the client: am I right? Why this is not happening? RE: H265 media not transcoded by certain devices - TheDreadPirate - 2023-10-11 Can you share your ffmpeg logs with us? ffmpeg is failing. And what model CPU do you have? RE: H265 media not transcoded by certain devices - quietwalker - 2023-10-11 sure, here are the logs: https://privatebin.net/?a1da67b2eb534638#8yniq9zXrLrNaqVo55MhTLaQ2LvuLSggdZVViHZ2fprL RE: H265 media not transcoded by certain devices - TheDreadPirate - 2023-10-11 What CPU do you have? If you were using your Intel iGPU before, I am pretty sure you need to change which GPU Jellyfin uses. Stop jellyfin, edit /etc/jellyfin/encoding.xml. Change "VaapiDevice" to whatever render device in /dev/dri corresponds to your Nvidia GPU. Jellyfin is probably still configured to use your Intel iGPU, but you have the hardware acceleration settings set to NVENC, probably. You should be able to use QSV for Jellyfin and NVENC for tdarr. Or the other way around. RE: H265 media not transcoded by certain devices - quietwalker - 2023-10-11 oh sorry, I forgot to say that my CPU is an intel core i3-13100. I reverted the changes in order to use again QSV, but even if the devices in /dev/dri/ are viewable in the docker container, it looks like the system doesn't allow me to use it: Code: ffmpeg version 5.1.3-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers so it make me think like I should use the NVIDIA card if I will decide to keep it attached to my server after the transcode of my library. Does my assumption looks correct? Anyway I'm trying again using the NVIDIA grafic card, replacing the grafic card in my /etc/jellyfin/encoding.xml. Actually, in the container, it looks like this: Code: <?xml version="1.0" encoding="utf-8"?> RE: H265 media not transcoded by certain devices - quietwalker - 2023-10-11 Urrà! Problem solved. The problem was fixed putting back the --runtime=nvidia to the container parameter and then I edited the encoding.xml config file in order to replace the line: Code: <VaapiDevice>/dev/dri/renderD128</VaapiDevice> with: Code: <VaapiDevice>/dev/nvidia0</VaapiDevice> and the transcode works correctly on devices with doesn't support DirectPlay or DirectStream. Thanks you so much for your help @TheDreadPirate! |