handbrake - subtitles not in sync
- Login o registrati per inviare commenti
Hi have tried for the past days to get handbrake to rip my dvds with subtitles.
But the subtitles are not in sync and some times two subtitle sequences (or whatever to call them) are overlaying each other.
A number of people here on the forum have helped me, and I have tried various combinations of different version of handbrake and libdvdcss. Nothing works.
So, my last shot (at least for now) is this: A user, lele-canfora, at this reddit thread claimed (3 years ago) to have solved the same problem by building handbrake 1.3.3 and installing that home-built version (apparently, the flatpak version of 1.3.3 "doesnt work because it's missing libdvdcss entirely". I can confirm, that the flatpak version of 1.3.3 does not seem to be able to decode the dvd - even with the latest version of libdvdcss installed on my computer).
Said user,lele-canfore, describes that the docs for building "are very easy", so I just followed those . But, I get an error:
$ ./configure --launch-jobs=$(nproc) --launch --enable-qsv
/home/jbw/HandBrake/./make/configure.py:133: SyntaxWarning: invalid escape sequence '\.'
m = re.match( '^(.*)\.tmp\..{8}$', args[0] )
/home/jbw/HandBrake/./make/configure.py:832: SyntaxWarning: invalid escape sequence '\='
m = re.match( '([^\=]+)\=(.*)', line )
/home/jbw/HandBrake/./make/configure.py:946: SyntaxWarning: invalid escape sequence '\.'
m = re.match( '^([0-9]+)\.([0-9]+)\.([0-9]+)-?(.+)?$', repo.tag )
/home/jbw/HandBrake/./make/configure.py:973: SyntaxWarning: invalid escape sequence '\.'
m = re.match('^([a-zA-Z]+)\.([0-9]+)$', self.suffix)
/home/jbw/HandBrake/./make/configure.py:1085: SyntaxWarning: invalid escape sequence '\s'
self.rexprs = [ '(?P[^.]+)\s+(?P(?P\d+)(\.(?P\d+))?(\.(?P\d+))?)',
/home/jbw/HandBrake/./make/configure.py:1086: SyntaxWarning: invalid escape sequence '\d'
'(?P(?P\d+)(\.(?P\d+))?(\.(?P\d+))?)' ]
probe: build tuple...(pass) x86_64-pc-linux-gnu
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /usr/bin/cp
find: gm4...(pass) /usr/bin/m4
find: mkdir...(pass) /usr/bin/mkdir
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /usr/bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /usr/bin/tar
find: python3...(pass) /usr/bin/python3
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/gmake
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: libtool...(fail) not found
: name[0] = libtool
ERROR: unable to continue; configure stop.
What am I doing wrong?
From one of the Handbrake devs: "Ideally you don't really want to be reading DVD's direct with HandBrake, ever."
https://github.com/HandBrake/HandBrake/issues/4029
Later comments in the same issue report mention a libdvdcss plugin to the Handbrake flatpak. The plugin itself is not provided by the Handbrake project, though.
If you really need HandBrake version 1.3.3, the easiest thing is to install Trisquel 10 Nabia: https://archive.org/download/trisquel_10.0
I chose Trisquel Mini 10 (trisquel-mini_10.0_amd64.iso) to test on VM. You need to enable the backports repository at /etc/apt/sources.list
Then you can update the system and install libdvdcss 1.4.2 (the .deb version compatible with Nabia)
sudo apt update && sudo apt install build-essential debhelper meson ninja-build python3-setuptools -y && wget https://ftp.debian.org/debian/pool/contrib/libd/libdvd-pkg/libdvd-pkg_1.4.2-1-1_all.deb && sudo dpkg -i libdvd-pkg_1.4.2-1-1_all.deb && sudo dpkg-reconfigure libdvd-pkg
And finally you can install HandBrake 1.3.3:
sudo apt install handbrake-gtk
Though this is a pretty straight forward way to get your hands on handbrake 1.3.x, do you think it would be possible to build 1.3.3 for T12 with the necessary dependencies?
https://handbrake.fr/docs/en/1.3.0/developer/build-linux.html
Nice idea.
It certainly helped with the subtitles. For some reason handbrake only transcoded about 15 minutes of a 90 minute film. I an checking now if that was simply due to the screensaver (now disabled).
Note 1) that the version of handbrake in Nabia is not 1.3.3 but 1.3.1. I don't know if there is a way to update it to 1.3.3?
Note 2) the handbrake package is just called `handbrake` not `handbrake-gtk`.
I wrote:
> You need to enable the backports repository at /etc/apt/sources.list
Sorry, I missed that. Thanks, now I have 1.3.3
FINALLY !!!
Thanks to several people and not least icarolongo, I can now rip dvd's with functioning subtitles under trisquel. I have dedicated an external ssd to this. I followed icarolongo's idea to
1) install trisquel 10.0 (nabia)
2) install libdvdcss 1.4.2
3) install handbrake 1.3.3.
I can now easily and fairly fast make copies of my dvds with all subtitles in sync (on my corebooted T440p with internal dvd drive).
Note: I have no idea about what the actual problem with newer versions of handbrake is, but syncing of subtitles only seems to work only with handbrake 1.3.3 and earlier version. However, versions before 1.3.3 does not work well with decoding. The latest version of libdvdcss is 1.5.0, but it seems to be not packages for trisquel 10. Version 1.4.2 seems to work flawlessly, though. Hence, the solution is the above: handbrake 1.3.3 with libdvdcss 1.4.2 running on trisquel 10.
Thanks for the help, everybody, and a big hug to icarolongo.

