gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Video Converter HandBrake 0.10.5 for RPi2&3

Sun Mar 27, 2016 1:33 pm

I've compiled a recent (stable) HandBrake version for ARMv7 with NEON support. It's a great video converter and ripper. On the RPi3 it can convert a SD video faster than real time (ca. 28 FPS).

to install it:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gdebi-core
wget http://steinerdatenbank.de/software/ghb_0.10.5-1_armhf.deb
sudo gdebi ghb_0.10.5-1_armhf.deb

Both the GUI version (available from the applications menu) and the command line version (HandBrakeCLI) are installed.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

tearhart
Posts: 2
Joined: Tue Jun 05, 2012 8:21 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Fri Apr 01, 2016 11:28 pm

i love you

itsmedoofer
Posts: 608
Joined: Wed Sep 25, 2013 8:43 am
Location: Canterbury, Kent, UK

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 11:39 am

Sweet !!!!!

Quick question though, what you you use to package into a .deb, did you use checkinstall ? You recommended it to me in a previous tread but I cannot get a working .deb from my compiled version of filezilla.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 1:06 pm

itsmedoofer wrote:Sweet !!!!!

Quick question though, what you you use to package into a .deb, did you use checkinstall ? You recommended it to me in a previous tread but I cannot get a working .deb from my compiled version of filezilla.
Yes, I used checkinstall. It may not work for complex packages, though. It all depends on the installation process.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 32227
Joined: Sat Jul 30, 2011 7:41 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 1:17 pm

gkreidl wrote:I've compiled a recent (stable) HandBrake version for ARMv7 with NEON support. It's a great video converter and ripper. On the RPi3 it can convert a SD video faster than real time (ca. 28 FPS).

to install it:

Code: Select all

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gdebi-core
wget http://steinerdatenbank.de/software/ghb_0.10.5-1_armhf.deb
sudo gdebi ghb_0.10.5-1_armhf.deb

Both the GUI version (available from the applications menu) and the command line version (HandBrakeCLI) are installed.
That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
topguy
Posts: 7313
Joined: Tue Oct 09, 2012 11:46 am
Location: Trondheim, Norway

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 1:30 pm

jamesh wrote: That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
Diskspace is cheap, why recode ? ;-)

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 32227
Joined: Sat Jul 30, 2011 7:41 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 3:05 pm

topguy wrote:
jamesh wrote: That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
Diskspace is cheap, why recode ? ;-)
Disk space may be cheap, but it's not that cheap. Especially if you also need to backup that disk space, and it's measured in terabytes. Recoding to H264 saves a LOT of space (at least 50%). And recoding doesn't take much more extra time that simply ripping anyway.
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
GTR2Fan
Posts: 1601
Joined: Sun Feb 23, 2014 9:20 pm
Location: South East UK

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 3:38 pm

jamesh wrote:Disk space may be cheap, but it's not that cheap. Especially if you also need to backup that disk space, and it's measured in terabytes. Recoding to H264 saves a LOT of space (at least 50%). And recoding doesn't take much more extra time that simply ripping anyway.
Agreed. I've never understood the "disk space is cheap" argument. It's easy to average around 4:1 compression with close to zero visible loss if you don't abuse the x264 encoder itself with broken 'coding scene' settings. How can being four times cheaper ever be a bad thing when very few will ever notice the difference?
Pi2B Mini-PC/Media Centre: ARM=1GHz (+3), Core=500MHz, v3d=500MHz, h264=333MHz, RAM=DDR2-1200 (+6/+4/+4+schmoo). Sandisk Ultra HC-I 32GB microSD card on '50=100' OCed slot (42MB/s read) running Raspbian/KODI16, Seagate 3.5" 1.5TB HDD mass storage.

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6420
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 5:34 pm

GTR2Fan wrote:Agreed. I've never understood the "disk space is cheap" argument.
Agree too. The other axiom is that disks always fill up eventually, however huge they seemed originally.
And when you've run out or drive bays and sata connections, the idea of halving or quartering the space used does sound appealing.

mathboy4life
Posts: 197
Joined: Fri Jan 08, 2016 7:29 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Tue Apr 05, 2016 11:08 pm

That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
I thought ripping a DVD was illegal? It's best to buy a digital copy. :D

rotwang
Posts: 243
Joined: Sat Dec 07, 2013 1:12 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Wed Apr 06, 2016 3:46 pm

mathboy4life wrote:
That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
I thought ripping a DVD was illegal? It's best to buy a digital copy. :D
Rubbish, trying to find digital copies of anything that will play on linux is like looking for a bucket of unicorn tears.
Ripping a copy of a DVD which you have bought and still keep may be illegal in the tiny little twisted brains of the men from FACT and the MPAA, but as far as I am concerned it's fair use.
Selling or giving away copies, or selling the DVD after you've ripped it are total nono's in my book, but playing a DVD using a player of MY choice, on hardware of MY choice, that's fair use.
Roger

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 32227
Joined: Sat Jul 30, 2011 7:41 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Wed Apr 06, 2016 9:53 pm

mathboy4life wrote:
That's most excellent. I ground to a halt ripping my DVD collection with the excellent Handbrake (When you have 6 box sets of Buffy to do it gets a bit tedious). This might be an incentive to restart!
I thought ripping a DVD was illegal? It's best to buy a digital copy. :D
And what about the 500+ DVD's I already have - do I need to buy another digital copy for all of those? Or are the rights holders going to give me the digital version as I already have DVD's?

(Copying for personal use is, I think, OK. Copying to sell on or distribute, not)
Principal Software Engineer at Raspberry Pi Ltd.
Working in the Applications Team.

User avatar
ilCosmico
Posts: 2
Joined: Thu Aug 18, 2016 3:08 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Thu Aug 18, 2016 3:12 pm

Hi guys,

After the installation I cannot find the GUI version in the applications menu, what am I missing?
(I'm running raspbian-jessie)

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Thu Aug 18, 2016 7:49 pm

ilCosmico wrote:Hi guys,

After the installation I cannot find the GUI version in the applications menu, what am I missing?
(I'm running raspbian-jessie)
I've seen this happening a lot of times with different program packages. Sometimes it appears after a reboot. Sometimes installing the package a second time helps. This started to happen when the Foundation began adding its patches to LXDE desktop. Maybe not all bugs have been fixed yet. There's also a start menu editor but I have never used that.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
ilCosmico
Posts: 2
Joined: Thu Aug 18, 2016 3:08 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Thu Aug 18, 2016 8:23 pm

gkreidl wrote:
ilCosmico wrote:Hi guys,

After the installation I cannot find the GUI version in the applications menu, what am I missing?
(I'm running raspbian-jessie)
I've seen this happening a lot of times with different program packages. Sometimes it appears after a reboot. Sometimes installing the package a second time helps. This started to happen when the Foundation began adding its patches to LXDE desktop. Maybe not all bugs have been fixed yet. There's also a start menu editor but I have never used that.
Installing it again solved the issue, thnx!

ghostman
Posts: 3
Joined: Mon May 20, 2013 5:38 am

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sat Nov 05, 2016 10:40 pm

I'm getting an error of a dependent package libavcodec56 is not available. I've searched for this package (libavcodec seems to have a few versions) but I cannot find how to add this to my sources file or find it via apt-get or simlar.

Any hints where I can find this package? thanks!

DirkS
Posts: 10840
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Nov 06, 2016 12:08 am

ghostman wrote:I'm getting an error of a dependent package libavcodec56 is not available. I've searched for this package (libavcodec seems to have a few versions) but I cannot find how to add this to my sources file or find it via apt-get or simlar.

Any hints where I can find this package? thanks!
Which distro do you use?
The package is available in the standard Raspbian Jessie repo:

Code: Select all

pi@raspi3b:~$ apt-cache policy libavcodec56
libavcodec56:
  Installed: 6:11.8-1~deb8u1+rpi1
  Candidate: 6:11.8-1~deb8u1+rpi1
  Version table:
 *** 6:11.8-1~deb8u1+rpi1 0
        500 http://mirrordirector.raspbian.org/raspbian/ jessie/main armhf Packages
        100 /var/lib/dpkg/status

ghostman
Posts: 3
Joined: Mon May 20, 2013 5:38 am

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Nov 06, 2016 9:24 pm

I'm using an older raspbian, but I update fairly regularly - though not frequently. I've been considering revisiting my OS / distro. I'm just using it for XBMC / Kodi and I have Transmission and a few other minor software bits on there. nothing I cannot re-install. I'm open to suggestions. My current effort is that I am trying to reduce the size of some video files that I feel are unnecessarily large.

Here's my release info -- looks like I didn't get jessie, still on wheezy
pi@raspbmc:~$ cat /etc/*-release
PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
NAME="Raspbian GNU/Linux"
VERSION_ID="7"
VERSION="7 (wheezy)"
ID=raspbian
ID_LIKE=debian
ANSI_COLOR="1;31"
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"

DirkS
Posts: 10840
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Nov 06, 2016 11:32 pm

ghostman wrote:I'm using an older raspbian, but I update fairly regularly
On Wheezy you'll only get security updates.

It's probably a good time to update to Jessie now.
If you have a spare SD card you could install Raspbian Jessie + Handbrake on it to see if it does what you want.

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Mon Nov 07, 2016 1:34 am

The HandBrake version of the OP has been compiled for Jessie.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

ghostman
Posts: 3
Joined: Mon May 20, 2013 5:38 am

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Mon Nov 07, 2016 11:43 pm

DirkS wrote:
ghostman wrote:I'm using an older raspbian, but I update fairly regularly
On Wheezy you'll only get security updates.

It's probably a good time to update to Jessie now.
If you have a spare SD card you could install Raspbian Jessie + Handbrake on it to see if it does what you want.
Yeah, I've come to the conclusion to either go Jessie or another distro with KODI on it already. OMSC is looking good, too.

burkert
Posts: 6
Joined: Sun May 01, 2016 10:59 pm

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Fri Nov 18, 2016 3:13 am

Thanks for making this available. When I tried the .deb on an RPi2, didn't work out well.

So, I tried compiling... only the CLI (via ./configure --disable-gtk).

While it compiled, upon execution, after several minutes elapsed time, it would fail like as follows...

Code: Select all

Encoding: task 1 of 1, 0.00 %[17:49:32] sync: adding 72 ms of silence to audio 0x45  start 6516, next 0
Encoding: task 1 of 1, 0.26 % (0.87 fps, avg 1.03 fps, ETA 87h56m40s)Bus error
The compiler flags which I used (to reiterate, on an RPi2) are :

Code: Select all

GHB_CFLAGS="-mcpu=cortex-a7  -mfpu=neon-vfpv4"; export GHB_CFLAGS
GHB_LIBS=/usr/lib:/usr/local/lib:/lib:/var/lib:/home/pi/Downloads/MythTV/lib; export GHB_LIBS 
export PKG_CONFIG=/usr/bin/pkg-config
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
...More recently, I've received an RPi3 as a gift. So, I wanted to give this another attempt!

On the RPi3, I instead tried the following compiler flags...

Code: Select all

GHB_CFLAGS="-O2 -Otime -marm -mabi=aapcs-linux -march=armv8-a+crc -mfloat-abi=hard -mfpu=neon-fp-armv8 -funsafe-math-optimizations -mhard-float -mlittle-endian -mtls-dialect=gnu2 -mtune=cortex-a53 -munaligned-access -mvectorize-with-neon-quad"; export GHB_CFLAGS
GHB_LIBS=/usr/lib:/usr/local/lib:/lib:/var/lib:/home/pi/Downloads/MythTV/lib; export GHB_LIBS 
export PKG_CONFIG=/usr/bin/pkg-config
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
...Which, compiled successfully.

I'm currently running an encoding task.

Simple question to the OP : Are the compiler flags listed above similar to that which you used?

Simple questions to anyone using the .deb : On execution, does it report that its using ARMv6? I ask as I see this in my output of HandBrakeCLI...

Code: Select all

[20:50:56] encx264: encoding at constant RF 21.000000
x264 [info]: using cpu capabilities: ARMv6 NEON
[20:50:56] h264: "Chapter 1" (1) at frame 0 time 0
I see the above both with and without the -U flag of HandBrakeCLI.

micu
Posts: 6
Joined: Sun Jan 29, 2017 1:36 am

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Jan 29, 2017 1:45 am

Thanks for making it available.
I can't install it, I've a very new an updated rasping jessie pixel
I'm getting an error of a dependent package libavdevice55

This package is uninstallable
Dependency is not satisfiable: libavdevice55

Thanks in advance

gkreidl
Posts: 6345
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Jan 29, 2017 6:20 am

micu wrote:Thanks for making it available.
I can't install it, I've a very new an updated rasping jessie pixel
I'm getting an error of a dependent package libavdevice55

This package is uninstallable
Dependency is not satisfiable: libavdevice55

Thanks in advance
libavdevice55 is avialable (checked with synaptic).
Run
sudo apt-get update
sudo apt-get upgrade
and try again.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

micu
Posts: 6
Joined: Sun Jan 29, 2017 1:36 am

Re: Video Converter HandBrake 0.10.5 for RPi2&3

Sun Jan 29, 2017 4:16 pm

gkreidl wrote:
micu wrote:Thanks for making it available.
I can't install it, I've a very new an updated rasping jessie pixel
I'm getting an error of a dependent package libavdevice55

This package is uninstallable
Dependency is not satisfiable: libavdevice55

Thanks in advance
libavdevice55 is avialable (checked with synaptic).
Run
sudo apt-get update
sudo apt-get upgrade
and try again.
thanks.
I've done it,
I've still the same problem. Can I try to install libavdevice55 manually ?

Return to “Raspberry Pi OS”