HowTo: Install HandBrakeCLI on your unRAID server (rather than in a VM)


Recommended Posts

I was able to get the the package handbrake-0.9.8-i486-1alien.txz to work using the dependencies listed in aiden's post (with some tweaks).

installpkg fontconfig-2.8.0-i486-1.txz
installpkg freetype-2.4.10-i486-1_slack13.1.txz
installpkg gcc-g++-4.5.2-i486-2.txz
installpkg glib-1.2.10-i486-3.txz
installpkg glibc-2.11.1-i486-7_slack13.1.txz
installpkg libogg-1.1.4-i486-1.txz
installpkg libsamplerate-0.1.7-i486-1.txz
installpkg libtheora-1.1.1-i486-1.txz
installpkg libvorbis-1.2.3-i486-1.txz
installpkg libxml2-2.7.6-i486-3_slack13.1.txz
installpkg zlib-1.2.5-i486-4.txz

 

I moved my HandBrakeCLI to /usr/local/bin/ to work with my queue scripts.

ldd /usr/local/bin/HandBrakeCLI
        linux-gate.so.1 =>  (0xb771a000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb76e6000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb766c000)
        libogg.so.0 => /usr/lib/libogg.so.0 (0xb7667000)
        libsamplerate.so.0 => /usr/lib/libsamplerate.so.0 (0xb74fc000)
        libtheora.so.0 => /usr/lib/libtheora.so.0 (0xb74ab000)
        libtheoraenc.so.1 => /usr/lib/libtheoraenc.so.1 (0xb7468000)
        libtheoradec.so.1 => /usr/lib/libtheoradec.so.1 (0xb744f000)
        libvorbis.so.0 => /usr/lib/libvorbis.so.0 (0xb7427000)
        libvorbisenc.so.2 => /usr/lib/libvorbisenc.so.2 (0xb732e000)
        libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7208000)
        libbz2.so.1 => /lib/libbz2.so.1 (0xb71f7000)
        libz.so.1 => /usr/lib/libz.so.1 (0xb71e3000)
        libpthread.so.0 => /lib/libpthread.so.0 (0xb71ca000)
        libdl.so.2 => /lib/libdl.so.2 (0xb71c6000)
        libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb70dd000)
        libm.so.6 => /lib/libm.so.6 (0xb70b7000)
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0xb70ab000)
        libc.so.6 => /lib/libc.so.6 (0xb6f43000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0xb6f23000)
        /lib/ld-linux.so.2 (0xb771b000)

 

This can work, but I'm interested in the settings ClunkClunk used to compile the earlier package that didn't need the extra libs.

 

Glad to see you got it to work. I use ffmpeg now, so I'm not really sure how to assist any further :P

Link to comment
  • 4 months later...
  • Replies 115
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

i know it's an old thread but i would be also interested to have a complete step by step on how to compile HandBrake with all the dependencies included. There's a new version of handbrake, v0.9.9, and i would like to compile it but i don't know how to do it.

 

thank you!

 

alex

Link to comment

i know it's an old thread but i would be also interested to have a complete step by step on how to compile HandBrake with all the dependencies included. There's a new version of handbrake, v0.9.9, and i would like to compile it but i don't know how to do it.

 

I didn't really do too much that was special. I just ran Slackware 13 in a virtual machine, and compiled it following some of the instructions in the first post. I think there was an additional note from me how to disable gtk (the GUI) from compiling, but that was about it.

 

I tried it last week as I had a little time, but had to rebuild my Slackware 13.37 image from scratch, and then Handbrake 0.9.9 wouldn't compile cleanly as I needed fribidi and libass if I recall. I will try to revisit it if I can, but it's doubtful I'll put much time in to it, so if someone else wants to work on it, go for it!

Link to comment

i tried to compile it but when i run this command "./configure --launch --disable-gtk", i get this error:

 

probe: host tuple...(pass) i686-pc-linux-gnu
compute: available architectures...(pass) i686
find: ar...(fail) not found
  : name[0] = ar
ERROR: unable to continue; configure stop.

 

someone know what im missing?

Link to comment
  • 7 months later...

I think I found a working solution. Since Alien did a great Slackware 14.1 build, I just used his package (compiling this on unRAID is a pain - though it's very doable on Slackware 14.1 full install), and sat down and found every dependency that would be needed for unRAID 5.0.4 (probably 5.0.5 but I don't have that in a VM yet).

 

I'd like a few people to test and then I can set it up as an unmenu .conf file for easy install.

 

wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/x/fontconfig-2.10.93-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/freetype-2.5.0.1-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libogg-1.3.0-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libsamplerate-0.1.8-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libtheora-1.1.1-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libvorbis-1.3.3-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libxml2-2.9.1-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/zlib-1.2.8-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/glibc-2.17-i486-7.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/glib-1.2.10-i486-3.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/d/gcc-g++-4.8.2-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/l/libpng-1.4.12-i486-1.txz
wget http://carroll.cac.psu.edu/pub/linux/distributions/slackware/slackware-14.1/slackware/a/xz-5.0.5-i486-1.tgz
wget http://slackware.org.uk/people/alien/restricted_slackbuilds/handbrake/pkg/14.0/handbrake-0.9.9-i486-1alien.txz

installpkg fontconfig-2.10.93-i486-1.txz
installpkg installpkg freetype-2.5.0.1-i486-1.txz
installpkg gcc-g++-4.8.2-i486-1.txz
installpkg glib-1.2.10-i486-3.txz
installpkg glibc-2.17-i486-7.txz
installpkg libogg-1.3.0-i486-1.txz
installpkg libpng-1.4.12-i486-1.txz
installpkg libsamplerate-0.1.8-i486-1.txz
installpkg libtheora-1.1.1-i486-1.txz
installpkg libvorbis-1.3.3-i486-1.txz
installpkg libxml2-2.9.1-i486-1.txz
installpkg xz-5.0.5-i486-1.tgz
installpkg zlib-1.2.8-i486-1.txz
installpkg handbrake-0.9.9-i486-1alien.txz

HandBrakeCLI -u

 

Let me know how it goes!

Link to comment

Thank you very much! Not sure what this error is being cause by its a seg fault in the cron jobs ....

Jan 25 11:47:01 Tower crond[1357]: exit status 1 from user root /usr/bin/run-parts /etc/cron.hourly 1> /dev/null 
Jan 25 11:47:01 Tower kernel: crond[15712]: segfault at 4001e51c ip 4001e51c sp bf8d3ca8 error 15 in ld-2.11.1.so[4001e000+1000] (Errors)
Jan 25 12:47:01 Tower crond[1357]: exit status 1 from user root /usr/bin/run-parts /etc/cron.hourly 1> /dev/null 
Jan 25 12:47:01 Tower kernel: crond[16274]: segfault at 4001e51c ip 4001e51c sp bf8d3ca8 error 15 in ld-2.11.1.so[4001e000+1000] (Errors)

Link to comment
  • 8 years later...

I wonder what's the longest gap between reply's but I'd like to add my two cents.

 

I was having problems running Tdarr-node's handbrakecli encoding docker, it would only use one CPU core and therefore take forever to encode. I wanted to test to see if handbrake would work better running on the host machine and not in a docker or vm. I found this thread but being over a decade old I really had no hopes but figured I give it a try and I'm glad to say it does work! I had to tweak some things but you can still get this to work. I'm running unraid 6.9.2.

 

I used https://slackware.pkgs.org/ to find all the missing packages:

 

handbrake-1.5.1-x86_64-1alien.txz
fontconfig-2.13.92-x86_64-3.txz
freetype-2.12.1-x86_64-1.txz
gcc-g++-12.1.0-x86_64-1.txz
glibc-2.35-x86_64-2.txz
graphite2-1.3.14-x86_64-3.txz
harfbuzz-4.4.1-x86_64-1.txz
libdrm-2.4.110-x86_64-1.txz
libogg-1.3.5-x86_64-1.txz
libtheora-1.1.1-x86_64-4.txz
libva-2.14.0-x86_64-1.txz
libvorbis-1.3.7-x86_64-3.txz

 

ldd Handbrakecli will show the libraries and I would just search for the missing ones and install them.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.