[FFmpeg-devel] [RFC] Specifying KEYINT (-g) has no effect in libx264

Michael Niedermayer michaelni at gmx.at
Mon May 23 05:33:41 CEST 2011

On Sun, May 22, 2011 at 10:40:07PM +0200, Stefano Sabatini wrote:
> Hi,
> see issue #157.
> The problem was possibly introduced in:
> commit 0140d3f0921e5cbb6ea8706acb0307f7ff57a133
> Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
> Date:   Sat Apr 16 16:50:50 2011 -0700
>     In libx264 wrapper, add -preset and -tune options
> and depends on the fact that x264_param_default_preset() which is
> called in x264_init(), calls x264_param_default() which defaults the
> already set options.
> Indeed order of options matters, with the current mechanism options
> are set in the relevant contexts, and globally processed in the object
> initialization, so the order specified on the commandline is basically
> ignored.
> In the case of libx264 we may process profile/preset *before* the
> other options set in the context, so that specific settings will
> override profile/preset information.
> This has the problem that most of the times user-set options are
> changed to medium profile or libx264 will complain&exit, see:
> thus making fine-tuned user options pointless (since they are changed
> to medium preset and/or will be rejected by libx264).

I see 3 obvious solutions

A. is mplayers to just use -x264opts which ive added

B. keep track of which options have been set by the user and which are

C. make sure the defaults in ffmpeg.c used for x264 match the choosen

all of them have their advantages and disadvantages

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Opposition brings concord. Out of discord comes the fairest harmony.
-- Heraclitus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110523/bbe46f9a/attachment.asc>

More information about the ffmpeg-devel mailing list