The filter will not process the audio until you call
mlt_frame_get_audio()https://github.com/mltframework/mlt/blob/master/src/framework/mlt_frame.h#L127
Why not listen to theĀ "consumer-frame-render" event from the consumer and
request the level of the frame after all the filters have been processed?
~BM
On Saturday, November 7, 2020, 02:05:20 AM CST, [email protected]
<[email protected]> wrote:
Hi all,
I succeeded in creating a preview of the unfiltered frames, as
suggested by Dan: I wrote a filter, first in the chain, which extracts
the image.
Now I have another problem: I would like to process frames
to inspect the audio levels. I thought I can use the audiolevel filter
and ask it to process every single frame. I make a loop for every frame
I am interested in, call
mlt_service_get_frame(...), then call
mlt_filter_process(audiolevel, frame).
It works, but only if I make a
call to sleep(). It seems to me, that it works
only because the
consumer, because the sleep(), has a chance to request the final frame
to display, and doing so all the filters are run.
Is there a way I can
get frame by frame, and run on them only the filters I
want, without
using a consumer?
Thank you,
linuxfan
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel