Page 1 of 1

Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Thu Dec 27, 2018 10:42 am
by webstuff
Description of problem or question:

There is no source compilation for non PPA method. I downloaded the source from Handbrake's web site and proceeded to compile but I get error. Your web site should provide detailed instructions (and up to date) on how to compile these for "other linux" distros. I can't use flatpak because I want max performance on this old pc.




Steps to reproduce the problem (If Applicable):

On the machine where I have LMDE 3 installed, I downloaded (from the Handbrake website) and decompressed the source files and thought I would do the usual to compile:
sudo ./configure
cd ./build
sudo make
sudo make install

However, I got this from sudo ./configure:
probe: host tuple...(pass) x86_64-pc-linux-gnu
compute: available architectures...(pass) x86_64
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/make
find: gm4...(pass) /usr/bin/m4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /bin/tar
find: nasm...(fail) not found
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: cmake...(fail) not found
: name[0] = cmake
ERROR: unable to continue; configure stop.




HandBrake version (e.g., 1.0.0):

1.2.0


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

LMDE 3 (linux mint debian edition 3) available to download at the linux mint site. Note that this version is Debian based.


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

Code: Select all

However, I got this from sudo ./configure:
probe: host tuple...(pass) x86_64-pc-linux-gnu
compute: available architectures...(pass) x86_64
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /bin/cp
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/make
find: gm4...(pass) /usr/bin/m4
find: mkdir...(pass) /bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /bin/tar
find: nasm...(fail) not found
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: cmake...(fail) not found
: name[0] = cmake
ERROR: unable to continue; configure stop.

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Thu Dec 27, 2018 4:12 pm
by JohnAStebbins
Have you even tried the flatpak? There is no reason it shouldn't perform as well as "native" on any system. If it's not performing the same I would like to know about it so I can investigate the cause. The only performance issues I have heard about with flatpak involve access to things like OpenGL or Vulkan which HandBrake does not use.

To answer you question though, full instructions for multiple linux distros are here:
https://handbrake.fr/docs/en/latest/dev ... linux.html

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Sun May 12, 2019 3:23 am
by nema32
I got here after having tried flatpak. It appears to work, but with one glaring problem... I can't open a DVD source. I'd give a screenshot, but I already uninstalled flatpack and the app. I just wanted to update version (using 1.0.7 x86_64) which works fine, just not recent. The open source dialog from the 1.2.2 version using flatpak was very sparse, containing "pts" and some other subdir under /dev along with about 10 files, none of which were sr0. Typing in ctrl-L and entering /dev/sr0 did not work either. (cdrom, dvd, and a few others all link to sr0)

I don't know if it is a flatpak issue or not, just that what I d/l was unable to open a DVD source no matter what I tried.

I haven't tried building from source yet, just responding to your request for flatpak issues. or potential in this case, since I don't know the cause... seems permissions related.

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Sun May 12, 2019 4:00 am
by nema32
Sorry, I posted without an activity log which I hadn't removed in ~/.var.

Code: Select all

[20:37:14] gtkgui: HandBrake 1.2.2 (2019022300) - Linux x86_64 - https://handbrake.fr
[20:37:14] hb_init: starting libhb thread
[20:37:14] hb_init: starting libhb thread
[20:37:14] hb_init: starting libhb thread
[20:37:15] CPU: Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
[20:37:15]  - logical processor count: 4
[20:37:15] hb_scan: path=/dev/sr0, title_index=0
disc.c:323: failed opening UDF image /dev/sr0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:37:15] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /dev/sr0
No such file or directory
libdvdread: Could not open /dev/sr0
libdvdnav: vm: failed to open/read the DVD
[20:37:15] dvd: not a dvd - trying as a stream/file instead
[20:37:15] hb_stream_open: open /dev/sr0 failed
[20:37:15] scan: unrecognized file type
[20:37:15] libhb: scan thread found 0 valid title(s)
[20:39:03] CPU: Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
[20:39:03]  - logical processor count: 4
[20:39:03] hb_scan: path=/dev/dvd, title_index=0
disc.c:323: failed opening UDF image /dev/dvd
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:39:03] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /dev/dvd
No such file or directory
libdvdread: Could not open /dev/dvd
libdvdnav: vm: failed to open/read the DVD
[20:39:03] dvd: not a dvd - trying as a stream/file instead
[20:39:03] hb_stream_open: open /dev/dvd failed
[20:39:03] scan: unrecognized file type
[20:39:03] libhb: scan thread found 0 valid title(s)
[20:39:49] CPU: Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz
[20:39:49]  - logical processor count: 4
[20:39:49] hb_scan: path=/dev/sr0, title_index=0
disc.c:323: failed opening UDF image /dev/sr0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[20:39:49] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread: Can't stat /dev/sr0
No such file or directory
libdvdread: Could not open /dev/sr0
libdvdnav: vm: failed to open/read the DVD
[20:39:49] dvd: not a dvd - trying as a stream/file instead
[20:39:49] hb_stream_open: open /dev/sr0 failed
[20:39:49] scan: unrecognized file type
[20:39:49] libhb: scan thread found 0 valid title(s)

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Sun May 12, 2019 4:38 am
by nema32
When I build from source it opens /dev/sr0 fine. (btw, running Devuan ascii)

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Mon May 13, 2019 3:47 pm
by JohnAStebbins
From your log...

Code: Select all

libdvdread: Encrypted DVD support unavailable.
HandBrake is not a ripper and does not ship with dvdcss which does DVD decryption. You must have installed that separately on your Duvuan system which is why it works there and not in the flatpak.

We recommend using an app specifically designed for ripping, like MakeMKV, rather than using HandBrake with dvdcss. Although dvdcss works in many cases, it also fails in many cases.

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Mon May 13, 2019 4:05 pm
by nema32
It wasn't encrypted-- had been backed up years ago with DVDDecrypter-> IFO ->DVDShrink. [edit: actually, didn't use DVDShrink. the backup indicates FULL (as opposed to a shrink %), so the source isn't dual-layer. I forget what method I used exactly to back it up. Probably just DVDDecrypter->ISO->ISOBurn, but it's unlikely that method retains encryption.]

The issue was lack of being unable to see /dev/sr0 at all. I guess I could make another screenshot of the open dialog-- it had a small fraction of the devices actually there. Built one shows pretty much everything. 17 subdirs under /dev, and over 150 ttys, vcs, loop devices, etc. The one I d'l showed 2 subdirs and maybe 10 files. stdin, stdout stderr being the ones I remember.

[edit2: installed it again to provide screenshot and logs using a known unencrypted DVD.]
~/.var.app/fr.handbrake.ghb/config/ghb/Activity.log.3

Code: Select all

[10:21:48] gtkgui: HandBrake 1.2.2 (2019022300) - Linux x86_64 - https://handbrake.fr
[10:21:48] hb_init: starting libhb thread
[10:21:48] hb_init: starting libhb thread
[10:21:48] hb_init: starting libhb thread
[10:21:49] gtkgui: Failed to read presets file, initailizing new presets...
~/.config/ghb/Activity.log.15034

Code: Select all

[10:22:19] gtkgui: HandBrake 20190511193900-50f8adb-master (2019051201) - Linux x86_64 - https://handbrake.fr
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[10:22:19] hb_init: starting libhb thread
[10:22:19] hb_init: starting libhb thread
[10:22:19] hb_init: starting libhb thread

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Mon May 13, 2019 4:29 pm
by JohnAStebbins
I forgot, you would also have to give the flatpak device access. I have the permissions set to be as safe as possible without crippling HandBrake's primary functions. But this means disabling raw device access. I think you can fix this with:

Code: Select all

flatpak override --device=all fr.handbrake.ghb
man flatpak-override for details

Re: Please provide full instruction on how to compile handbrake for Debian based linux mint (LMDE3)

Posted: Mon May 13, 2019 4:43 pm
by nema32
Yes that worked. (root required to grant permissions) Then it could see and access stuff in /dev, and it properly scanned the titles.