FreeTube icon indicating copy to clipboard operation
FreeTube copied to clipboard

How to enable hardware decoding in linux?

Open xeleven11 opened this issue 3 years ago • 2 comments

I am using Ubuntu 20.10 x64 with Nvidia 470.57.02 X.org driver. Freetube does not use hardware acceleration for 4k videos. Software decode is enabled using dav1d and proccessor runs fine.

xeleven11 avatar Oct 16 '21 20:10 xeleven11

Like with all other Apps based on Electron and also all browsers available on linux, GPU based videodecoding isn't really a thing.

For decoding AV1 Videos you'll need an Nvidia RTX 3000 series GPU. In addition to that requirement Freetube/Electron must support Nvidia NVDEC which is not the case right now. Actually no linux desktop app that i know is supporting NVDEC at the moment. There is support for VDPAU in some linux Mediaplayer Apps. However VDPAU is tied to X11 which will make it abandonware at some point because of Wayland. Also there is no support for AV1 decoding with VDPAU.

Nvidia GPU'S are better for videoencoding on linux because of NVENC but for videodecoding the situation with Nvidia is even worse compared to AMD.

I have learned that support for hardware videoencoding and -decoding is a "nice to have" feature when it comes to linux. Nothing compensates a powerfull CPU on linux.

ripper81 avatar Feb 10 '22 20:02 ripper81

Hi is this issue still valid?

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take action. Please reach out if you have or find the answers we need so that we can investigate further.

github-actions[bot] avatar Sep 30 '22 00:09 github-actions[bot]

@efb4f5ff-1298-471a-8973-3d47447115dc could you reopen? I have tried a few things but still cannot get it to work. I've tried adding those flags:

./FreeTube-0.18.0-nightly-2844.AppImage --enable-features=VaapiVideoDecoder --ozone
-platform-hint=auto --enable-features=VaapiIgnoreDriverChecks

pm4rcin avatar Apr 05 '23 13:04 pm4rcin