Connecting Tech Pros Worldwide Forums | Help | Site Map

difficult upgrading ffmpeg

Member
 
Join Date: Sep 2007
Posts: 63
#1: Oct 1 '07
Hi, i installed ffmpeg but seems to be a old version. With the command "ffmpeg -v" I get the this output:
Quote:
joao@joao-desktop:/usr$ ffmpeg -v
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-gpl --enable-pp --enable-pthreads --enable-vorbis --enable-libogg --enable-a52 --enable-dts --enable-libgsm --enable-dc1394 --disable-debug --enable-shared --prefix=/usr
libavutil version: 0d.49.0.0
libavcodec version: 0d.51.11.0
libavformat version: 0d.50.5.0
built on Jan 28 2007 22:48:38, gcc: 4.1.2 20070106 (prerelease) (Ubuntu 4.1.1-21ubuntu7)
I tried to upgrade it with:
Quote:
svn checkout svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg
but didn't work. Can someone tell me out to upgrade ffmpeg, step by step, including directories to copy files or whatever i'm missing?

Thanks,

Joćo

Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#2: Oct 1 '07

re: difficult upgrading ffmpeg


Quote:

Originally Posted by jcor

Hi, i installed ffmpeg but seems to be a old version. With the command "ffmpeg -v" I get the this output:


I tried to upgrade it with:

but didn't work. Can someone tell me out to upgrade ffmpeg, step by step, including directories to copy files or whatever i'm missing?

Thanks,

Joćo

It seems from your output you are using Ubuntu. Correct me if I am mistaken.

First off, how did you perform the install originally? What makes you think ffmpeg is out of date?

The easiest way to update ffmpeg would be to use one of the package managers, either yum or apt-get, to update it. I forget which one is used by Ubuntu primarily, but updating with either is rather simple.

The reason why the command you ran did not update ffmpeg is because you merely downloaded the sources. Issuing the svn command, you will need to cd to the ffmpeg directory, run ./configure, make, and finally make install.

I hope this helps you, come back if you have any more problems.
Member
 
Join Date: Sep 2007
Posts: 63
#3: Oct 1 '07

re: difficult upgrading ffmpeg


That's correct, i'm using ubuntu 7.04.
I say my ffmpeg is "old" because this date "2000-2004".I already saw (in foruns around the internet) the same kind of date but going till 2007.
This is kind of wired but I can't find where my ffmpeg is to copy there the fffmpeg I downloaded with svn (since I'm only starting using linux is not that wired :-) ) Do you have a clue about this or can be any directory?

Thanks for your time,

Joćo
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#4: Oct 1 '07

re: difficult upgrading ffmpeg


Quote:

Originally Posted by jcor

That's correct, i'm using ubuntu 7.04.
I say my ffmpeg is "old" because this date "2000-2004".I already saw (in foruns around the internet) the same kind of date but going till 2007.
This is kind of wired but I can't find where my ffmpeg is to copy there the fffmpeg I downloaded with svn (since I'm only starting using linux is not that wired :-) ) Do you have a clue about this or can be any directory?

Thanks for your time,

Joćo

You will actually need to build ffmpeg. The make tool (as described in my first post) should do everything for you.

Once again:
Expand|Select|Wrap|Line Numbers
  1. cd ffmpeg
  2. ./configure
  3. make
  4. make install
  5.  
Member
 
Join Date: Sep 2007
Posts: 63
#5: Oct 2 '07

re: difficult upgrading ffmpeg


I tried the command you told me in your first post "sudo apt-get install ffmpeg" and I got this output:
Expand|Select|Wrap|Line Numbers
  1. Reading package lists... Done
  2. Building dependency tree       
  3. Reading state information... Done
  4. ffmpeg is already the newest version.
  5. 0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
it seems that i have the newest version...

but after this I tried the "make install" command as you told me. In the first line, after get in the directory, "sudo ./configure" I got this output:

Expand|Select|Wrap|Line Numbers
  1. joao@joao-desktop:~/Desktop/ffmpeg$ sudo ./configure
  2. gcc is unable to create an executable file.
  3. If gcc is a cross-compiler, use the --cross-compile option.
  4. Only do this if you know what cross compiling means.
  5. C compiler test failed.
  6. If you think configure made a mistake, make sure you are using the latest
  7. version from SVN.  If the latest version fails, report the problem to the
  8. ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
  9. Include the log file "config.err" produced by configure as this will help
  10. solving the problem.
Maybe I don't need to update my ffmpeg, I'm really not sure. My problem is that i need to convert a .mp4 (mpeg4) movie to .wmv and to .3gp And I allways get some errors like "i don't know this codec" or "format not suported" so I thought with an upgrade this will be solved...

thanks,

Joćo
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#6: Oct 2 '07

re: difficult upgrading ffmpeg


Quote:

Originally Posted by jcor

I tried the command you told me in your first post "sudo apt-get install ffmpeg" and I got this output:

Expand|Select|Wrap|Line Numbers
  1. Reading package lists... Done
  2. Building dependency tree       
  3. Reading state information... Done
  4. ffmpeg is already the newest version.
  5. 0 upgraded, 0 newly installed, 0 to remove and 117 not upgraded.
it seems that i have the newest version...

but after this I tried the "make install" command as you told me. In the first line, after get in the directory, "sudo ./configure" I got this output:

Expand|Select|Wrap|Line Numbers
  1. joao@joao-desktop:~/Desktop/ffmpeg$ sudo ./configure
  2. gcc is unable to create an executable file.
  3. If gcc is a cross-compiler, use the --cross-compile option.
  4. Only do this if you know what cross compiling means.
  5. C compiler test failed.
  6. If you think configure made a mistake, make sure you are using the latest
  7. version from SVN.  If the latest version fails, report the problem to the
  8. ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
  9. Include the log file "config.err" produced by configure as this will help
  10. solving the problem.
Maybe I don't need to update my ffmpeg, I'm really not sure. My problem is that i need to convert a .mp4 (mpeg4) movie to .wmv and to .3gp And I allways get some errors like "i don't know this codec" or "format not suported" so I thought with an upgrade this will be solved...

thanks,

Joćo

The ./configure error is most likely caused by not having gcc installed.

The codec error is pretty straight forward as well; check your list of supported codecs, the listing is available through a command line argument to ffmpeg. Figure out what codecs you need to install and use apt-get to install them.
Member
 
Join Date: Sep 2007
Posts: 63
#7: Oct 2 '07

re: difficult upgrading ffmpeg


Now I have a FFmpeg version 2000-20007!!!!
thanks a lot for your help!
I bet my problems with FFmpeg are only at the very beginnig ;-)

Thanks again,

Joćo
Reply