[Ffmpeg-devel] FFmpeg strange work

Sorokoletov, Alexander Sorokoletov
Mon Jun 5 15:09:59 CEST 2006


But I don't know exactly what is the type. The only I know is mime-type
of the file.

-----Original Message-----
From: ffmpeg-devel-bounces at mplayerhq.hu
[mailto:ffmpeg-devel-bounces at mplayerhq.hu] On Behalf Of John Clonts
Sent: Monday, June 05, 2006 4:07 PM
To: FFMpeg development discussions and patches
Subject: Re: [Ffmpeg-devel] FFmpeg strange work

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"

Cheers,
John
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu
http://lists.mplayerhq.hu/cgi-bin/mailman/listinfo/ffmpeg-devel




More information about the ffmpeg-devel mailing list