I have an website which is hosted on Dreamhost.
I has a script to convert video from any formats to flv file, which can be played as flash video.
When I look at the error which made is shown as below.
ffmpeg unknown encoder mp3
It looks like mp3 audio is not supported by ffmpeg on Dreamhost. I think it is supported when I first write this script.
I checked the support history under Dreamhost control panel. The log said the account is moved to a new server last month. It may make something different.
OK. I google it and got the answer


The original code is:

/usr/bin/ffmpeg -i /abc.wmv -ab 64 -a codec mp3 -ac 1 -ar 22050 -s 480x360 -qscale 6 -y abc.flv

I changed it to

/usr/bin/ffmpeg -i /abc.wmv -ab 64 -a codec libmp3lame -ac 1 -ar 22050 -s 480x360 -qscale 6 -y abc.flv

It works now.

David Yin

David is a blogger, geek, and web developer — founder of FreeInOutBoard.com. If you like his post, you can say thank you here

Leave a Reply

Your email address will not be published. Required fields are marked *