Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-22 Thread Brian Matherly via Mlt-devel
> mlt-melt color:red in=0 out=25 -blank 25 color:blue in=0 out=25 -consumer > avformat target=/tmp/export.mp4 Thanks for the example command. I reproduce this and I confirm it is a bug. I have filed it here:https://github.com/mltframework/mlt/issues/931 As a workaround, you can use transparent

Re: [Mlt-devel] How can you detect when an avformat consumer fails?

2023-07-22 Thread Rickard Lindberg
In this case, at this point, I'm fine with just receiving the event. But I'm not sure how. I tried this: def callback(*args): pass consumer.listen("consumer-fatal-error", None, callback) And get the following error: TypeError: in method 'Properties_listen', argum

Re: [Mlt-devel] How can you detect when an avformat consumer fails?

2023-07-22 Thread Dan Dennedy
You can receive the event in Python, but the arguments are useless with special SWIG binding definition. Flowblade uses MLT python binding. You should consult its code for advice. The regular MLT developers have very little experience with it. On Sat, Jul 22, 2023 at 1:00 PM Rickard Lindberg wrot

Re: [Mlt-devel] How can you detect when an avformat consumer fails?

2023-07-22 Thread Rickard Lindberg
After reading a bit about Python and SWIG and reading the source code for MLT (src/swig/mlt.i in particular), I think that `consumer.listen` is not yet usable from Python. There seems to be no way to register a Python function as a callback. The mlt.i file seems to have some special handling for

Re: [Mlt-devel] Field order broken on rendering

2023-07-22 Thread Brian Matherly via Mlt-devel
Here are some initial comments: Since mlt_tractor_pass_properties only operates on frames, maybe it should be a member of mlt_frame? mlt_tractor_pass_properties should probably have a more descriptive name. Which properties specifically does it pass? Could we convert the function to a single cal

Re: [Mlt-devel] Problem with sound when exporting playlist with blanks

2023-07-22 Thread Brian Matherly via Mlt-devel
The normalizing filters are intended to be attached to the individual producers, not the playlist itself. It isn't the intention for the programmer to manually add the normalizers. They are added by the factory when the "service:resource" notation us used (as you use in your example code). >Fro

[Mlt-devel] How can you detect when an avformat consumer fails?

2023-07-22 Thread Rickard Lindberg
Hi, I see that there is a "consumer-fatal-error" event. Should that one be used? Or is there a property set that indicates status? Also, I was not able to figure out Python syntax for listening to events. Does anyone know what arg2 and arg3 is supposed to be below? consumer.listen("consumer-