FAQ  •  Register  •  Login

Building ffmpeg on ubuntu 12.04

<<

dcolhoun

Serviio newbie

Posts: 14

Joined: Mon Mar 07, 2011 11:20 am

Post Sat Jul 21, 2012 1:49 pm

Building ffmpeg on ubuntu 12.04

Hi

I am following the Wiki on how to build ffmpeg http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

I issue the first command sudo apt-get remove ffmpeg x264 libx264-dev libvpx-dev librtmp0 librtmp-dev and the following appears

sudo apt-get remove ffmpeg x264 libx264-dev libvpx-dev librtmp0 librtmp-dev
[sudo] password for duncan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package librtmp-dev is not installed, so not removed
Package libvpx-dev is not installed, so not removed
Package libx264-dev is not installed, so not removed
Package x264 is not installed, so not removed
Package ffmpeg is not installed, so not removed
The following extra packages will be installed:
docbook-xml libept1.4.12 librarian0 libvte-common libvte9 rarian-compat
sgml-data synaptic
Suggested packages:
docbook docbook-dsssl docbook-xsl docbook-defguide perlsgml doc-html-w3
opensp libxml2-utils dwww menu deborphan
The following packages will be REMOVED:
apt-transport-https aptdaemon apturl brasero brasero-cdrkit
evolution-data-server flashplugin-installer gir1.2-rb-3.0 gir1.2-totem-1.0
gir1.2-totem-plparser-1.0 gir1.2-ubuntuoneui-3.0 gstreamer0.10-plugins-bad
jockey-common jockey-gtk kerneloops-daemon landscape-client-ui-install
language-selector-gnome libbrasero-media3-1 libcmis-0.2-0 libcurl3
libcurl3-gnutls libcurl3-nss libfolks-eds25 libgdata13 liboauth0 libquvi7
libraptor2-0 librasqal3 librdf0 libreoffice-base-core libreoffice-calc
libreoffice-common libreoffice-core libreoffice-draw libreoffice-emailmerge
libreoffice-gnome libreoffice-gtk libreoffice-help-en-us libreoffice-impress
libreoffice-math libreoffice-style-human libreoffice-style-tango
libreoffice-writer librhythmbox-core5 librtmp0 libslv2-9 libtotem-plparser17
libtotem0 libubuntuoneui-3.0-1 mythes-en-us nautilus-share python-aptdaemon
python-aptdaemon.gtk3widgets python-aptdaemon.pkcompat python-cupshelpers
python-pycurl python-software-properties python-uno rhythmbox
rhythmbox-mozilla rhythmbox-plugin-cdrecorder rhythmbox-plugin-magnatune
rhythmbox-plugin-zeitgeist rhythmbox-plugins rhythmbox-ubuntuone
sessioninstaller software-center software-properties-gtk
system-config-printer-common system-config-printer-gnome
system-config-printer-udev totem totem-mozilla totem-plugins
transmission-gtk ubuntu-desktop ubuntuone-installer unity-scope-musicstores
whoopsie xul-ext-ubufox
The following NEW packages will be installed:
docbook-xml libept1.4.12 librarian0 libvte-common libvte9 rarian-compat
sgml-data synaptic
0 upgraded, 8 newly installed, 80 to remove and 0 not upgraded.
Need to get 3,717 kB of archives.
After this operation, 305 MB disk space will be freed.
Do you want to continue [Y/n]?


If you look at the packages to be removed, I am losing half my system. Any ideas why this happens?
<<

will

DLNA master

Posts: 2138

Joined: Mon Aug 30, 2010 11:18 am

Location: UK

Post Sat Jul 21, 2012 4:04 pm

Re: Building ffmpeg on ubuntu 12.04

So it looks like all you only have librtmp0 installed. Before you do anything, can you do
  Code:
sudo apt-get update
sudo apt-get upgrade

to check for anything outstanding. And then re-run the previous remove command. Assumming nothing is outstanding, the rest of those packages were either installed because of it, or depend on it. You can see which ones a package depends on, and which packages depend on a package using:
  Code:
sudo apt-cache depends librtmp0

and
  Code:
sudo apt-cache rdepends librtmp0
You can also install apt-rdepends and use that to get a beter idea of what needs what.

Now what is most likely, is you have something installed that depends on something the depends on librtmp0.

Anyway, the reason for removing the packages first is it ensures that you don't have anything left over. So if you still find it wants to remove a large amount of packages and you can trace back the dependencies and see why, but don't want to remove them, then you can simply have a go and building and installing librtmp over the current version, and then proceding as normal. You just have to be aware that you might A) have an old file lying around that causes issues and B) might get updates to that package in the future, which you will then have to overrite again. Its not ideal, but if you aren't familure with managing a linux system, it might just work for you.
Will

ServiiDroid (Android Console) Developer: Download | Home | Support
ServiiGo (Android 3G/4G/WiFi Playback App) Developer: Download | Home | Support
<<

dcolhoun

Serviio newbie

Posts: 14

Joined: Mon Mar 07, 2011 11:20 am

Post Sun Jul 22, 2012 4:12 am

Re: Building ffmpeg on ubuntu 12.04

Hi Will

Thank you for your very helpful reply - to avoid removal of all those packages (many packages have a reverse dependency on librtmp0), I think I will begin with librtmp0 in place.

BTW Thanks for ServiiDroid!
<<

dpippin

Serviio newbie

Posts: 13

Joined: Sun Sep 25, 2011 6:41 pm

Post Fri Jul 27, 2012 2:01 am

Re: Building ffmpeg on ubuntu 12.04

Just an FYI I like this script for updating ffmpeg https://github.com/pruperting/x264-ffmpeg-up-to-date before you run it though make sure you add --enable-librtmp in the ffmpegupdate.sh file on line 61. Like below


  Code:
#FFmpeg additional configure options - think about the dependency issues here
FFMPEGCONFIGURE=--enable-librtmp
#x264 addiitonal configure options - think about the dependency issues here
X264CONFIGURE=

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 93 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.