mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
intel j6412 - VAAPI doesnt't work #3643
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @hoonlight on GitHub (Mar 4, 2022).
Please describe your bug
Hello, I am using intel j6412 processor, vaapi transcoding is not working at all.
Direct play works very well. I have read the provided documentation carefully, but the problem is still unresolved.
Why is this happening? Please help.
vainfo: VA-API version: 1.14 (libva 2.12.0)
vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22.2.1 ()
Jellyfin Version
Other
if other:
jellyfin:unstable docker image
Environment
Jellyfin logs
No response
FFmpeg logs
Please attach any browser or client logs here
No response
Please attach any screenshots here
No response
Code of Conduct
@nyanmisaka commented on GitHub (Mar 4, 2022):
ArchLinux: Arch Wiki
Debian/Ubuntu: Brainiarc7's gist
https://jellyfin.org/docs/general/administration/hardware-acceleration.html#intel-gen9-and-gen11-igpus
@hoonlight commented on GitHub (Mar 4, 2022):
thank you. I tried that method,
but still the same problem.
@nyanmisaka commented on GitHub (Mar 5, 2022):
run:
Then reboot.
@hoonlight commented on GitHub (Mar 5, 2022):
Oh, something is changing. But still can't transcode.
Is there anything more I can try? thank you.
@nyanmisaka commented on GitHub (Mar 5, 2022):
I'm not sure if guc=3 works on this chip. But guc=2 works for my N6005.
@hoonlight commented on GitHub (Mar 5, 2022):
I keep getting the same error. Unfortunately, it seems there is nothing more I can do. If this isn't a problem I'm experiencing alone, I hope it gets resolved. Thanks to the developers for their hard work.
@nyanmisaka commented on GitHub (Mar 5, 2022):
You can find more help by filing an issue in https://github.com/intel/media-driver
@zailushang2008 commented on GitHub (Apr 5, 2022):
I am using Synology system 7.0.1, CPU is N5095, I can see /dev/dri/renderD128 in Jellyfin's VAAPI option, but I can't call it, how can I fix it?
`/videos/74a6cdd9-8301-9c16-6923-ff29b2a43fe1/hls1/main/0.ts
{"Protocol":0,"Id":"74a6cdd983019c166923ff29b2a43fe1","Path":"/storage1/\u7A7A\u4E2D\u6D69\u52AB Air Crash Investigation/\u7B2C19\u5B63/\u7A7A\u4E2D\u6D69\u52AB19-08 Lethal Limits \u5317\u4FC4\u7F57\u65AF\u822A\u7A7A821\u53F7\u73ED\u673A 2008.mp4","EncoderPath":null,"EncoderProtocol":null,"Type":0,"Container":"mov,mp4,m4a,3gp,3g2,mj2","Size":2128373452,"Name":"\u7A7A\u4E2D\u6D69\u52AB19-08 Lethal Limits \u5317\u4FC4\u7F57\u65AF\u822A\u7A7A821\u53F7\u73ED\u673A 2008","IsRemote":false,"ETag":"7d3d208c6748f499c5245fc0b14b31f6","RunTimeTicks":26522240000,"ReadAtNativeFramerate":false,"IgnoreDts":false,"IgnoreIndex":false,"GenPtsInput":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"OpenToken":null,"RequiresClosing":false,"LiveStreamId":null,"BufferMs":null,"RequiresLooping":false,"SupportsProbing":true,"VideoType":0,"IsoType":null,"Video3DFormat":null,"MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","ColorRange":null,"ColorSpace":"bt709","ColorTransfer":"bt709","ColorPrimaries":"bt709","Comment":null,"TimeBase":"1/12800","CodecTimeBase":null,"Title":null,"VideoRange":"SDR","LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"1080p H264 SDR","NalLengthSize":"0","IsInterlaced":false,"IsAVC":false,"ChannelLayout":null,"BitRate":6156383,"BitDepth":8,"RefFrames":1,"PacketLength":null,"Channels":null,"SampleRate":null,"IsDefault":true,"IsForced":false,"Height":1080,"Width":1920,"AverageFrameRate":25,"RealFrameRate":25,"Profile":"High","Type":1,"AspectRatio":"16:9","Index":0,"Score":null,"IsExternal":false,"DeliveryMethod":null,"DeliveryUrl":null,"IsExternalUrl":null,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Path":null,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":null},{"Codec":"aac","CodecTag":"mp4a","Language":"und","ColorRange":null,"ColorSpace":null,"ColorTransfer":null,"ColorPrimaries":null,"Comment":null,"TimeBase":"1/48000","CodecTimeBase":null,"Title":null,"VideoRange":null,"LocalizedUndefined":null,"LocalizedDefault":null,"LocalizedForced":null,"LocalizedExternal":null,"DisplayTitle":"AAC - Stereo - Default","NalLengthSize":null,"IsInterlaced":false,"IsAVC":null,"ChannelLayout":"stereo","BitRate":257896,"BitDepth":null,"RefFrames":null,"PacketLength":null,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Height":null,"Width":null,"AverageFrameRate":null,"RealFrameRate":null,"Profile":"LC","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}],"MediaAttachments":[],"Formats":[],"Bitrate":6419890,"Timestamp":null,"RequiredHttpHeaders":{},"TranscodingUrl":null,"TranscodingSubProtocol":null,"TranscodingContainer":null,"AnalyzeDurationMs":null,"DefaultAudioStreamIndex":null,"DefaultSubtitleStreamIndex":null}
/usr/lib/jellyfin-ffmpeg/ffmpeg -init_hw_device vaapi=va:/dev/dri/renderD128 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/storage1/空中浩劫 Air Crash Investigation/第19季/空中浩劫19-08 Lethal Limits 北俄罗斯航空821号班机 2008.mp4" -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 462104 -maxrate 462104 -bufsize 924208 -profile:v:0 high -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=w=640:h=360:format=nv12" -codec:a:0 copy -strict -2 -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 "/config/transcodes/d084cd37e9dd1f584f06c22e14c1e24c%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/d084cd37e9dd1f584f06c22e14c1e24c.m3u8"
ffmpeg version 4.4.1-Jellyfin Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10 (Debian 10.2.1-6)
configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-libdrm --enable-libass --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libdav1d --enable-libwebp --enable-libvpx --enable-libx264 --enable-libx265 --enable-libzvbi --enable-libzimg --arch=amd64 --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-vdpau --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/storage1/空中浩劫 Air Crash Investigation/第19季/空中浩劫19-08 Lethal Limits 北俄罗斯航空821号班机 2008.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.20.100
Duration: 00:44:12.22, start: 0.000000, bitrate: 6419 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 6156 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
timecode : 00:00:00:00
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 257 kb/s (default)
Metadata:
handler_name : SoundHandler
vendor_id : [0][0][0][0]
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
handler_name : VideoHandler
timecode : 00:00:00:00
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (copy)
[2022-04-05 08:45:03.960 +00:00] [INF] [28] Jellyfin.Api.Helpers.TranscodingJobHelper: Stopping ffmpeg process with q command for "/config/transcodes/0b2b2396b776bdd247a82af09d965ff2.m3u8"[2022-04-05 08:45:04.037 +00:00] [ERR] [28] Jellyfin.Api.Helpers.TranscodingJobHelper: FFmpeg exited with code 1
[2022-04-05 08:45:04.037 +00:00] [INF] [28] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[2022-04-05 08:45:04.038 +00:00] [INF] [28] Jellyfin.Api.Helpers.TranscodingJobHelper: "/usr/lib/jellyfin-ffmpeg/ffmpeg" "-init_hw_device vaapi=va:,driver=iHD -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi -autorotate 0 -i file:"/storage1/空中浩劫 Air Crash Investigation/第19季/空中浩劫19-03 Fatal Approach 荷兰皇家城市短途航空433号班机 1994.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:s -codec:v:0 libx264 -preset veryfast -crf 23 -maxrate 402625 -bufsize 805250 -profile:v:0 high -level 41 -x264opts:0 subme=0:me_range=4:rc_lookahead=10:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames:0 "expr:gte(t,0+n_forced*3)" -vf "setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_vaapi=w=640:h=360:format=nv12,hwmap,format=nv12" -codec:a:0 aac -ac 2 -ab 317375 -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 "/config/transcodes/0b2b2396b776bdd247a82af09d965ff2%d.ts" -hls_playlist_type vod -hls_list_size 0 -y "/config/transcodes/0b2b2396b776bdd247a82af09d965ff2.m3u8""
Failed to end picture decode issue: 23 (internal decoding error).hardware accelerator failed to decode pictureError while decoding stream #0:0: Input/output error`@nyanmisaka commented on GitHub (Jun 18, 2022):
Close this for now since it’s an upstream issue.
@dongshimou commented on GitHub (Aug 16, 2022):
same error with intel N5095