LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how does unstripped version help in ffmpeg (http://www.linuxquestions.org/questions/linux-newbie-8/how-does-unstripped-version-help-in-ffmpeg-770957/)

sumeet inani 11-23-2009 08:16 AM

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?

JohnGraham 11-23-2009 08:31 AM

Quote:

Originally Posted by sumeet inani (Post 3766644)
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

sumeet inani 11-25-2009 08:17 AM

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?

sumeet inani 12-14-2009 09:07 AM

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.

sumeet inani 02-13-2010 04:41 AM

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.


All times are GMT -5. The time now is 12:43 AM.