Jellyfin Forum
can't transcode with a380 on linux - 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: can't transcode with a380 on linux (/t-can-t-transcode-with-a380-on-linux)



can't transcode with a380 on linux - 9045banana - 2025-08-31

hey, i've been trying to get jellyfin to transcode using my dedicated gpu but no matter what i do and what solution i find online nothing works and it throws the same error in the logs. i'm running it on manjaro with 8gb ram, i5-4570 jellyfin server is installed from flatpack with access to gpu acceleration and files.

this is the ffmpeg log:
Code:
{"Protocol":0,"Id":"46c5c540838d189e4a6256373380d4a3","Path":"/home/amy/Jellyfin Server Media/The Wonderfully Weird World of Gumball (2025) S01 1080p WebDL H265 EAC3 5.1/S01/The Wonderfully Weird World of Gumball - 1x04 - The Thing.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":250901708,"Name":"The Wonderfully Weird World of Gumball - 1x04 - The Thing","IsRemote":false,"ETag":"a52500fdad4a63124fc589fb7f3cb147","RunTimeTicks":7228420000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"UseMostCompatibleTranscodingProfile":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"hevc","CodecTag":"hvc1","Language":"und","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":null,"VideoRange":1,"VideoRangeType":1,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"LocalizedHearingImpaired":null,"DisplayTitle":"1080p HEVC SDR","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":2386921,"BitDepth":10,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":1080,"Width":1920,"AverageFrameRate":23.976025,"RealFrameRate":23.976025,"ReferenceFrameRate":23.976025,"Profile":"Main 10","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p10le","Level":120,"IsAnamorphic":false},{"Codec":"eac3","CodecTag":"ec-3","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":"English","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":null,"LocalizedDefault":"Default","LocalizedForced":null,"LocalizedExternal":"External","LocalizedHearingImpaired":null,"DisplayTitle":"English - Dolby Digital\u002B - 5.1 - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":"5.1","BitRate":384000,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":6,"SampleRate":48000,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":0,"AspectRatio":null,"Index":1,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null},{"Codec":"mov_text","CodecTag":"tx3g","Language":"eng","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"DvVersionMajor":null,"DvVersionMinor":null,"DvProfile":null,"DvLevel":null,"RpuPresentFlag":null,"ElPresentFlag":null,"BlPresentFlag":null,"DvBlSignalCompatibilityId":null,"Rotation":null,"Comment":null,"TimeBase":"1/90000","CodecTimeBase":null,"Title":"English","VideoRange":0,"VideoRangeType":0,"VideoDoViTitle":null,"AudioSpatialFormat":0,"LocalizedUndefined":"Undefined","LocalizedDefault":"Default","LocalizedForced":"Forced","LocalizedExternal":"External","LocalizedHearingImpaired":"Hearing Impaired","DisplayTitle":"English - Default - MOV_TEXT","NalLengthSize":null,"IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":191,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"IsHearingImpaired":false,"Height":162,"Width":1920,"AverageFrameRate":null,"RealFrameRate":null,"ReferenceFrameRate":null,"Profile":null,"Type":2,"AspectRatio":null,"Index":2,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":null,"PixelFormat":null,"Level":0,"IsAnamorphic":null}],"MediaAttachments":[],"Formats":[],"Bitrate":2776835,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

ffmpeg -analyzeduration 200M -probesize 1G -f mov,mp4,m4a,3gp,3g2,mj2 -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/home/amy/Jellyfin Server Media/The Wonderfully Weird World of Gumball (2025) S01 1080p WebDL H265 EAC3 5.1/S01/The Wonderfully Weird World of Gumball - 1x04 - The Thing.mp4" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_vaapi -rc_mode VBR -b:v 7956403 -maxrate 7956403 -bufsize 15912806 -sei -a53_cc -force_key_frames:0 "expr:gte(t,n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=format=nv12:extra_hw_frames=24" -codec:a:0 copy -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type mpegts -start_number 0 -hls_segment_filename "/home/amy/.var/app/org.jellyfin.JellyfinServer/cache/jellyfin/transcodes/730c8cde42a2f79370eac1a145f0a95f%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/home/amy/.var/app/org.jellyfin.JellyfinServer/cache/jellyfin/transcodes/730c8cde42a2f79370eac1a145f0a95f.m3u8"


ffmpeg version 7.0.2-Jellyfin Copyright (c) 2000-2024 the FFmpeg developers
  built with gcc 14.3.0 (GCC)
  configuration: --prefix=/app --disable-doc --disable-ffplay --disable-libxcb --disable-ptx-compression --disable-sdl2 --disable-static --disable-xlib --enable-chromaprint --enable-gmp --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-libmp3lame --enable-libopenmpt --enable-libopus --enable-libsvtav1 --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-libzvbi --enable-lto=auto --enable-opencl --enable-shared --enable-version3 --extra-libs=-lfftw3f --extra-version=Jellyfin --target-os=linux --enable-libvpl --enable-amf --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-libplacebo --enable-libshaderc --enable-nvdec --enable-nvenc --enable-vaapi --enable-vulkan
  libavutil      59.  8.100 / 59.  8.100
  libavcodec    61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample  5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/home/amy/Jellyfin Server Media/The Wonderfully Weird World of Gumball (2025) S01 1080p WebDL H265 EAC3 5.1/S01/The Wonderfully Weird World of Gumball - 1x04 - The Thing.mp4':
  Metadata:
    major_brand    : mp42
    minor_version  : 512
    compatible_brands: mp42dby1iso2mp41
    creation_time  : 2025-07-29T02:05:49.000000Z
    title          : The Thing
    encoder        : HandBrake 1.8.2 2024081000
    description    : Richard must retrace the memories of his day in order to figure out what “the thing” is, so Nicole’s family dinner with Granny Jo Jo won’t be another epic failure.
  Duration: 00:12:02.84, start: 0.000000, bitrate: 2776 kb/s
  Stream #0:0[0x1](und): Video: hevc (Main 10) (hvc1 / 0x31637668), yuv420p10le(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 2386 kb/s, 23.98 fps, 23.98 tbr, 90k tbn (default)
      Metadata:
        creation_time  : 2025-07-29T02:05:49.000000Z
        handler_name    : VideoHandler
        vendor_id      : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: eac3 (ec-3 / 0x332D6365), 48000 Hz, 5.1(side), fltp, 384 kb/s (default)
      Metadata:
        creation_time  : 2025-07-29T02:05:49.000000Z
        handler_name    : English
        vendor_id      : [0][0][0][0]
      Side data:
        audio service type: main
  Stream #0:2[0x3](eng): Subtitle: mov_text (tx3g / 0x67337874), 1920x162, 0 kb/s (default)
      Metadata:
        creation_time  : 2025-07-29T02:05:49.000000Z
        handler_name    : English
[AVHWDeviceContext @ 0x5654f14f8c00] Failed to initialise VAAPI connection: -1 (unknown libva error).
Device creation failed: -5.
[vist#0:0/hevc @ 0x5654f1486f40] [dec:hevc @ 0x5654f1468ac0] No device available for decoder: device type vaapi needed for codec hevc.
[vist#0:0/hevc @ 0x5654f1486f40] [dec:hevc @ 0x5654f1468ac0] Hardware device setup failed for decoder: Input/output error
[vost#0:0/h264_vaapi @ 0x5654f14f8700] Error initializing a simple filtergraph
Error opening output file /home/amy/.var/app/org.jellyfin.JellyfinServer/cache/jellyfin/transcodes/730c8cde42a2f79370eac1a145f0a95f.m3u8.
Error opening output files: Input/output error



RE: can't transcode with a380 on linux - jravin - 2025-09-01

Yup, fun fun.

Some possibilities:
  • Missing VAAPI libraries or drivers

Install the required VAAPI packages.  Verify this before just copying and pasting, but ...

Code:
/usr/bin/sudo /usr/bin/apt install intel-media-va-driver libva2 vainfo

*NOTE: I have an Arc B580 and I just about took up drinking trying to get it to work properly.

Test VAAPI:

Code:
vainfo

if that does not work:

Code:
/usr/bin/sudo vainfo

If that does not work, find vainfo and run it directly as it is not listed in the system's path.  This could point to a bad installation, or configuration as well.

Make sure jellyfin has access to /dev/dri :

Code:
sudo usermod -aG video jellyfin

Restart jellyfin.

I am not about docker life, but google says something like: 'docker run --device /dev/driConfused-facedev/dri ...'

Share logs...
  • Incorrect device permissions

Check all of the permissions.
  • Hardware does not support HEVC hardware codecs (I did not google compatibility here, but please rule this out.)
  • VAAPI is not configured in Jellyfin

In the Trascoding settings, under VAAPI, most likely you will want something like:

Code:
/dev/dri/renderD128