[FFmpeg-devel] [RFC][PATCH] Soft target presets

Michael Niedermayer michaelni
Fri Nov 12 23:20:22 CET 2010

On Fri, Nov 12, 2010 at 08:29:21PM +0100, Stefano Sabatini wrote:
> On date Friday 2010-11-12 20:13:59 +0100, Michael Niedermayer encoded:
> > On Fri, Nov 12, 2010 at 07:30:03PM +0100, Stefano Sabatini wrote:
> > > Hi,
> > > 
> > > this should allow program presets of the kind:
> > > ffmpeg -i IN.flv -pre dvd-pal OUT
> > > 
> > > which should deprecate the -target option and deliver more flexibility
> > > to the ff* tools.
> > 
> > and break all other tools in the process by storing ffmpeg.c specific command
> > line options in preset files that are supposed to work with all libav* tools
> > The preset file is supposed to map things to AVOptions, and we even have
> > AVOptions for samplerate and so on or could have but you implement a way to
> > bypass all this and feed it back in the previous layer.
> > This is really ugly and broken
> Patch #8, ffmpeg specific presets should be prefixed by "ffmpeg-",
> same can be easily generalized to the other tools, this just
> implements a convenient way to provide complex presets through a
> bundled configuration file, rather than hardcode them.

> This would be very useful for specific targets (e.g. ipod, ipad, PSP,
> ...).

I agree its usefull and there exists
ffmpeg -i myfile `cat dvd_opts` outfile

-pre dvd_opts
is just 1 char less

what makes -*pre better than `cat X` is that its able to automatically adjust
the options based on codec and that its not ffmpeg.c specific but the presets
can easily be used by GUIs too.
None of this applies to what you implement in this patchset, thus i fail to
see the point of it compared to just using posix tools

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101112/a73c52b6/attachment.pgp>

More information about the ffmpeg-devel mailing list