Compiling deb-multimedia FFMPEG from source


10 posts
by SirLagz » Fri Jun 22, 2012 6:24 am
I needed ffmpeg for my little project but the one in the raspbian repo don't work very well, so I ended up compiling ffmpeg from source retreived from deb-multimedia.org

For anyone who needs it, here's a quick how to on how I did it on my RPi - I'll post up a more detailed how to on my blog when I can.

1: add the following lines into /etc/apt/sources.list
Code: Select all
deb-src http://www.deb-multimedia.org sid main
deb http://www.deb-multimedia.org wheezy main non-free


2: run apt-get update
3: run apt-get install deb-multimedia-keyring
4: remove/comment this line out from /etc/apt/sources.list
Code: Select all
deb http://www.deb-multimedia.org wheezy main non-free

5: run apt-get source ffmpeg-dmo

You will now have a folder called ffmpeg-dmo-0.11 <-- this can change depending on when you do this.

6: cd into the folder
7: run ./configure

This will alert you if you have missing packages.

8: run make && make install

and now you should have a fully working ffmpeg installation...if i remembered how i did it right lol.
*note* this was just an experiment to see if ffmpeg would compile. I'm not sure whether it's using softfp or hardfp so I will have to investigate further
Any questions feel free to ask :)
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by john.mills » Fri Jun 22, 2012 7:17 am
Thanks for making that effort and providing the build instructions, I am sure that will be useful for a lot of people. I think that Mike and Plugwash will have compile the additional multimedia repositories. There certainly are ares in Raspbian for software not found in Wheezy main. Perhaps this can be placed there for now.
Posts: 81
Joined: Mon Apr 09, 2012 5:23 am
by plugwash » Fri Jun 22, 2012 10:31 am
The thing with debian-multimedia.org is that it contains a lot of legally dodgy stuff so I doubt we can import the whole repo though we may be able to consider specific packages.

What problems were you having with the ffmpeg version from regular wheezy?
Forum Moderator
Forum Moderator
Posts: 2164
Joined: Wed Dec 28, 2011 11:45 pm
by SirLagz » Fri Jun 22, 2012 2:23 pm
When I tried to run ffserver + ffmpeg it would segfault. I had a similar issue on normal debian, only thing I could do to fix it was to use deb-multimedia ffmpeg from deb-multimedia
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by LetHopeItsSnowing » Fri Jun 22, 2012 2:30 pm
I also ended up recompiling ffmpeg from source because the version distributed on squeeze doesn't support aac encoding which is essential if your downloading audio from iplayer.
"am I getting slower, or is stuff more complicated; either way I now have to write it down - stuffaboutcode.com"
User avatar
Posts: 208
Joined: Sat May 26, 2012 6:40 am
Location: UK
by SirLagz » Tue Jun 26, 2012 1:31 pm
Not sure if anyone has tried this so far, but after compiling ffmpeg, I attempted to stream my webcam to my phone via ffmpeg/ffserver, and it was VERY slow.

I'm just wondering whether anyone has tried this at all and their results ? I'm unsure as to whether I compiled ffmpeg wrong or whether the RPi is just not grunty enough to do what I want it ?

Don't want to make it seem like I'm plugging my blog or anything so I'm writing this in a tiny size, the way I did it was on my blog post here http://sirlagz.net/?p=357
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by Steep » Sun Jul 01, 2012 2:54 pm
Trying for different reasons to run apt-get install deb-multimedia-keyring and getting Unable to find package deb-multimedia-keyring, also apt-get update cannot resolve any of the deb-multimedia addresses?
Posts: 145
Joined: Fri May 18, 2012 8:03 pm
by SirLagz » Sun Jul 01, 2012 3:13 pm
can you paste your /etc/apt/sources.list file and also the output of apt when you try and install deb-multimedia-keyring ?

You don't actually need it, but it helps.
You can just skip straight to installing the source from the repo.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
by Steep » Sun Jul 01, 2012 4:08 pm
Actually no, I screwed up my installation with the wrong updates so I have to start again. I'll give it a go once I get set up again tonight.
Posts: 145
Joined: Fri May 18, 2012 8:03 pm
by SirLagz » Sun Jul 01, 2012 5:15 pm
Also, keep in mind, once you've added the deb-multimedia repo, DONT INSTALL ANYTHING EXCEPT THE KEYRING.
If you install anything from the repo it picks up armhf as the architecture and installs ffmpeg for armv7 which will not work, and you will need to remove it and anything it installed.
It won't totally break stuff, but it's a hassle to remove.
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044
Posts: 1704
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia