Closed randm-ch closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I'm having the exact same issue. Host OS is Ubuntu 64 bit, and I would love to get HW acceleration for HEVC content.
same problem
same
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
still not working as far as I can tell
Same Here. Running docker on 64bits arm ubuntu server 21.04
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Not stale
When using v4l2 on Raspberry Pi OS ArmHF I had same error. Here Is my compose: https://github.com/linuxserver/docker-jellyfin/issues/130
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
also would like this issue resolve for Rpi4 running raspios-bullseye-arm64-lite https://github.com/jellyfin/jellyfin-ffmpeg/issues/310
Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_v4l2m2m)) Stream #0:1 -> #0:1 (ac3 (native) -> aac (native)) Press [q] to stop, [?] for help [h264_v4l2m2m @ 0x55a1718540] Using device /dev/video11 [h264_v4l2m2m @ 0x55a1718540] driver 'bcm2835-codec' on card 'bcm2835-codec-encode' in mplane mode [h264_v4l2m2m @ 0x55a1718540] requesting formats: output=YU12 capture=H264 [h264_v4l2m2m @ 0x55a1718540] Encoder requires yuv420p pixel format. Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height [aac @ 0x55a171db10] Qavg: 65536.000 [aac @ 0x55a171db10] 2 frames left in the queue on closing Conversion failed!
/usr/lib/jellyfin-ffmpeg/ffmpeg -autorotate 0 -i file:"/data/movies/Bluray-1080p.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 h264_v4l2m2m
-pix_fmt nv21-b:v 2552000 -maxrate 2552000 -bufsize 5104000 -level 41 -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -g:v:0 72 -keyint_min:v:0 72 -sc_threshold:v:0 0 -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*dar)\,1280)/64)*64:trunc(ow/dar/2)*2,format=yuv420p" -codec:a:0 aac -ac 6 -ab 448000 -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 "/transcode/3684e786242cae71a38699487a97b21e%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/transcode/3684e786242cae71a38699487a97b21e.m3u8"
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still unresolved
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still unresolved. But it looks like the base image fixed the issue: https://github.com/jellyfin/jellyfin/pull/7291 However, sounds like performance isn't great yet.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still unresolved
I have been struggling with this issue as well. Using the official Raspberry Pi OS 64 bit Ubuntu image Ubuntu 21.10.
Still unresolved. But it looks like the base image fixed the issue: jellyfin/jellyfin#7291 However, sounds like performance isn't great yet.
How can I test this myself, do I need to use the latest tag or do I need to pull the nightly image?
I am using the latest , installed a few days ago and I can confirm it still does now work, ffmpeg exits with status 1 when a file that needs to be transcoded is played.
Has anyone found any solution to this issue?
I am using the latest
If you use jellyfin/jellyfin:unstable
– not linuxserver/jellyfin
– then it should work. Haven't tested it myself tho.
I am using the latest
If you use
jellyfin/jellyfin:unstable
– notlinuxserver/jellyfin
– then it should work. Haven't tested it myself tho.
Yeah, he's right. Tested and working fine, getting around 1.3x speed transcoding 1080p x265 > 1080p x265. But jellyfin still has some annoying bugs to me.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still unresolved
So reading through these comments, It seems like it's not a container issue, it's more a jellyfin/hardware issue?
According to the change log, the ffmpeg version has been updated: https://docs.linuxserver.io/images/docker-jellyfin#versions
Does this mean the hardware encoding now works with version 11.06.22 of this image? Has anyone tested it?
from what I can tell, h264 should be working now. At least my transcoding logs indicate that h265 (native) ->h264_v4l2m2m
seems to work. The PI4 will still struggle because of currently missing HW accelerated decoding of h265, but at least the encoding part this ticket is about should be working in HW now.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I think my issue was similar and I solved mine running this in the container console:
usermod -aG video jellyfin
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
As it appears this was a jellyfin issue, not a container issue (mixed with a permissions issue on the host) I will close this as we cannot resolve upstream dev issues or host permissions issues.
Good evening! I'm trying to get hardware acceleration to work in the Jellyfin container on a RPi4 64bit OS (Manjaro ARM), so far without luck. As OMX doesn't work on 64bit (and is getting deprecated anyway) it is suggested in different places to use V4L2. This does work with ffmpeg on the host machine without problems (with
ffmpeg -i ... -c:v h264_v4l2m2m ...
), but inside the container it doesn't. I have added devices/dev/video10
(as well as 11 & 12) to the container.See also: https://github.com/jellyfin/jellyfin-ffmpeg/issues/310
Expected Behavior
L4L2 hardware acceleration works.
Current Behavior
L4L2 hardware acceleration doesn't work. The error is:
When trying to run
ffmpeg
manually with-pix_fmt yuv420p
as suggested in https://github.com/jellyfin/jellyfin-ffmpeg/issues/310 I get this error:Steps to Reproduce
Environment
OS: Manjaro ARM CPU architecture: arm64 How docker service was installed:
ghcr.io/linuxserver/jellyfin
via docker-composeCommand used to create docker container (run/create/compose/screenshot)
Docker logs
https://gist.github.com/randm-ch/285b175f95dac3fd02c3de3f86728c05