[FFmpeg-devel] [PATCH] lavfi: phasescope filter

Clément Bœsch ubitux at gmail.com
Tue Mar 26 11:47:44 CET 2013


On Tue, Mar 26, 2013 at 10:36:54AM +0000, Paul B Mahol wrote:
[...]
> >> +static int config_input(AVFilterLink *inlink)
> >> +{
> >> +    AVFilterContext *ctx = inlink->dst;
> >> +    PhaseScopeContext *p = ctx->priv;
> >> +
> >> +    p->nb_samples = FFMAX(1024, ((double)inlink->sample_rate /
> >> av_q2d(p->frame_rate)) + 0.5);
> >> +    inlink->partial_buf_size =
> >> +    inlink->min_samples =
> >> +    inlink->max_samples = p->nb_samples;
> >> +
> >
> > Note that this might not work in some cases.
> 
> When? Why?
> 

See what I tried to fix here: http://ffmpeg.org/pipermail/ffmpeg-devel/2013-March/140649.html
And the API discussion here:
http://ffmpeg.org/pipermail/ffmpeg-devel/2013-March/140636.html

The problem was worked around in ebur128 by implementing a request_frame()
callback.

[...]

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130326/561d732b/attachment.asc>


More information about the ffmpeg-devel mailing list