Paul Garner
2011-01-20 15:49:38 UTC
Hi,
Have I got this right: ffmpeg will try to guess the desired output
format from the file extension of the output path, failing that you
need to use the -f option to tell ffmpeg what type of file to output?
In my case I'm using a hosted encoding service which allows me to pass
parameters to the ffmpeg cli that does the encoding but for whatever
reason the encoding service gives ffmpeg an output filename to use
that has no extension.
Using '-f mp3' works for mp3 files, but trying to output AAC files I
get errors if I do '-f aac' or '-f m4a'
Outputting AAC file works if I give use the filename 'outputfile.m4a'
and no -f flag, but that's not a possibility on my hosted encoding
service.
So my question is: why don't '-f aac' or '-f m4a' work when they are
both listed as available formats in ffmpeg -formats ? How do I know
what are valid options for -f ?
Have I got this right: ffmpeg will try to guess the desired output
format from the file extension of the output path, failing that you
need to use the -f option to tell ffmpeg what type of file to output?
In my case I'm using a hosted encoding service which allows me to pass
parameters to the ffmpeg cli that does the encoding but for whatever
reason the encoding service gives ffmpeg an output filename to use
that has no extension.
Using '-f mp3' works for mp3 files, but trying to output AAC files I
get errors if I do '-f aac' or '-f m4a'
Outputting AAC file works if I give use the filename 'outputfile.m4a'
and no -f flag, but that's not a possibility on my hosted encoding
service.
So my question is: why don't '-f aac' or '-f m4a' work when they are
both listed as available formats in ffmpeg -formats ? How do I know
what are valid options for -f ?