[Ffmpeg-devel] FFmpeg strange work

John Clonts john
Mon Jun 5 15:07:15 CEST 2006

On 6/5/06, Sorokoletov, Alexander <Sorokoletov at scnsoft.com> wrote:
> Hi2everybody!
> I have a task to convert from one audio source to another.
> F.e. I have an mp3 file. If I use a command like this "ffmpeg -i
> tmp_1.mpga -f mp3 1.mp3" ffmpeg says he doesn't know such an input
> format. You see, the file tmp_1.mpga is an ordinary mp3 file but without
> extension. If I change extension to mp3, ffmpeg does convert the file.
> So I have a question to all of us: does ffmpeg gets the file format by
> it's extension?

The -f (like most options) affects inputs coming after it on the
command line, so what you want is "ffmpeg -f mp3 -i tmp_1.mpga 1.mp3"


More information about the ffmpeg-devel mailing list