[FFmpeg-devel] [PATCH] lavfi/fade: Add ability to do video fade based on time
Andy n Deanna
andyndeanna at gmail.com
Fri Apr 19 03:54:25 CEST 2013
On 4/18/2013 7:59 PM, Clément Bœsch wrote:
> On Tue, Apr 16, 2013 at 10:20:13PM -0400, Andy n Deanna wrote:
> + { "start_time", "Number of seconds of the beginning of the effect.",
> + OFFSET(start_time), AV_OPT_TYPE_DOUBLE, {.dbl = 0. }, 0, 7*24*60*60,FLAGS },
> Here and in the following, you can use AV_OPT_TYPE_DURATION.
AV_OPT_TYPE_DURATION appears to be a UINT64. Is that correct? I need a
float/double.
>> + { "st", "Number of seconds of the beginning of the effect.",
>> + OFFSET(start_time), AV_OPT_TYPE_DOUBLE, {.dbl = 0. }, 0, 7*24*60*60,FLAGS },
>> + { "duration", "Duration of the effect in seconds.",
>> + OFFSET(duration), AV_OPT_TYPE_DOUBLE, {.dbl = 0. }, 0, 24*60*60, FLAGS },
>> + { "d", "Duration of the effect in seconds.",
Just realized that I inserted new options in the middle of existing
options. Does that break the shortcut?
>> + OFFSET(duration), AV_OPT_TYPE_DOUBLE, {.dbl = 0. }, 0, 24*60*60, FLAGS },
>> { "alpha", "fade alpha if it is available on the input", OFFSET(alpha), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, FLAGS },
>> { NULL },
... and working on the other issues you mentioned...
Thanks,
Andy
More information about the ffmpeg-devel
mailing list