mp4 to flv using ffmpeg on Ubuntu server 10.04
I am doing a conversion of mp4 to flv on a GUI less server where I have only SSH access.( I tried winff and X forwarding that had hanged while doing this conversion so winff is not possible for me)
I do not have any idea of the codecs,bitrate of this mp4 video. Some one had converted from an m4v to mp4 and then uploaded this on the server. When I tried converting on command line as follows Code:
ffmpeg -i stats_estimation.mp4 out.flv I checked this page http://www.ffmpeg.org/ffmpeg-doc.html but I could not understand much. Can some one help to figure out what should I be doing to get this video to flv in this case? The OS is Ubuntu 10.04 64 bit server edition and aptitude install winff was what I had used to get ffmpeg or any thing else. |
What you need to know is in the last two lines of the output.
Code:
[adpcm_swf @ 0xa4ef60]Sample rate must be 11025, 22050 or 44100 |
This did not gave me error but what happened at the end is I lost the sound completely the video came.
Code:
ffmpeg -i stats_estimation.mp4 -ar 22050 -acodec libmp3lame -ab 32K -r 25 -vcodec flv out.flv http://pastebin.com/enKdM9u Code:
Unknown encoder 'libmp3lame' Code:
sudo aptitude install libmp3lame again Quote:
|
Your version of ffmpeg doesn't have liblame support enabled. If it were, there'd be an entry saying --enable-libmp3lame in the configuration line. I'm going to guess you're using your distro's default version, which won't have anything included that's encumbered by patents or other intellectual property restrictions.
You can get a fully-enabled version for Debian from the debian-multimedia repositories, and from Medibuntu for the Ubuntu family. I'm not sure about other distros. |
All times are GMT -5. The time now is 07:03 PM. |