2024-04-29, 02:07 PM
(This post was last modified: 2024-04-29, 02:08 PM by TheDreadPirate. Edited 2 times in total.)
What GPU is in your system? I spun up unstable on my desktop with an RX6800 and it appears to transcode as expected with vulkan.
My docker compose for reference.
I am not specifying the device, just providing the whole /dev/dri folder. I noticed you were using renderD129, do you have more than one device? Perhaps an Intel iGPU?
Code:
/usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -init_hw_device drm=dr:/dev/dri/renderD128 -init_hw_device vaapi=va@dr -init_hw_device vulkan=vk@dr -filter_hw_device vk -hwaccel vaapi -hwaccel_output_format vaapi -noautorotate -i file:"/media/library/Anime Movies/5 Centimeters per Second (2007)/5 Centimeters per Second.mkv" -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 17895107 -maxrate 17895107 -bufsize 35790214 -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" -codec:a:0 libfdk_aac -ac 2 -ab 256000 -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 "64f6bedc7a7eec0752e5ac99bd812839-1.mp4" -start_number 0 -hls_segment_filename "/config/transcodes/64f6bedc7a7eec0752e5ac99bd812839%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/64f6bedc7a7eec0752e5ac99bd812839.m3u8"
Code:
root@optimus-maximus:/docker/jellyfin/jellyfin-data/config/log# docker exec -it jellyfin /usr/lib/jellyfin-ffmpeg/vainfo --display drm --device /dev/dri/renderD128
Trying display: drm
libva info: VA-API version 1.21.0
libva info: Trying to open /usr/lib/jellyfin-ffmpeg/lib/dri/radeonsi_drv_video.so
libva info: Found init function __vaDriverInit_1_21
amdgpu: os_same_file_description couldn't determine if two DRM fds reference the same file description.
If they do, bad things may happen!
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.21 (libva 2.21.0)
vainfo: Driver version: Mesa Gallium driver 24.0.5 for AMD Radeon RX 6800 (radeonsi, navi21, LLVM 16.0.6, DRM 3.54, 6.5.0-28-generic)
vainfo: Supported profile and entrypoints
VAProfileMPEG2Simple : VAEntrypointVLD
VAProfileMPEG2Main : VAEntrypointVLD
VAProfileVC1Simple : VAEntrypointVLD
VAProfileVC1Main : VAEntrypointVLD
VAProfileVC1Advanced : VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointVLD
VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
VAProfileH264Main : VAEntrypointVLD
VAProfileH264Main : VAEntrypointEncSlice
VAProfileH264High : VAEntrypointVLD
VAProfileH264High : VAEntrypointEncSlice
VAProfileHEVCMain : VAEntrypointVLD
VAProfileHEVCMain : VAEntrypointEncSlice
VAProfileHEVCMain10 : VAEntrypointVLD
VAProfileHEVCMain10 : VAEntrypointEncSlice
VAProfileJPEGBaseline : VAEntrypointVLD
VAProfileVP9Profile0 : VAEntrypointVLD
VAProfileVP9Profile2 : VAEntrypointVLD
VAProfileAV1Profile0 : VAEntrypointVLD
VAProfileNone : VAEntrypointVideoProc
My docker compose for reference.
Code:
services:
jellyfin:
image: jellyfin/jellyfin:unstable
container_name: jellyfin
user: 1000:1000
group_add:
- "44" #video
- "105" #render
network_mode: 'host'
volumes:
- ./jellyfin-data/config:/config
- ./jellyfin-data/cache:/cache
- /media:/media:ro
restart: 'unless-stopped'
environment:
- ROC_ENABLE_PRE_VEGA=1
devices:
- /dev/dri:/dev/dri
- /dev/kfd:/dev/kfd
extra_hosts:
- "host.docker.internal:host-gateway"
I am not specifying the device, just providing the whole /dev/dri folder. I noticed you were using renderD129, do you have more than one device? Perhaps an Intel iGPU?