Can't get QSV working on Ubuntu 20.04

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Hios
Posts: 3
Joined: Sun Feb 14, 2021 8:44 pm

Can't get QSV working on Ubuntu 20.04

Post by Hios »

Description of problem or question:
Cannot get HandBrake to enable qsv encoders on Ubuntu Server 20.04. I have both the HandBrake and QuickSync plugin flatpaks installed. It's a Kaby Lake processor and this machine is my Plex server. Plex recognizes and uses the QSV ability. I'm guessing it's tied to the "Cannot load libnvidia-encode.so.1" line in the activity log.



Steps to reproduce the problem (If Applicable):
Install both flatpaks, restart server, open HandBrake and don't see qsv encoders in the list of options.



HandBrake version (e.g., 1.0.0):
1.3.3 (x86_64)



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu Server 20.04.2 LTS



HandBrake Activity Log ***required*** (see How-to get an activity log)

Code: Select all

16:31:15] gtkgui: HandBrake 1.3.3 (2020061500) - Linux x86_64 - https://handbrake.fr
Cannot load libnvidia-encode.so.1
[16:31:15] hb_init: starting libhb thread
[16:31:15] hb_init: starting libhb thread
[16:31:15] hb_init: starting libhb thread
[16:55:42] CPU: Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz
[16:55:42]  - Intel microarchitecture Kaby Lake
[16:55:42]  - logical processor count: 6
[16:55:42] Intel Quick Sync Video support: no
[16:55:42] hb_scan: path=/run/user/1000/gvfs/afp-volume:host=nas1.local,user=handbrake,volume=UN_Downloads/complete/Dolby Audio_Horizon_True HD 71.mkv, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /run/user/1000/gvfs/afp-volume:host=nas1.local,user=handbrake,volume=UN_Downloads/complete/Dolby Audio_Horizon_True HD 71.mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/run/user/1000/gvfs/afp-volume:host=nas1.local,user=handbrake,volume=UN_Downloads/complete/Dolby Audio_Horizon_True HD 71.mkv/) failed
[16:55:42] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[16:55:42] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from '/run/user/1000/gvfs/afp-volume:host=nas1.local,user=handbrake,volume=UN_Downloads/complete/Dolby Audio_Horizon_True HD 71.mkv':
  Metadata:
    encoder         : libebml v1.3.0 + libmatroska v1.4.1
    creation_time   : 2015-04-17T19:31:03.000000Z
  Duration: 00:01:52.35, start: 0.000000, bitrate: 16863 kb/s
    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080, SAR 1:1 DAR 16:9, 24 fps, 24 tbr, 1k tbn, 48 tbc (default)
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s (default)
[16:55:42] scan: decoding previews for title 1
[16:55:42] scan: audio 0x1: ac3, rate=48000Hz, bitrate=640000 English (AC3) (5.1 ch) (640 kbps)
[16:55:43] scan: 10 previews, 1920x1080, 24.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[16:55:43] scan: supported video decoders: avcodec qsv
[16:55:43] libhb: scan thread found 1 valid title(s)
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

Hello ,

i ' ve tried to install intel QSV support too , for this i followed the handbrake documentation page :
https://handbrake.fr/docs/en/1.2.0/deve ... linux.html

but appear to not work , i post problems encountered here :
https://github.com/HandBrake/HandBrake-docs/issues/130

Description of problem or question:
Cannot get HandBrake to enable qsv encoders on Ubuntu Server 20.04.

HandBrake version (e.g., 1.0.0):
1.3.3 (x86_64)

HandBrake Activity Log ***required*** (see How-to get an activity log) :
nothings interesting in it with the actual problem : compile handbrake with active QSV support .
but i got the compile terminal output 2.2 mb if necessary i can send it where you want .
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

i don't find where to click to edit my post sorry for double posting :cry:
my cpu :
iznobe@iznobe-PC:~$ inxi -C

Code: Select all

CPU:
  Topology: 8-Core model: Intel Core i7-10700 bits: 64 type: MT MCP 
  L2 cache: 16.0 MiB 
  Speed: 3300 MHz min/max: 800/4800 MHz Core speeds (MHz): 1: 3262 2: 3262 
  3: 3261 4: 3261 5: 3261 6: 3261 7: 3260 8: 3260 9: 3262 10: 3262 11: 3262 
  12: 3261 13: 3261 14: 3261 15: 3261 16: 3261 
iznobe@iznobe-PC:~$

Code: Select all

iznobe@iznobe-PC:~$ inxi -G
Graphics:
  Device-1: Intel CometLake-S GT2 [UHD Graphics 630] driver: i915 v: kernel 
  Display: x11 server: X.Org 1.20.9 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CML GT2) v: 4.6 Mesa 20.2.6 
iznobe@iznobe-PC:~$
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

Finally i ve found a post it linked the procedure for the 1.3.X version ...
viewtopic.php?f=13&t=40831

first i remove handbrake on my system by :

Code: Select all

sudo apt remove --purge handbrake
then follow exact procedure ( git-lfs was already installed )

with this , all seems to happen as expected , even i had a end message " succes to build ", except i can't launch handbrake via the menu :mrgreen:
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

ok when i launch in terminal :

Code: Select all

ghb
the handbrake window open so , i'm looking at video codecs and now i've still don't have QSV encoder on the list , but i don't have anymore VP8 , VP9 and Theora :mrgreen: .

not all is translate in my language ( french ) .

it seems the install procedure is wrong or miss somewhat :shock:
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

ok ,
hope it can help to solve this , here is my log activity with the install procedure, if you can see what is wrong :

Code: Select all

[15:57:54] gtkgui: HandBrake 1.3.3 (2021032700) - Linux x86_64 - https://handbrake.fr
Cannot load libnvidia-encode.so.1
[15:57:54] hb_init: starting libhb thread
[15:57:54] hb_init: starting libhb thread
[15:57:54] hb_init: starting libhb thread
[15:57:54] CPU: Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz
[15:57:54]  - logical processor count: 16
[15:57:54] Intel Quick Sync Video support: no
[15:57:54] hb_scan: path=/home/iznobe/Téléchargements/Big_Buck_Bunny_1080_10s_1MB.mp4, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /home/iznobe/Téléchargements/Big_Buck_Bunny_1080_10s_1MB.mp4
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/home/iznobe/Téléchargements/Big_Buck_Bunny_1080_10s_1MB.mp4/) failed
[15:57:54] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[15:57:54] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/iznobe/Téléchargements/Big_Buck_Bunny_1080_10s_1MB.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    composer        : Sacha Goedegebure
    encoder         : Lavf57.63.100
    comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
    genre           : Animation
  Duration: 00:00:10.00, start: 0.000000, bitrate: 815 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 812 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
[15:57:54] scan: decoding previews for title 1
[15:57:55] scan: 10 previews, 1920x1080, 30,000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[15:57:55] scan: supported video decoders: avcodec qsv
[15:57:55] libhb: scan thread found 1 valid title(s)
iznobe
Posts: 10
Joined: Mon Aug 24, 2020 5:45 am

Re: Can't get QSV working on Ubuntu 20.04

Post by iznobe »

Hi , finnally i got it working .

see here the complete procedure : https://forum.ubuntu-fr.org/viewtopic.p ... #p22433271
Post Reply