2024-03-09, 12:22 PM
(This post was last modified: 2024-03-12, 07:20 AM by fencer. Edited 1 time in total.)
Hello, I've never been able to get hardware transcoding to work with Jellyfin.
- I'm using the latest version 10.8.13 on a synology ds1019+. Installed through the community apps.
- It has a celeron J3455 CPU, which is capable of hwaccel. I know it definitely can do this because I installed plex using a free 30 day trial. hwaccel worked there out of the box, 4k transcodes used at most 20% CPU.
- Given it's based on linux, I'm using VAAPI. I've tried the other options though.
- below is the ffmpeg log, as far as I can tell it IS using /dev/dri/renderD128 as it's supposed to, but it must be falling back to software, and single stream transcodes max out the CPU
That was a transcode of a 1080 stream to 720 and was pegging the CPU at 92%.
I'm really not sure where to go. I understand if it falls back to software it will say so in the logs. This CPU is capable of hwaccel 4k, as shown in this comptaibility spreadsheet. I've ensured the files I'm trying to test are appropriate. Am I missing something in the logs? Should I install the docker variant instead?
- I'm using the latest version 10.8.13 on a synology ds1019+. Installed through the community apps.
- It has a celeron J3455 CPU, which is capable of hwaccel. I know it definitely can do this because I installed plex using a free 30 day trial. hwaccel worked there out of the box, 4k transcodes used at most 20% CPU.
- Given it's based on linux, I'm using VAAPI. I've tried the other options though.
- below is the ffmpeg log, as far as I can tell it IS using /dev/dri/renderD128 as it's supposed to, but it must be falling back to software, and single stream transcodes max out the CPU
Quote:ffmpeg version 4.4.4-49 Copyright © 2000-2023 the FFmpeg developers
built with gcc 8.5.0 (GCC)
configuration: --target-os=linux --cross-prefix=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-x64-7.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --prefix=/var/packages/ffmpeg/target --extra-cflags=-I/home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg4/work-x64-7.1/install/var/packages/ffmpeg/target/include --extra-ldflags=-L/home/spksrc/ffmpeg4-dsm6-fix/spksrc/spk/ffmpeg4/work-x64-7.1/install/var/packages/ffmpeg/target/lib --extra-libs='-lxml2 -ldl -lm' --pkg-config=/usr/bin/pkg-config --ranlib=/home/spksrc/ffmpeg4-dsm6-fix/spksrc/toolchain/syno-x64-7.1/work/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ranlib --enable-cross-compile --enable-rpath --enable-pic --enable-shared --enable-gpl --enable-version3 --enable-avresample --disable-debug --disable-static --disable-doc --extra-version=49 --extra-cflags=-DSYNO_VIDEOSTATION --extra-cflags=-fno-if-conversion --extra-cflags=-O3 --extra-cflags=-Wno-deprecated-declarations --x86asmexe=nasm --enable-libcodec2 --enable-libxml2 --enable-demuxer=dash --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libopenjpeg --enable-libmp3lame --enable-libbluray --enable-libspeex --enable-libtheora --enable-libcaca --enable-libdc1394 --enable-libvorbis --enable-libwebp --enable-libzmq --enable-gnutls --enable-libopenh264 --enable-libopus --enable-libsoxr --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librabbitmq --enable-libtwolame --enable-libzvbi --enable-libx264 --enable-libx265 --enable-libvpx --enable-libshine --enable-chromaprint --enable-libdav1d --enable-librist --enable-libzimg --enable-libfdk-aac --enable-nonfree --enable-libaom --enable-libsvtav1 --enable-libsvthevc --arch=x86_64 --enable-vaapi --enable-libmfx --enable-libdrm --enable-libass --enable-frei0r
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
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, matroska,webm, from 'file:/volume1/movies/thriller/Deep.Cover.1992.1080p.BluRay.DD+5.1.x264-iFT.mkv':
Metadata:
title : Deep.Cover.1992.1080p.BluRay.DD+5.1.x264-iFT
encoder : libebml v1.4.2 + libmatroska v1.6.4
creation_time : 2021-07-21T17:12:11.000000Z
Duration: 01:47:48.46, start: 0.000000, bitrate: 20959 kb/s
Chapters:
Chapter #0:0: start 0.000000, end 167.292000
Metadata:
title : 1. Opening credits
Chapter #0:1: start 167.292000, end 293.251000
Metadata:
title : 2. "Cleveland, 1972"
Chapter #0:2: start 293.251000, end 473.223000
Metadata:
title : 3. "Cincinnati, 20 Years Later"
Chapter #0:3: start 473.223000, end 634.425000
Metadata:
title : 4. "Los Angeles, Two Weeks Later"
Chapter #0:4: start 634.425000, end 875.792000
Metadata:
title : 5. "Hollywood, Hollywood"
Chapter #0:5: start 875.792000, end 1187.853000
Metadata:
title : 6. "We got a problem, David"
Chapter #0:6: start 1187.853000, end 1343.384000
Metadata:
title : 7. James and his mother
Chapter #0:7: start 1343.384000, end 1637.094000
Metadata:
title : 8. Interrogation and court
Chapter #0:8: start 1637.094000, end 1958.290000
Metadata:
title : 9. "Come on, Eddie, tell the truth!"
Chapter #0:9: start 1958.290000, end 2253.293000
Metadata:
title : 10. "You're a drug dealer! Deal drugs!"
Chapter #0:10: start 2253.293000, end 2466.964000
Metadata:
title : 11. Betty
Chapter #0:11: start 2466.964000, end 2813.894000
Metadata:
title : 12. An eye for an eye
Chapter #0:12: start 2813.894000, end 3297.169000
Metadata:
title : 13. A chemical variant
Chapter #0:13: start 3297.169000, end 4180.885000
Metadata:
title : 14. The deal goes bad
Chapter #0:14: start 4180.885000, end 4961.498000
Metadata:
title : 15. Gallegos
Chapter #0:15: start 4961.498000, end 5244.239000
Metadata:
title : 16. "What's happening, Reverend?"
Chapter #0:16: start 5244.239000, end 5906.400000
Metadata:
title : 17. Down to the docks
Chapter #0:17: start 5906.400000, end 6146.182000
Metadata:
title : 18. "Madam Chairman, my assignment was..."
Chapter #0:18: start 6146.182000, end 6228.597000
Metadata:
title : 19. Blood money
Chapter #0:19: start 6228.597000, end 6468.462000
Metadata:
title : 20. End credits/"Deep Cover"
Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1038, SAR 1:1 DAR 320:173, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
BPS : 20318400
DURATION : 01:47:48.462000000
NUMBER_OF_FRAMES: 155088
NUMBER_OF_BYTES : 16428600098
_STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2021-07-21 17:12:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(eng): Audio: eac3, 48000 Hz, 5.1, fltp (default)
Metadata:
title : 5.1 Surround Upmix
BPS : 640000
DURATION : 01:47:34.272000000
NUMBER_OF_FRAMES: 201696
NUMBER_OF_BYTES : 516341760
_STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2021-07-21 17:12:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Subtitle: subrip
Metadata:
title : Full .srt
BPS : 77
DURATION : 01:40:38.199000000
NUMBER_OF_FRAMES: 1570
NUMBER_OF_BYTES : 58221
_STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2021-07-21 17:12:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(eng): Subtitle: subrip
Metadata:
title : SDH .srt
BPS : 88
DURATION : 01:45:16.059000000
NUMBER_OF_FRAMES: 1822
NUMBER_OF_BYTES : 70238
_STATISTICS_WRITING_APP: mkvmerge v59.0.0 ('Shining Star') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2021-07-21 17:12:11
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_vaapi))
Stream #0:1 -> #0:1 (eac3 (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
Output #0, hls, to '/volume1/@appdata/jellyfin/data/transcodes/c0ff8545f357b1276111368de772300d.m3u8':
Metadata:
encoder : Lavf58.76.100
Stream #0:0: Video: h264 (High), vaapi_vld(tv, bt709, progressive), 1920x1038 [SAR 1:1 DAR 320:173], q=2-31, 7616 kb/s, 23.98 fps, 90k tbn (default)
Metadata:
encoder : Lavc58.134.100 h264_vaapi
Stream #0:1: Audio: aac, 48000 Hz, stereo, s16, 384 kb/s (default)
Metadata:
encoder : Lavc58.134.100 libfdk_aac
That was a transcode of a 1080 stream to 720 and was pegging the CPU at 92%.
I'm really not sure where to go. I understand if it falls back to software it will say so in the logs. This CPU is capable of hwaccel 4k, as shown in this comptaibility spreadsheet. I've ensured the files I'm trying to test are appropriate. Am I missing something in the logs? Should I install the docker variant instead?