spksrc icon indicating copy to clipboard operation
spksrc copied to clipboard

Now Jellyfin decoding is too slow. . .

Open zhangbo8418 opened this issue 3 years ago • 9 comments

Software Name

jellyfin-ffmpeg

Brief Description

can add --enable-gmp --enable-libplacebo --enable-libshaderc --enable-opencl --enable-vulkan?

Now Jellyfin decoding is too slow. . .

Website

https://github.com/jellyfin/jellyfin-ffmpeg

Documentation

No response

Build/Installation documentation

https://github.com/jellyfin/jellyfin-ffmpeg

Source code

https://github.com/jellyfin/jellyfin-ffmpeg

OpenSource License

GPLv3

Other License

No response

zhangbo8418 avatar Oct 12 '22 01:10 zhangbo8418

Can you please explain what your request is about?

  • what's your NAS arch?
  • version of ffmpeg?
  • version of jellyfin
  • why do you require opencl & vulkan options?

th0ma7 avatar Oct 13 '22 22:10 th0ma7

Can you please explain what your request is about?

  • what's your NAS arch?
  • version of ffmpeg?
  • version of jellyfin
  • why do you require opencl & vulkan options?

My NAS is 918+ arch x86_64 ffmpeg 4.4.2-46 jellyfin 10.8.5 Because the hardware decodes 3fps, I see jellyfin official ffmpeg official enable opencl & vulkan options

zhangbo8418 avatar Oct 13 '22 23:10 zhangbo8418

Can you please explain what your request is about?

  • what's your NAS arch?
  • version of ffmpeg?
  • version of jellyfin
  • why do you require opencl & vulkan options?

fmpeg version 5.1.1-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers built with gcc 10 (Debian 10.2.1-6) configuration: --prefix=/usr/lib/jellyfin-ffmpeg --target-os=linux --extra-libs=-lfftw3f --extra-version=Jellyfin --disable-doc --disable-ffplay --disable-ptx-compression --disable-shared --disable-libxcb --disable-sdl2 --disable-xlib --enable-lto --enable-gpl --enable-version3 --enable-static --enable-gmp --enable-gnutls --enable-chromaprint --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 --enable-libfdk-aac --arch=amd64 --enable-libshaderc --enable-libplacebo --enable-vulkan --enable-opencl --enable-vaapi --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc

zhangbo8418 avatar Oct 14 '22 00:10 zhangbo8418

But this is totally unrelated, how are your expecting theses options to enhance x264/hevc decoding or what ever you're trying to decode?

Can you explain what is exactly your trying to do? what was the prior state and what is the issue you are encoutering now?

th0ma7 avatar Oct 15 '22 15:10 th0ma7

But this is totally unrelated, how are your expecting theses options to enhance x264/hevc decoding or what ever you're trying to decode?

Can you explain what is exactly your trying to do? what was the prior state and what is the issue you are encoutering now?

You can try, Jellyfin on Docker and the effect here. . .

zhangbo8418 avatar Oct 15 '22 15:10 zhangbo8418

But this is totally unrelated, how are your expecting theses options to enhance x264/hevc decoding or what ever you're trying to decode?

Can you explain what is exactly your trying to do? what was the prior state and what is the issue you are encoutering now?

The ffmpeg here is only 30fps using Jellyfin, the ffmpeg replacement of emby is 140fps, and Jellyfin10.8.5 is only 3fps using the ffmpeg here

zhangbo8418 avatar Oct 15 '22 15:10 zhangbo8418

can you please explaine what is "here" what setup are you comparing it to?

th0ma7 avatar Oct 15 '22 18:10 th0ma7

can you please explaine what is "here" what setup are you comparing it to?

IQS IQS FFmpeg For SynoCommunity IQS FFmpeg For Emby IQS

VAAPI VAAPI FFmpeg For SynoCommunity VAAPI FFmpeg For Emby VAAPI

Jellyfin10.8.5 FFmpeg For SynoCommunity

zhangbo8418 avatar Oct 17 '22 03:10 zhangbo8418

can you please explaine what is "here" what setup are you comparing it to?

The above problems do exist, and the hard solution of ffmpeg does not take effect in the new version

kuai410022283 avatar Oct 27 '22 09:10 kuai410022283

@kuai410022283 there is a new ffmpeg version out that may fix this. Are you able to have a look and determine if the problem is still there or fixed ?

publicarray avatar Apr 27 '23 11:04 publicarray

Did you try VAAPI? I think it's more stable

publicarray avatar Apr 27 '23 11:04 publicarray

@kuai410022283 for your awareness, there are now new releases of SynoCommunity ffmpeg version 4, 5 and 6 that includes Jellyfin specific patches.

Also, jellyfin package now has proper GPU driver access which should resolve issue in regards to performance when using SynoCommunity ffmpeg.

I invite you to try out output of latest pull request to confirm wether it solves your issue or not: https://github.com/SynoCommunity/spksrc/actions/runs/4870614890?pr=5711

th0ma7 avatar May 04 '23 00:05 th0ma7