Giter Site home page Giter Site logo

VAAPI vs. QSV about jellyfin-docs HOT 21 OPEN

jellyfin-archive avatar jellyfin-archive commented on July 23, 2024
VAAPI vs. QSV

from jellyfin-docs.

Comments (21)

anthonylavado avatar anthonylavado commented on July 23, 2024 1

For reference (because this has been long lost in the main repo), here are Emby's flags:
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/emby-server#n75

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024 1

Well if there's docker on that system you could automatically build it 😂

from jellyfin-docs.

EraYaN avatar EraYaN commented on July 23, 2024

Your qsv log is a plain software encode. Please provide the actual run with qsv h264_qsv. It'll look like this: https://trac.ffmpeg.org/wiki/Hardware/QuickSync

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

@EraYaN i believe he did try QSV, we were discussing it in the chat. Do you know any reason why it wouldn't use libmfx? I can't test vaapi/qsv so I can't verify the functionality of the stream builder. Have you ever used qsv?

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

I definitely configured QSV so either there are drivers missing or JF has a problem with it

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

Notes:
Enabling QSV with ffmpeg
https://software.intel.com/en-us/articles/quick-start-on-integrating-ffmpeg-libraries

Dockerfile for compiling ffmpeg,
https://github.com/jellyfin/jellyfin-ffmpeg/blob/39f183cc303e9c8542c9905e31e733490f999b2f/docker/Dockerfile#L348-L379

Person troubleshooting their QSV.
https://software.intel.com/en-us/forums/media/topic/803933

General Info
https://software.intel.com/sites/default/files/media_server_studio_getting_started_guide.pdf

From the looks of it --enable-nonfree isn't there. Based on licensing, can we add that or would that cause trouble for us?

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

No that makes it unredistributable
(It also shows a big warning telling you that then)

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

The only thing you could theoretically do is build it on that device automatically

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

I don't what to build my own ffmpeg right now so I think I guess we can close this pretty much

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

https://www.ffmpeg.org/legal.html

I can add more notes I want to parse if you want

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

NDI added nonfree to their FFmpeg build and all hell broke lose. Looks like it was because their overall license was the issue, not the nonfree itself.
https://trac.ffmpeg.org/ticket/7589?cversion=0&cnum_hist=11

Emby thread with compiling FFmpeg locally.
https://emby.media/community/index.php?/topic/10723-gpu-transcoding-intel-quicksync-and-nvidia-nvenc/page-30

Unofficial FFMPEG 'How not to get into Hall of Shame' FAQ for legalities
https://forum.doom9.org/showthread.php?t=154477

More instructions on QSV and Linux
https://www.intel.de/content/dam/www/public/emea/xe/en/documents/white-papers/quicksync-video-ffmpeg-install-valid.pdf
3.Configure FFmpeg with “--enable –libmfx –enable-nonfree”, build, and install.This requires copying include files to /opt/intel/mediasdk/include/mfx andadding a libmfx.pc file. More details below.
We also don't enable libmfx by default. I need to dig into what the nonfree enables. As long as it doesn't allow for libs we can't use, we should be good to go, but licensing isn't my forte. I'm finding mostly results about people violating GPL, not for violating with -nonfree in a GPL license.

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

Thanks. So for HWA we're missing --enable-nvdec --enable-nvenc --enable-libmfx. Not sure if there's any other flags we should be including.

I've seen reports of people using NVENC so I want to check their reddit post and see if they did anything special.

Edit:
https://www.reddit.com/r/jellyfin/comments/amuyba/nvenc_nvdec_working_in_jellyfin_on_ubuntu_server/
I'm happy to report that hardware transcoding with NVIDIA GPUs under Ubuntu Server 18.04 works in an out-of-the-box config on Jellyfin!
hmmm....

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

Just be sure to not make it unredistributable by accident

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

Don't worry, we won't make changes without thorough research and approvals. It appears that nonfree isn't needed based on other builds, but needs testing to be verified.

Good breakdown.
http://www.ffmpeg-archive.org/What-does-enable-gpl-and-enable-nonfree-do-td2239371.html

Another project tackling the nonfree issue.
SynoCommunity/spksrc#3564

nonfree build example
https://gist.github.com/silverkorn/db5451f836e2bf9dea2a8358475eb5f4

from jellyfin-docs.

JustAMan avatar JustAMan commented on July 23, 2024

Shameless plug of ffmpeg build: https://github.com/JustAMan/ffmpeg-standalone-build

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

The nonfree warning is commented out on your repo, which is not good

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

So you can provide build instructions, you can't provide built binaries. The licenses are weird about that

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

Oh sorry it's just it's another place

from jellyfin-docs.

Artiume avatar Artiume commented on July 23, 2024

jellyfin/jellyfin#2261 (comment)

Can you make sure these are installed?

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024
E: Unable to locate package intel-media-va-driver-non-free

Ubuntu 18.04

from jellyfin-docs.

cromefire avatar cromefire commented on July 23, 2024

Won't work for me anyway my processor is older than Broadwell

from jellyfin-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.