LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 11-06-2009, 05:21 PM   #1
Mountain Man
Member
 
Registered: Jul 2006
Distribution: Ubuntu 9.10
Posts: 56
Thanked: 0
How to handle custom build of ffmpeg with synaptic?


[Log in to get rid of this advertisement]
I want to use the latest SVN of ffmpeg because it works better with the .mp4 files my camcorder creates. I just updated to 9.10, and instead of installing the version of ffmpeg from the repos I downloaded and compiled/installed the latest SVN from source. ffmpeg works fine converting my digital camera files, but there are some other packages I want to install which require ffmpeg. How should I handle this? Should I uncheck ffmpeg when synaptic says it wants to install it (doing the same for each app)? Or should I let synaptic install the version of ffmpeg in the repositories and then re run "make install"?
linuxubuntu Mountain Man is offline     Reply With Quote
Old 11-06-2009, 07:32 PM   #2
jay73
Senior Member
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 8.04 / 9.04
Posts: 4,781
Thanked: 89
I think the only proper way is to build your compiled program into a deb so synaptic will be aware it exists. Alternatively, you may be able to find a ready-made deb on launchpad.
linuxubuntu jay73 is offline     Reply With Quote
Thanked by:
Old 11-07-2009, 10:58 AM   #3
knudfl
Senior Member
 
Registered: Jan 2008
Location: Copenhagen, Denmark
Distribution: pclos2009.2, slack13, Debian Lenny (+30 others, for test only)
Posts: 2,935
Thanked: 277
.. And if you don't want to create a genuine ' .deb '
package, just copy all installed ffmpeg files into a
directory tree inside a new empty folder in /home/ ,
e.g. /home/'username'/tmp/1/usr///
cd tmp/1/
tar -cf ffmpeg-<version>.tar usr/
.. and don't put a slash before usr/ !
gzip ffmpeg-<version>.tar
# alian ffmpeg-<version>.tar.gz
.. creates a ' .deb ' package ...
.....
linuxpclinuxos knudfl is offline  
Tag This Post
Reply With Quote
Thanked by:
Old 11-07-2009, 02:39 PM   #4
Mountain Man
Member
 
Registered: Jul 2006
Distribution: Ubuntu 9.10
Posts: 56
Thanked: 0

Original Poster
Thanks to both of you. After thinking about this further, I think I would rather let synaptic install the repo version of ffmpeg for general use, and keep the built from source binary somewhere out of the path for just for converting the files from my camcorder. I'll probably create a batch file for the conversions so referencing the out of path version won't create a hassle.

Here is what I have done. Everything seems to work fine, so hopefully I haven't created a mess in my system. I found the installed from source binary of ffmpeg in /usr/local/bin, and moved the binary to an out of path folder. Then I installed ffmpeg via synaptic. This put the binary in /usr/bin/. For some reason at this point when I ran ffmpeg -version, it threw an error message: "bash: /usr/local/bin/ffmpeg: No such file or directory". I'm not sure why it did this, since both folders are in my PATH. To get around this I created a link in the /usr/local/bin folder to the version in /usr/bin.

This seems to work fine. Do you see any problems I might have created in doing this?
linuxubuntu Mountain Man is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HowTo: Custom ffmpeg with x264 support for AMD64 on Debian Squeeze propofol Linux - Software 0 10-10-2009 09:44 AM
ffmpeg won't build properly mrchaos Linux - Software 9 09-30-2006 08:38 AM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 04:05 AM
Need to build a high-end number cruncher - how much memory can Linux handle? MamaWombat Linux - Hardware 3 06-07-2006 09:16 PM
ffmpeg srpm build error texi2html dtra Linux - Software 0 10-21-2005 01:39 AM


All times are GMT -5. The time now is 10:20 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration