Handbrake does not retain Dolby Vision

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
Deleted User 51585

Handbrake does not retain Dolby Vision

Post by Deleted User 51585 »

I tried Handbrake 1.7.3 (flatpak) under Kubuntu 23.10 or Manjaro, there's the same problem with the same source/settings file, Handbrake does NOT retain Dolby Vision under Linux.

With Handbrake 1.7.3 under Windows 11 and the same source file and settings everything works fine, Dolby Vision is well preserved.

How do I keep Dolby Vision on Linux?

Thanks
rollin_eng
Veteran User
Posts: 4859
Joined: Wed May 04, 2011 11:06 pm

Re: Handbrake does not retain Dolby Vision

Post by rollin_eng »

Could you please post your HB logs, instructions can be found here:

https://handbrake.fr/docs/en/latest/hel ... y-log.html
Rodeo314
Novice
Posts: 56
Joined: Wed Jan 17, 2024 3:44 am

Re: Handbrake does not retain Dolby Vision

Post by Rodeo314 »

It is possible the Flatpak is built without libdovi support, which I'm not sure the log will necessarily show; ritsuka would perhaps know.
User avatar
JohnAStebbins
HandBrake Team
Posts: 5728
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake does not retain Dolby Vision

Post by JohnAStebbins »

The flatpak on flathub is indeed built without libdovi. Building rust libs and applications with flatpak builder currently has issues due to how cargo downloads dependencies. flatpak builder is sandboxed and does not permit this kind of network access.

We are working on resolving this, see https://github.com/HandBrake/HandBrake/pull/5819. Hopefully we can rectify in the next release.
Deleted User 51585

Re: Handbrake does not retain Dolby Vision

Post by Deleted User 51585 »

Thanks :D
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

I'm using v1.7.3, installed from ubuntuhandbook1/handbrake repo and still DV is not retained.
https://paste.ubuntu.com/p/CyhzQ8swJF/

I'm scratching my head as well to figure out why. Can anyone pla help?
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

here is the link in pastebin: https://pastebin.com/ua7p7ubh
User avatar
JohnAStebbins
HandBrake Team
Posts: 5728
Joined: Sat Feb 09, 2008 7:21 pm

Re: Handbrake does not retain Dolby Vision

Post by JohnAStebbins »

MacDas wrote: Wed Mar 20, 2024 5:00 pm I'm using v1.7.3, installed from ubuntuhandbook1/handbrake repo and still DV is not retained.
This is not an official build. You'll have to talk to whoever packaged this. They probably neglected to enable libdovi in the build.
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

That's what I was slowly getting at.
Is the any Linux build atm has libdovi enabled? I believe Flatpak build doesn't have that either?

-S
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

it also fails to compile on Ubuntu 22.04 with this:

Code: Select all

gmake: *** [../contrib/libdovi/module.rules:2: contrib/libdovi/.stamp.libdovi.configure] Error 127
whilst using --enable-libdovi
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

'morning all!!
anyone has any answer to why libdovi build is failing? Can anyone help at all?
Rodeo314
Novice
Posts: 56
Joined: Wed Jan 17, 2024 3:44 am

Re: Handbrake does not retain Dolby Vision

Post by Rodeo314 »

Not without the full build log, no.
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

Rodeo314 wrote: Fri Mar 22, 2024 9:59 pm Not without the full build log, no.
here you go:
https://pastebin.com/raw/TQyWTu0S
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake does not retain Dolby Vision

Post by s55 »

Missing build dependencies.

Cargo / Rust are missing:

curl https://sh.rustup.rs -sSf | sh
source "$HOME/.cargo/env"
cargo install cargo-c
rustup target add x86_64-pc-windows-gnu
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

thank you very much @s55 - that Cargo was the main missing bit.
After installing `libgtk-4-dev` the build was a success.
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

Now, ned to make a .deb out of that. :D
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

Also, cargo should be added to documentation, where it lists all the pkgs to meet the dependencies on Ubuntu.
WE can simpley do:

Code: Select all

apt install cargo 
on ubuntu, which also install Rustc centrally.
User avatar
Ritsuka
HandBrake Team
Posts: 1658
Joined: Fri Jan 12, 2007 11:29 am

Re: Handbrake does not retain Dolby Vision

Post by Ritsuka »

Uhm the configure script checks already for cargo and cargoc, unfortunately it seems it doesn't disable libdovi if you force it on.
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: Handbrake does not retain Dolby Vision

Post by s55 »

Yup, the docs are in need of an update
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

also, libgtk-3-dev didn't work in Ubuntu 22.04. I had to install libgtk-4-dev instead
MacDas
Posts: 14
Joined: Wed Oct 21, 2020 10:10 am

Re: Handbrake does not retain Dolby Vision

Post by MacDas »

works perfectly now, including complining, building .deb and creating the MKV with DV support.

I have put together a quick script here to do a end-to-end package build: https://pastebin.com/raw/NEjGdsm0
also created this post: viewtopic.php?p=205888 with some details :)

Thaks everyone for helping!!
Post Reply