[Libav-user] Libavfilter - Changing audio filter parameters during runtime C++

Paul B Mahol onemda at gmail.com
Sun Jan 31 00:12:36 EET 2021


On Sat, Jan 30, 2021 at 11:08 PM Paul B Mahol <onemda at gmail.com> wrote:

>
>
> On Sat, Jan 30, 2021 at 11:00 PM ilkercan Kaya <canilkerkaya at gmail.com>
> wrote:
>
>> Hi Everyone,
>>
>> I am making a mobile music app where the user can add FX to current
>> playing music through a two dimensional pad. I am using FFmpeg, libavfilter
>> in C++ to add FX to the audio. In FFmpeg you can create an audio filter and
>> set it parameters and initialize a graph.
>>
>> My problem is since the user will use a FX pad to change these parameters
>> with their fingers I need to be able to modify these parameters during
>> runtime.
>>
>> Looking at ffmpeg filter documentation, it says the following:
>>
>> "Some options can be changed during the operation of the filter using a
>> command. These options are marked ’T’ on the output of ffmpeg -h filter=.
>> The name of the command is the name of the option and the argument is the
>> new value."
>>
>> I looked at aecho, agate, acrusher and more but nearly all the effects I
>> want have 0 modifiable option which makes my FX pad nonadjustable.
>>
>> Is there a way to make ffmpeg audio filters change their parameters
>> during runtime?
>>
>> I could really use the help, thank you!
>>
>
> It is currently not implemented, because nobody needed such feature.
>
> Latest git ffmpeg master, have T support for agate and acompressor and
> couple others.
>

Also you really want both T and C (and S if performance is important)
C is for commands
T is for timeline with enable options.

Also that documentation is wrong, C is flag you need.



>
>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> To unsubscribe, visit link above, or email
>> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20210130/50d6ac2f/attachment.html>


More information about the Libav-user mailing list