LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-23-2009, 07:16 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908
Blog Entries: 26

Rep: Reputation: 49
how does unstripped version help in ffmpeg


i am using ubuntu 9.04.
I installed ffmpeg using 'apt-get ffmpeg'.
I was trying to convert an ogg file to mp3 then 'unsupported codec ' error occured.i found out that on installing libavcodec-unstripped-52 which replaced libavcodec52 the conversion was successful.

(Question)I want to know what advantage would I have if I installed unstripped libavdevice,libavfilter,libavformat,libpostproc,libswscale?

Also I was installing amrnb-7.0.0.2 from tarball after extracting it.I ran './configure' then error was

checking for patch... no
configure: error: You need patch utility to prepare sources.

(Question)What am i missing ?
Somewhere i saw suggestion to install autoconf so i ran 'apt-get install autoconf' & tried to install http://ftp.penguin.cz/pub/users/utx/....1.0.1.tar.bz2 but still same error. Actually I want to convert mp3 to amr where ffmpeg says unsupported codec?

Last edited by sumeet inani; 11-23-2009 at 07:35 AM.
 
Old 11-23-2009, 07:31 AM   #2
JohnGraham
Member
 
Registered: Oct 2009
Posts: 467

Rep: Reputation: 139Reputation: 139
Quote:
Originally Posted by sumeet inani View Post
Also I was installing amrnb-7.0.0.2 from tarball after extracting it.I ran './configure' then error was

checking for patch... no
configure: error: You need patch utility to prepare sources.

(Question)What am i missing ? Actually I want to convert mp3 to amr where ffmpeg says unsupported codec?
With regards to this, you need the 'patch' program - use your package manager to get it.

I don't know about how an unstripped library would hinder ffmpeg though - my best guess would be it's trying to open shared object libraries at run-time...?

John G
 
Old 11-25-2009, 07:17 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Ok.I installed linux-patch-aufs.
'./configure' then 'make','make install','make clean' gave no error for amrnb-7.0.0.2.tar.bz2 and amrwb-7.0.0.3.tar.bz2.
Now i installed ffmpeg-checkout-2009-03-03 with option
'./configure --enable-nonfree --enable-libx264 --enable-libamr-nb --enable-libamr-wb --enable-gpl' then 'make','make install','make clean'.Everything went well.
Now when I ran
ffmpeg -i catdog.mp3 catdog.amr
I got error

[libamr_nb @ 0x29f6010]Only 8000Hz sample rate supported
Error while opening codec for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

Does that mean I can't convert mp3 to amr?

Last edited by sumeet inani; 12-14-2009 at 03:22 AM.
 
Old 12-14-2009, 08:07 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
Finally , here is solution for everyone who want to convert audio file to amr (playable on some mobile phones & takes much less space then mp3)

Code:
ffmpeg -i InputFile -ar 8000 -ac 1 -f amr OutputFile
I have verified it.
I have medibuntu-ffmpeg on ubuntu 8.04 so no hassle of compiling amr libraries from source ( though it is useful when repositories do not provide direct debian or rpm files with support for multiple codec) .
ffmpeg is a great utility.

If you find this useful than thank me by pressing thumbs up button.Thank You.

Last edited by sumeet inani; 02-13-2010 at 03:28 AM.
 
Old 02-13-2010, 03:41 AM   #5
sumeet inani
Member
 
Registered: Oct 2008
Posts: 908

Original Poster
Blog Entries: 26

Rep: Reputation: 49
The interesting thing is
(1)totem 2.22.1 using gstreamer 0.10.18 cannot play it saying "The playback of this movie requires a Adaptive Multi Rate NarrowBand (AMR-NB) decoder plugin which is not installed." though I have gstreamer0.10-ffmpeg & gstreamer0.10-plugins-bad,ugly installed from official ubuntu repository.
(2)
(a)MPlayer 1.0rc2-4.2.3 which I got from official ubuntu repository says "Cannot find codec 'libamr_nb' in libavcodec..."
(b)Now after I subscribed to medibuntu repo & installed mplayer (autoremoved initial one) using
Code:
$sudo apt-get autoremove mplayer
$sudo wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update
$sudo apt-get install w32codecs mplayer
I can play amr file using MPlayer 1.0rc2-4.2.4.
(3)ffplay works well.

Last edited by sumeet inani; 02-13-2010 at 04:15 AM.
 
  


Reply



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
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avformat_alloc_context YeeHaa4LINUX Linux - Software 2 10-16-2009 11:09 PM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 12:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 05:16 PM
This version of nuvexport requires either the cvs or svn version of ffmpeg?? zeltak Linux - Software 2 02-02-2007 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
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
Twitter: @linuxquestions
Open Source Consulting | Domain Registration