[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Convert .OGG to .MPEG or .SWF



On date Tuesday 2007-11-13 15:32:19 -0600, Alejandro Aguila Sáinz wrote:
> That worked for .mpg :) but any idea to convert to .avi or .swf? Thanks!
[...]

Please don't top post.

First you have to understand that Mpeg really means many different
things, it may refer both to some standard that defines many
multimedia *containers formats* (Mpeg-1, Mpeg-2:PS, Mpeg-2:TS,
Mpeg-4:14) or many *media stream formats* (Mpeg-1:video, Mpeg-2:video,
Mpeg-4:2, Mpeg-4:10 aka AVC aka H264).

Avi is a *container*, so you can put into it many different media
streams, but not necessarily all (in this rgards the Ogg file format
is far more restrictive). 

ffmpeg is clever enough to figure out which multimedia formats to use
when you only specify the extension of the output file (e.g. .avi ->
use as container avi+mpeg1:video+MP2, .mpg-> use as container Mpeg
1+mpeg1:video + MP2) but you can specify the codec to use and the
corresponding format to issue using the -acodec and -vcodec options
(have a look at ffmpeg -formats).

Example:
 
ffmpeg -i <input> -vcodec mpeg4 -acodec libmp3lame output.avi

For other examples (for example to get a FLV/SWF file) look at the
FFmpeg documentation FAQ.

HTH, regards.
-- 
Stefano Sabatini
Linux user number 337176 (see http://counter.li.org)



Reply to: