LinHES Forums
http://forums.linhes.org/

[Solved] HandBrake problems & 0.96 build
http://forums.linhes.org/viewtopic.php?f=21&t=22493
Page 1 of 1

Author:  marc.aronson [ Wed Feb 29, 2012 10:57 am ]
Post subject:  [Solved] HandBrake problems & 0.96 build

The second post on this thread contains the solution that worked for me.

Marc

I am having problems where HandBrakeCLI will sometimes get stuck transcoding some of my recordings. In an attempt to resolve this I downloaded the source, did a "./configure; cd build; make". I get the following error:
Code:
set -e; cd ./contrib/a52dec/a52dec/; rm -fr aclocal.m4 autom4te.cache; autoreconf -fiv; CC=/usr/bin/gcc CFLAGS="" CXX=/usr/bin/g++ CXXFLAGS="" CPPFLAGS="" LDFLAGS="" PKG_CONFIG_PATH="/myth/tmp/HandBrake-0.9.6/build/contrib/lib/pkgconfig" ./configure --prefix=/myth/tmp/HandBrake-0.9.6/build/contrib/ --disable-dependency-tracking --disable-shared --enable-static
autoreconf: Entering directory `.'
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal  --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
make: *** [contrib/a52dec/.stamp.configure] Error 1


Any ideas on how to solve this would be appreciated.

Author:  marc.aronson [ Sat Mar 03, 2012 11:10 am ]
Post subject:  Re: HandBrake problems & 0.96 build

I haven't figure out how to do the build, but I found a good solution. Somebody has posted pre-built deb's of HandBrakeCLI 0.96 for Ubuntu Maverick and they work on LINHES 7.2! Version 0.96 of HandBrakeCLI solves many issues including the nasty "time went backwards" problem that results in choppy video and situations where the transcode never finishes. I had this problem on many recordings. Here's how to do it:

1. Download the "deb" to a temporary directory such as "/tmp" or ?myth/tmp". For intel download handbrake-cli_0.9.6ppa1~maverick1_i386.deb. For AMD download handbrake-cli_0.9.6ppa1~maverick1_amd64.deb. (All the Ubuntu Handbrake builds can be found here)

2. cd to the directory you downloaded the "deb" image to and do the following:
Code:
ar x handbrake-cli_0.9.6ppa1~maverick1_i386.deb
tar xjf data.tar.bz2
sudo cp usr/bin/HandBrakeCLI /usr/bin/HandBrakeCLI096


You have both the original HandBrakeCLI image and the much newer 0.96 verison. I kept both for "safety". If you want to replace the existing HandBrakeCLI image so that mythexport will use it, simply perform the following 2 additional steps:
Code:
cd /usr/bin
sudo mv HandBrakeCLI HandBrakeCLI.orig
sudo mv HandBrakeCLI096 HandBrakeCLI


mythexport uses HandBrakeCLI. I don't use mythexport, so I can't guarantee that these will work with mythexport -- if someone decides to try it out let us know how it works.

Author:  graysky [ Sat Mar 03, 2012 11:22 am ]
Post subject:  Re: HandBrake problems & 0.96 build

Confused... why not build via makepkg the official ARCH package knowing that you do NOT have install it but rather can test it from /path/to/build/pkg/usr/bin/HandBrakeCLI

http://projects.archlinux.org/svntogit/ ... /handbrake

Download both file and run makepkg -s

Author:  marc.aronson [ Sat Mar 03, 2012 11:29 am ]
Post subject:  Re: HandBrake problems & 0.96 build

graysky wrote:
Confused... why not build via makepkg the official ARCH package knowing that you do NOT have install it but rather can test it from /path/to/build/pkg/usr/bin/HandBrakeCLI

http://projects.archlinux.org/svntogit/ ... /handbrake

Download both file and run makepkg -s

Because I did not know how to do that. It sounds like a better solution. Wish I had that info before I went on my fishing expedition. Thanks for the info -- I will use it in the future.

Author:  graysky [ Sat Mar 03, 2012 11:49 am ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

The corner stone of Arch Linux (and by extension LinHES) is pacman and makepkg. Never do any manual compilation/installation. Always use pacman with a PKGBUILD.

Author:  marc.aronson [ Sat Mar 03, 2012 11:49 am ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

graysky, I tried your suggestion and received the following error:
Code:
[mythtv@mythfoxie ARCH2]$ ls
handbrake  PKGBUILD
[mythtv@mythfoxie ARCH2]$ whoami
mythtv
[mythtv@mythfoxie ARCH2]$ makepkg -s
==> ERROR: install file (handbrake.install) does not exist.
[mythtv@mythfoxie ARCH2]$ pwd
/myth/tmp/HB/ARCH2
[mythtv@mythfoxie ARCH2]$


I also tried downloading "handbrake-cli-0.9.6-1-i686.pkg.tar.xz" from http://www.archlinux.org/packages/commu ... brake-cli/, and ran into the following problem:
Code:
[root@mythfoxie ARCH]# pwd
/myth/tmp/HB/ARCH
[root@mythfoxie ARCH]# ls
handbrake-cli-0.9.6-1-i686.pkg.tar.xz
[root@mythfoxie ARCH]# tar xf handbrake-cli-0.9.6-1-i686.pkg.tar.xz
[root@mythfoxie ARCH]# ls
handbrake-cli-0.9.6-1-i686.pkg.tar.xz  usr
[root@mythfoxie ARCH]# cd usr
[root@mythfoxie usr]# ls
bin
[root@mythfoxie usr]# cd bin
[root@mythfoxie bin]# ls
HandBrakeCLI
[root@mythfoxie bin]# ./HandBrakeCLI
./HandBrakeCLI: /lib/libm.so.6: version `GLIBC_2.15' not found (required by ./HandBrakeCLI)
./HandBrakeCLI: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by ./HandBrakeCLI)


Any pointers?

Author:  graysky [ Sat Mar 03, 2012 12:19 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

You need to download both files, the PKGBUILD and the xxx.install.
It could also be that there are dependencies, like glibc, that are not installed on LH but that are required to work with the software. The solution here is to get the devs of LH to update them.

Author:  marc.aronson [ Sat Mar 03, 2012 5:15 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

graysky wrote:
You need to download both files, the PKGBUILD and the xxx.install.
It could also be that there are dependencies, like glibc, that are not installed on LH but that are required to work with the software. The solution here is to get the devs of LH to update them.

Arggg... that was pilot error. I tried it again and I am back to the original problem
Code:
autoreconf: running: aclocal  --output=aclocal.m4t
Can't exec "aclocal": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 326.
autoreconf: failed to run aclocal: No such file or directory
make: *** [contrib/a52dec/.stamp.configure] Error 1
==> ERROR: A failure occurred in build().
    Aborting...

I checked and glibc is already installed. I believe you are correct that there is a missing dependency. I've sent a PM to Cecil asking if he can give me a pointer.
graysky wrote:
The corner stone of Arch Linux (and by extension LinHES) is pacman and makepkg. Never do any manual compilation/installation. Always use pacman with a PKGBUILD.

I understand, but my experience is that the sometimes I cannot find the necessary dependencies to get things to work, so I do what I need to do.

Author:  graysky [ Sun Mar 04, 2012 2:38 am ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

You have glibc but it is likely an older version. You can attempt to change it in the PKGBUILD, but the package may actually require the version stated.

Author:  marc.aronson [ Mon Mar 05, 2012 10:04 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

Graysky, I appreciate the feedback. I think I am going to stick with what I have. I suspect the Maverick build either used a compatible version of glibc, or they did a static link. Either way, the upgrade has a dramatic impact. I no longer have any "time went backwards" problems, with the corresponding video glitches. I also no longer have any problems with the transcode "hanging". I did find that skipping the first 300 frames of the recording also helped improve transcode reliability.

Thanks again!

Author:  brfransen [ Mon Mar 05, 2012 10:59 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

HandBrake 0.9.6 is now in the testing repo.

Author:  graysky [ Tue Mar 06, 2012 3:54 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

brfransen wrote:
HandBrake 0.9.6 is now in the testing repo.


Ask and you shall receive.

Author:  marc.aronson [ Tue Mar 06, 2012 11:37 pm ]
Post subject:  Re: [Solved] HandBrake problems & 0.96 build

graysky wrote:
brfransen wrote:
HandBrake 0.9.6 is now in the testing repo.


Ask and you shall receive.

Thanks!

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/