bdr9
Posts: 3
Joined: Sat Nov 07, 2015 6:49 pm

How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 6:53 pm

I need ffmpeg in order to set up a Subsonic audio-streaming server on my Raspberry Pi 2.

When I run sudo apt-get install ffmpeg:

Code: Select all

pi@raspberrypi2 ~ $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate
I also heard that ffmpeg is included in libav-tools. When I try to install that, it installs, but ffmpeg is still not in /usr/bin. Does anyone know how to install ffmpeg on the Raspberry Pi 2?

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 9:18 pm

https://wiki.debian.org/ffmpeg

fyi Raspbian Wheezy is based of Debian 7 whilst Jessie is based of Debian 8
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

bdr9
Posts: 3
Joined: Sat Nov 07, 2015 6:49 pm

Re: How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 9:21 pm

fruitoftheloom wrote:https://wiki.debian.org/ffmpeg
Thanks for the link. On that page, they suggest using apt-get install libav-tools and apt-get install ffmpeg, but I said in my original post that I already tried both of those. libav-tools installed successfully but did not give me ffmpeg. When I tried to install ffmpeg directly, I got the error shown in my post above.

Any help would be appreciated.

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 9:23 pm

bdr9 wrote:
fruitoftheloom wrote:https://wiki.debian.org/ffmpeg
Thanks for the link. On that page, they suggest using apt-get install libav-tools and apt-get install ffmpeg, but I said in my original post that I already tried both of those. :D libav-tools installed successfully but did not give me ffmpeg. When I tried to install ffmpeg directly, I got the error shown in my post above.

Any help would be appreciated.
Libav is a fork of FFmpeg that we can find in the Debian repositories. If you want to use ffmpeg, you will juste need to change the word "avconv" to "ffmpeg" in the different commands lines, the rest stay the same.

It would help if you had stated you had installed Raspbian Jessie because the RPi 2B is only the hardware :D
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

bdr9
Posts: 3
Joined: Sat Nov 07, 2015 6:49 pm

Re: How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 9:28 pm

fruitoftheloom wrote:
bdr9 wrote:
fruitoftheloom wrote:https://wiki.debian.org/ffmpeg
Thanks for the link. On that page, they suggest using apt-get install libav-tools and apt-get install ffmpeg, but I said in my original post that I already tried both of those. :D libav-tools installed successfully but did not give me ffmpeg. When I tried to install ffmpeg directly, I got the error shown in my post above.

Any help would be appreciated.
Libav is a fork of FFmpeg that we can find in the Debian repositories. If you want to use ffmpeg, you will juste need to change the word "avconv" to "ffmpeg" in the different commands lines, the rest stay the same.

It would help if you had stated you had installed Raspbian Jessie because the RPi 2B is only the hardware :D
Actually, I didn't even know that there are two different versions of Raspbian! I just installed the one that the Noobs installer gave me. :lol: That makes sense now. I do have avconv installed. So you are saying that I can use avconv interchangably with ffmpeg? Can I rename the avconv binary to ffmpeg if my server software expects ffmpeg?

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: How to install ffmpeg on Raspberry Pi 2

Sat Nov 07, 2015 9:34 pm

bdr9 wrote:Actually, I didn't even know that there are two different versions of Raspbian! I just installed the one that the Noobs installer gave me. :lol: That makes sense now. I do have avconv installed. So you are saying that I can use avconv interchangably with ffmpeg? Can I rename the avconv binary to ffmpeg if my server software expects ffmpeg?
AFAIAA you just change the name in the actual written commands....


fyi https://www.raspberrypi.org/downloads/raspbian
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

dtb1987
Posts: 3
Joined: Thu Jun 04, 2015 11:51 am

Re: How to install ffmpeg on Raspberry Pi 2

Wed Aug 03, 2016 5:24 pm

How do i change the command to ffmpeg?

User avatar
Bottersnike
Posts: 52
Joined: Wed Apr 06, 2016 7:17 am
Contact: Website

Re: How to install ffmpeg on Raspberry Pi 2

Wed Aug 03, 2016 6:08 pm

dtb1987 wrote:How do i change the command to ffmpeg?
You can create an alias. If you type

Code: Select all

alias ffmpeg=avconv
into a terminal them ffmpeg wil execute avconv. To automate that, edit your

Code: Select all

~/.bashrc
file and just add

Code: Select all

alias ffmpeg=avconv
to the end.
Micro:Pi is an (almost) fully fledged IDE for programming a BBC Micro:Bit using C++. Go check it out at https://bottersnike.github.io/Micro-Pi

dtb1987
Posts: 3
Joined: Thu Jun 04, 2015 11:51 am

Re: How to install ffmpeg on Raspberry Pi 2

Thu Aug 04, 2016 11:59 am

Thanks

thierryr
Posts: 14
Joined: Wed Aug 05, 2015 9:50 pm

Re: How to install ffmpeg on Raspberry Pi 2

Sat May 20, 2017 8:24 pm

Post digging. Is there any news about ffmpeg.
Thank's


User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: How to install ffmpeg on Raspberry Pi 2

Sun May 21, 2017 10:12 am

thierryr wrote:Post digging. Is there any news about ffmpeg.
Thank's
It would appear that ffmpeg will be returning in Debian Stretch.

Though as stated above libav = ffmpeg

https://packages.debian.org/stretch/ffmpeg
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

sanfx
Posts: 55
Joined: Thu Sep 08, 2016 5:40 pm

Re: How to install ffmpeg on Raspberry Pi 2

Sun Jun 18, 2017 3:26 pm

trying to install ffpeng gives package not found error

Code: Select all

:~ $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate
how should I fix this ?

johndavies
Posts: 118
Joined: Fri Dec 20, 2013 1:00 pm

Re: How to install ffmpeg on Raspberry Pi 2

Sun Jun 18, 2017 4:30 pm

Look on the square penguin site (https://squarepenguin.co.uk). Choose "Download".Click on Linux/BSD.
Click on the first site mentioned.You could choose to download Raspbian get_iplayer if you live in the
UK and have a valid TV licence. Scroll to the bottom of the page. Enter the four lines one at a time
changing 64 bit to armhf-32 bit before you press "Enter". If ffmpeg is not loaded, as it was not for me
on the Raspberry Pi 2, repeat the above but begin the lines where it does not come first with "sudo".

SurferTim
Posts: 875
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: How to install ffmpeg on Raspberry Pi 2

Sun Jun 18, 2017 10:41 pm

I downloaded and compiled ffmpeg from the source. Download ffmpeg-3.3.2.tar.bz2
https://www.ffmpeg.org/download.html
Unpack it.
tar -xvf ffmpeg-3.3.2.tar.bz2
then change to that directory and:
./configure
make
sudo make install

photoJames
Posts: 4
Joined: Fri Jan 02, 2015 11:28 pm

Re: How to install ffmpeg on Raspberry Pi 2

Wed Jul 19, 2017 8:01 pm

Thanks SurferTim, I'm on the next to last step on a Pi Zero W over ssh. Is there a way to trim down the number of codecs installed to just the ones I'm going to use? The reason I ask is that this is taking a very long time to complete as the Zero is not a speed demon in any sense of those words. lol. Thanks again!

James
SurferTim wrote:I downloaded and compiled ffmpeg from the source. Download ffmpeg-3.3.2.tar.bz2
https://www.ffmpeg.org/download.html
Unpack it.
tar -xvf ffmpeg-3.3.2.tar.bz2
then change to that directory and:
./configure
make
sudo make install

SurferTim
Posts: 875
Joined: Sat Sep 14, 2013 9:27 am
Location: Miramar Beach, Florida

Re: How to install ffmpeg on Raspberry Pi 2

Wed Jul 19, 2017 8:31 pm

It takes quite a while to compile on an RPi3. Is it the compile time you are worried about?

User avatar
Imperf3kt
Posts: 224
Joined: Tue Jun 20, 2017 12:16 am
Location: Australia

Re: How to install ffmpeg on Raspberry Pi 2

Mon Jul 24, 2017 1:53 am

It took me 40 or 50 minutes to compile on my Pi3b. I do not recommend doing it on a zero

By the way, the debian multimedia repositories have a great guide on the process.
Raspberry Pi - spend all your time troubleshooting, not learning.


phiphonemo
Posts: 2
Joined: Wed Sep 27, 2017 9:29 am

Re: How to install ffmpeg on Raspberry Pi 2

Wed Sep 27, 2017 9:41 am

sanfx wrote:
Sun Jun 18, 2017 3:26 pm
trying to install ffpeng gives package not found error

Code: Select all

:~ $ sudo apt-get install ffmpeg
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ffmpeg is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'ffmpeg' has no installation candidate
how should I fix this ?
You can fix it with this

https://sourceforge.net/projects/ffmpeg ... bserver.p/

Martin Frezman
Posts: 1021
Joined: Mon Oct 31, 2016 10:05 am

Re: How to install ffmpeg on Raspberry Pi 2

Wed Sep 27, 2017 11:26 am

What is the current state of the ffmpeg/avconv kerfluffle?

I know that originally there was ffmpeg, then the keeper/author/whatever of that program had a psychic breakdown of some sort and they had to spin off avconv. For a while you had to use avconv for some things, ffmpeg for others. It was confusing. The goal had been to re-merge the two programs at some point. Has that happened yet?
If this post appears in the wrong forums category, my apologies.

User avatar
fruitoftheloom
Posts: 14685
Joined: Tue Mar 25, 2014 12:40 pm
Location: Bognor Regis UK

Re: How to install ffmpeg on Raspberry Pi 2

Wed Sep 27, 2017 5:29 pm

Resurrecting old post is prone to causing confusion, considering this post has been through Wheezy and Jessie cycles.


Fortunately with the current supported Raspbian (based of Debian 9.x) Stretch - ffmpeg package is now default in the repositories:

https://packages.debian.org/en/stretch/ffmpeg


libav-tools has now become a transitional package in Stretch

https://packages.debian.org/en/stretch/libav-tools
My only "PC" is an Asus ChromeBit running ChromeOS, cloudcentric at its best !
Rockchip Quad-Core RK3288C SoC as used in ASUS Chromebook C201 & Chromebook Flip C100PA as well as the Tinker SBC

Return to “Beginners”

Who is online

Users browsing this forum: No registered users and 27 guests