Site icon David Yin's Blog

Solve the problem of ffmpeg on Dreamhost

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.

Exit mobile version