[Libav-user] Update filter settings at runtime

Bjoern Drabeck bjoern.drabeck at gmail.com
Tue Apr 9 03:50:48 CEST 2013


> > I have recently played around with filters, and successfully integrated
> > them into my test application, so I can apply video and audio filters,
> for
> > example bass and treble filters when I play an audio file, or apply a
> video
> > filter - but those I always set on opening of the file.
> >
>
> > I have however got a question on what the recommended practice would be
> on
> > updating filters at runtime?
>
> See the process_command() API, for example how it is used in hue and
> sendcmd filters.
>
> Yes I saw that, and initially thought this mechanism is provided on most
filters (at least those for which it would make sense), but it's very few..


> >
> > I would like to be able for example to have an equalizer panel for the
> > audio, where I can change the bass, treble, etc settings and apply those
> > while playing back the file, so I can fine tune it to a setting that I
> like.
> >
> > The filter samples are very basic and don't really indicate an approach
> for
> > that..
> >
> > Anyone have any hints on how to do this?
>
> You need to implement a process_command() callback, which should be
> fairly simple, or in alternative send a feature request on trac.
> --
>
> I suppose if I sent a feature request it would not be predictable when it
becomes available, so that leaves trying to implement it myself. Will check
out the code and do that, and report back on my progress.
If the result seems reasonable I can make it available for other people too.

thanks
Bjoern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130409/a441827e/attachment.html>


More information about the Libav-user mailing list