Jellyfin Forum
PlaybackError.mediadecodeerror help - 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: PlaybackError.mediadecodeerror help (/t-playbackerror-mediadecodeerror-help)



PlaybackError.mediadecodeerror help - aiden christiansen - 2025-08-22

version: 10.10.7
os: truenas scale

hello, i am trying to setup jellyfin for the first time and i am getting an error on playback attempts :
"PlaybackError.mediadecodeerror" 

any help would be greatly appreciated, i will include logs, however i only included the last 33 lines because it was too long otherwise
i am currently not using a dedicated gpu for encoding/decoding so this may be part of the problem
   


RE: PlaybackError.mediadecodeerror help - aiden christiansen - 2025-08-22

i have some more informantion, it seems to be a permissions problem judging by some of the transcode attempt logs:

{"Protocol":0,"Id":"d5e65019cf2ce972cb8618bcb7a97550","Path":"/mnt/Swimming2/Princess Bride Ce.mkv","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mkv","Size":null,"Name":"Princess Bride Ce","IsRemote":false,"ETag":"b3dd1cf0b71a50d1f2c444f4b6e886ed","RunTimeTicks":null,"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":[],"MediaAttachments":[],"Formats":[],"Bitrate":null,"FallbackMaxStreamingBitrate":null,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":0,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null,"HasSegments":false}

/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G  -i file:"/mnt/Swimming2/Princess Bride Ce.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -sn  -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "81d7d7df8a03533a845e759d23f28985-1.mp4" -start_number 0 -hls_base_url "hls/81d7d7df8a03533a845e759d23f28985/" -hls_segment_filename "/cache/transcodes/81d7d7df8a03533a845e759d23f28985%d.mp4" -hls_playlist_type event -hls_list_size 0 -y "/cache/transcodes/81d7d7df8a03533a845e759d23f28985.m3u8"


ffmpeg version 7.0.2-Jellyfin Copyright © 2000-2024 the FFmpeg developers
  built with gcc 12 (Debian 12.2.0-14)
  configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-static --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto=auto --enable-gpl --enable-version3 --enable-shared --enable-gmp --enable-gnutls --enable-chromaprint --enable-opencl --enable-libdrm --enable-libxml2 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libharfbuzz --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libopenmpt --enable-libdav1d --enable-libsvtav1 --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-vaapi --enable-amf --enable-libvpl --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
  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
[in#0 @ 0x5607b28d1540] Error opening input: Permission denied
Error opening input file fileConfused-facemnt/Swimming2/Princess Bride Ce.mkv.
Error opening input files: Permission denied


RE: PlaybackError.mediadecodeerror help - bitmap - 2025-08-22

What operating system are you running? I would assume Linux or your Jellyfin install is virtualized. You need to grant the user running Jellyfin permissions to the media you've mounted, otherwise it can't play anything. You can do this with chmod or chown in Linux, but you need to make sure you fix the issue in your host OS, not in a docker container (if applicable).


RE: PlaybackError.mediadecodeerror help - aiden christiansen - 2025-08-22

i am currently runing jellyfin inside the apps container in truenas scale, i am extremly new to truenas and jellyfin and currently just want to get it working.
it is also entirely possible that the system that jellyfin is running on is way too slow for encoding. it doesnt have a dedicated encode/decode gpu and us running on a 4th gen i3. Im not sure that i would be able to make any changes outside of the truenas interface without breaking something.
thank you for the help!


RE: PlaybackError.mediadecodeerror help - bitmap - 2025-08-22

I know very little about TrueNAS, but they do have decent documentation. Here's a walkthrough on changing permissions: https://www.truenas.com/docs/scale/scaletutorials/datasets/permissionsscale/


RE: PlaybackError.mediadecodeerror help - aiden christiansen - 2025-08-22

thanks! ill try it and get back to you