[FFmpeg-user] Why does the 'detelecine' filter exist?
Carl Zwanzig
cpz at tuunq.com
Thu May 29 20:38:01 EEST 2025
On 5/29/2025 9:40 AM, Mark Filipak wrote:
> I can't "make patches". I'm not a 'C' programmer.
HAVE YOU EVEN LOOKED AT THE DOC SOURCE???????
Much of the doc is in textinfo format, not in c. but since apparently
you haven't looked, you might not know that. Try reading
https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/master:/doc/filters.texi
And even without knowing c but having some/any programming experience,
this should be reasonably comprehensible--
static const AVOption chorus_options[] = {
{ "in_gain", "set input gain", OFFSET(in_gain),
AV_OPT_TYPE_FLOAT, {.dbl=.4}, 0, 1, A },
{ "out_gain", "set output gain", OFFSET(out_gain),
AV_OPT_TYPE_FLOAT, {.dbl=.4}, 0, 1, A },
{ "delays", "set delays", OFFSET(delays_str),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, A },
{ "decays", "set decays", OFFSET(decays_str),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, A },
{ "speeds", "set speeds", OFFSET(speeds_str),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, A },
{ "depths", "set depths", OFFSET(depths_str),
AV_OPT_TYPE_STRING, {.str=NULL}, 0, 0, A },
{ NULL }
};
(https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/refs/heads/master:/libavfilter/af_chorus.c)
Sure, might have to find how AVOption is defined, but it's pretty clear
what "in_gain" does and a rough guess suggests the default value is .4 .
Make an effort. (And really, c isn't that difficult to read.)
z!
More information about the ffmpeg-user
mailing list