[FFmpeg-devel] avfilter/adelay - interactive commands

deiwo deiwo deiwo101 at gmail.com
Tue Jan 18 19:10:15 EET 2022


Hi,
I have created a proof of concept. Please check if it makes sense and has a
potential to get merged.
I did not know whether it would make sense to send it as a patch, so for
now a pastebin link:
https://pastebin.com/nAxRj4C9

Thanks,
David Lacko

ut 18. 1. 2022 o 10:09 deiwo deiwo <deiwo101 at gmail.com> napísal(a):

> Similar to how one can change volume in the volume filter when there is a
> zeromq filter preceding the volume filter, then it's possible to send
> zeromq commands to the volume filter and change the volume dynamically
> (while the ffmpeg is running).
> In the case of adelay filter the delay could be changed dynamically, when
> the user would increase the delay, additional silence would be added and
> the sample buffer would increase, and when the user would decrease the
> delay some samples would be skipped in the sample buffer and the buffer
> size would decrease.
>
> The usage for this would be beneficial for live streams, for example when
> changing the delay of an audio channel requires complete restart of the
> ffmpeg.
>
> ut 18. 1. 2022 o 9:22 Paul B Mahol <onemda at gmail.com> napísal(a):
>
>> On Mon, Jan 17, 2022 at 11:02 PM deiwo deiwo <deiwo101 at gmail.com> wrote:
>>
>> > Hello,
>> > I would like to ask if it makes sense to implement ZeroMQ interactive
>> > commands for the adelay filter, from the performance and memory point of
>> > view.
>> > If it does make sense then is it possible to malloc/free/realloc memory
>> > within the command processing function? Can it cause noticeable delays
>> in
>> > the stream outputs?
>> >
>> > I am new to the ffmpeg development so I am sorry if this kind of
>> question
>> > does not belong to this mailing list.
>> >
>> >
>> I fail to see how that would work. Please elaborate your idea.
>>
>>
>>
>> > Thanks for the response,
>> > David L
>> > _______________________________________________
>> > ffmpeg-devel mailing list
>> > ffmpeg-devel at ffmpeg.org
>> > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>> >
>> > To unsubscribe, visit link above, or email
>> > ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>> >
>> _______________________________________________
>> ffmpeg-devel mailing list
>> ffmpeg-devel at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>>
>> To unsubscribe, visit link above, or email
>> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>>
>


More information about the ffmpeg-devel mailing list