Package Details: handbrake-nvenc 1.5.1-1

Git Clone URL: (read-only, click to copy)
Package Base: handbrake-nvenc
Description: Multithreaded video transcoder with NVEnc Support
Upstream URL:
Keywords: handbrake nvenc transcode
Licenses: GPL
Conflicts: handbrake
Submitter: Abzie
Maintainer: Abzie
Last Packager: Abzie
Votes: 3
Popularity: 0.000673
First Submitted: 2019-01-27 18:42 (UTC)
Last Updated: 2022-01-11 19:13 (UTC)

Latest Comments

rado84 commented on 2021-02-07 14:43 (UTC)

Can anyone test this version to confirm that putting the computer to sleep is actually working? I have the community version but there the sleeping function doesn't work, so I'm looking for alternatives, preferably ones that support nvenc. You can test it by setting 1 or 2 files in queue for conversion, open queue window and choose "put computer to sleep" when done. On the handbrake forum they suggested that I download a deb package but I don't wanna resort to that just yet.

ezacaria commented on 2021-01-04 16:14 (UTC) (edited on 2021-01-04 16:15 (UTC) by ezacaria)

First off, happy new year! And sorry about the delayed reply. I sent the patch to disable the dav1d by email.

By the way, if you find that the workaround is useful, there is no need to credit me. Thanks for maintaining this package.

Abzie commented on 2020-12-29 12:16 (UTC)

ezacaria, can you send over the patch via email so I can review.

There is an issue on handbrake with the same dav1d not found using pkg-config problem on Debian unstable so I can include your patch with credit in the PKGBUILD, if verified.

Thanks, Abzie

ezacaria commented on 2020-12-28 18:25 (UTC) (edited on 2020-12-28 18:25 (UTC) by ezacaria)

Glad that you managed to build with the dav1d.

The only way I fixed the PKGBUILD so far was disabling dav1d support (I personally have not missed it yet). Maybe I should have been more explicit in my previous post.

One way around is to take out "--enable-libdav1d" and "--enable-decoder=libdav1d" from ${startdir}/src/HandBrake-1.3.3/contrib/ffmpeg/module.defs

I made a small patch for this purpose (easy to include in PKGBUILD) and was able to build it.

As for the other problem, it seems that the current kernel "5.9.14-arch1-1" and nvidia 455.45.01-7 took the initialisation issues away.

sbussetti commented on 2020-12-27 20:46 (UTC)

I was able to do a build from source, and it seems like the Handbrake build itself is bungled. In order to make it work I had to build dav1d into the HandBrake's build/contrib dir where it was expecting it to be.

Not sure how that translates to this PKGBUILD

sbussetti commented on 2020-12-27 19:44 (UTC)

alternatively if I try to run makepkg directly on your PKGBUILD (instead of via aura), I get further, but then fail on:

set -e; /usr/bin/mkdir -p ./contrib/ffmpeg/ffmpeg-4.2.3/; cd ./contrib/ffmpeg/ffmpeg-4.2.3/; CC=/usr/bin/gcc CFLAGS="-I/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/include -std=gnu99 -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -mfpmath=sse -msse2" CXX=/usr/bin/g++ CXXFLAGS="-I/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/include -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -mfpmath=sse -msse2" CPPFLAGS="-I/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/include " LDFLAGS="-L/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/lib -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now" PKG_CONFIG_PATH="/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/lib/pkgconfig" PATH="/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/bin:/home/sol/bin:/home/sol/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/sol/.gem/ruby/2.2.0/bin:/usr/lib/jvm/default/bin:/home/sol/.gem/ruby/2.2.0/bin" ./configure --prefix=/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/ --disable-shared --enable-static --enable-gpl --disable-doc --disable-programs --disable-avdevice --disable-muxers --disable-network --disable-hwaccels --disable-vdpau --disable-encoders --enable-libmp3lame --enable-encoder=aac --enable-encoder=ac3 --enable-encoder=eac3 --enable-encoder=flac --enable-encoder=mpeg2video --enable-encoder=mpeg4 --enable-encoder=libmp3lame --enable-libopus --enable-encoder=libopus --enable-libspeex --disable-encoder=libspeex --enable-decoder=libspeex --enable-libvpx --disable-decoder=libvpx_* --enable-encoder=libvpx_vp8 --enable-encoder=libvpx_vp9 --disable-decoder=*_crystalhd --enable-libdav1d --enable-decoder=libdav1d --cc="/usr/bin/gcc" --extra-ldflags="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -mfpmath=sse -msse2 -L/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/lib" --disable-vaapi --enable-muxer=matroska --enable-muxer=webm --enable-muxer=mov --enable-muxer=mp4 --enable-muxer=psp --enable-muxer=ipod --disable-debug --extra-cflags="-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -D_FORTIFY_SOURCE=2 -mfpmath=sse -msse2 -I/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build/contrib/include -DNDEBUG" --enable-nvenc --enable-encoder=h264_nvenc --enable-encoder=hevc_nvenc
ERROR: dav1d >= 0.2.1 not found using pkg-config

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the mailing list or IRC #ffmpeg on
Include the log file "ffbuild/config.log" produced by configure as this will help
solve the problem.
make: *** [../contrib/ffmpeg/module.rules:2: contrib/ffmpeg/.stamp.ffmpeg.configure] Error 1
make: Leaving directory '/home/sol/src/handbrake-nvenc/src/HandBrake-1.3.3/build'
==> ERROR: A failure occurred in build().

sbussetti commented on 2020-12-27 19:20 (UTC)

I'm okay on the pgp sig, but I am hitting:

'm okay on the PGP issue, but currently seeing this:
aura >>= Determining dependencies...
aura >>= AUR Packages:
aura >>= Continue? [Y/n]
aura >>= Building handbrake-nvenc-cli...
aura >>= Building failed. Would you like to see the error? [Y/n]
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   654  100   654    0     0   3758      0 --:--:-- --:--:-- --:--:--  3758
100 16.0M  100 16.0M    0     0  17.4M      0 --:--:-- --:--:-- --:--:-- 31.2M
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   658  100   658    0     0   4666      0 --:--:-- --:--:-- --:--:--  4666
100   566  100   566    0     0   2471      0 --:--:-- --:--:-- --:--:--  2471
    HandBrake-1.3.3-source.tar.bz2 ... Passed
    HandBrake-1.3.3-source.tar.bz2.sig ... Skipped
    HandBrake-1.3.3-source.tar.bz2 ... Passed
ERROR: download failure; HTTP Error 404: Not Found; continuing.
make[1]: *** No rule to make target 'clean'.  Stop.
make: [../contrib/nvenc/module.rules:2: contrib/nvenc/] Error 2 (ignored)
make: *** [../contrib/ffmpeg/module.rules:2: contrib/ffmpeg/.stamp.ffmpeg.configure] Error 1
==> ERROR: A failure occurred in build().

aura >>= There was a makepkg failure.
aura >>= Would you like to continue anyway? [Y/n]
aura >>= Every package failed to build.

deletedacc343412 commented on 2020-12-03 17:00 (UTC)

People who are having pgp key error. It's a arch pgp issue. Add Ubuntu key server like this.

$ vim ~/.gnupg/gpg.conf


keyserver hkps://  
keyserver-options timeout=10  
keyserver-options import-clean  
keyserver-options no-self-sigs-only

ezacaria commented on 2020-11-07 17:05 (UTC)

I disabled the dav1d by patching contrib/ffmpeg/module.defs and managed to build the package. Unfortunately, the nvenc fails to initialize:

[h264_nvenc @ 0x7fc9f05f6980] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error

This seems to a situation with the current kernel/driver pair :/ "As mentioned in the news, anything other than pure graphics is currently broken in a nvidia/linux5.9 setup."

ezacaria commented on 2020-11-06 17:47 (UTC)

There's an error when building: ERROR: dav1d >= 0.2.1 not found using pkg-config

This seems to be a known issue:

Other variants of handbrake in AUR also seem to be affected.

tdallagn commented on 2020-09-19 11:55 (UTC)

Same here, PGP signature error.

nebiros commented on 2020-07-25 13:56 (UTC)

a PGP Signature error occurs

Gatenkaas commented on 2020-01-05 15:09 (UTC)

It also seems to require numactl as a build dependency. Otherwise handbrake does not start: " cannot open shared object file: No such file or directory"

Elfe commented on 2020-01-04 17:30 (UTC)

it seems to require meson as build dependency which is currently not pulled in

find: meson...(fail) not found : name[0] = meson ERROR: unable to continue; configure stop. ==> ERROR: A failure occurred in build(). Aborting... Error making: handbrake-nvenc

kragol commented on 2019-10-19 13:58 (UTC) (edited on 2019-10-19 14:00 (UTC) by kragol)

I am facing the same issue as @Gatenkaas It turns out it is a known problem with pango 1.44. See

No fix out yet except reverting to an older pango version (I have not tested).

flexid2000 commented on 2019-08-23 10:33 (UTC)

@Gatenkaas You should build it with pango-ubuntu, then the error disappears.

Abzie commented on 2019-08-06 16:41 (UTC)

@Gatenkaas Pango has been updated, try building now.

Abzie commented on 2019-08-04 19:59 (UTC)

@Gatenkaas Looks like an issue with Pango/Harfbuzz, not this package.

Gatenkaas commented on 2019-08-04 16:53 (UTC)

Get some build errors: /usr/include/pango-1.0/pango/pango-font.h:493:53: error: unknown type name ‘hb_feature_t’; did you mean ‘hb_value_t’? /usr/include/pango-1.0/pango/pango-font.h:497:1: error: unknown type name ‘hb_font_t’

Win8Error commented on 2019-06-14 13:04 (UTC)

@Abzie Sorry, i have forgot to select the right profile. :/

Everything works perfectly now.

Win8Error commented on 2019-06-14 12:52 (UTC)

@Abzie I have transcoded the same file with the normal handbrake and this version of handbrake. Both took exactly the same amount of time.

Do i have to manually enable hardware acceleration? My GPU is a NVIDIA GTX 1060 6GB. I use the proprietary driver version 430.26.

Win8Error commented on 2019-06-14 11:59 (UTC)

@Abzie Sorry, the problem was my fault ... I don't upgrading my system very often so my installed perl version was to old ...

After a full upgrade the package was successfully compiled.

Abzie commented on 2019-06-13 21:29 (UTC) (edited on 2019-06-13 21:31 (UTC) by Abzie)

Win8Error, yaourt is no longer supported, try yay or similar aur helpers.

Looks like yaourt/perl is missing dependancies: "XML::Parser perl module is required for intltool"

Win8Error commented on 2019-06-13 18:59 (UTC) (edited on 2019-06-13 18:59 (UTC) by Win8Error)

Build failed

checking for xgettext... (cached) /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for msgfmt... (cached) /usr/bin/msgfmt checking for gmsgfmt... (cached) /usr/bin/msgfmt checking for perl... /usr/bin/perl checking for perl >= 5.8.1... 5.28.2 checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool make: *** [../gtk/module.rules:17: gtk/.stamp.configure] Fehler 2 make: Verzeichnis „/home/joel/.cache/yaourt-tmp-joel/aur-handbrake-nvenc/src/HandBrake-1.2.2/build“ wird verlassen ==> FEHLER: Ein Fehler geschah in build(). Breche ab... ==> FEHLER:Makepkg konnte handbrake-nvenc nicht erstellen. ==> Erstellen von handbrake-nvenc neu starten?[j/N] ==> -----------------------------------------------