Hi, For quite some time I’ve been fighting with a curious bug in my consumer.
Basically in VLMC (Videolan’s video editor) we have Clip Preview and Project Preview windows, one for streaming imported clips, the second one for streaming current project. My libVLC consumer takes as it’s target widget id, and I have 2 producer+consumer MLT pipelines, one for clip preview widget, one for project preview widget. The problem is, when trying to run streaming on both these widgets at once, suddenly everything starts misbehaving, and it looks like producer connected to my consumer (which is avformat for Clip Preview, and avformat+series of filters for Project Preview) produces frames at stunningly low rate (like, 30 frames for 10 seconds for each of the widgets). I discovered funny thing today however. When I launch these pipelines with separate MLT instances (so using different mlt_repositories), everything works ok… Moreover, when looking at Shotcut, kdenlive, I discovered none of these video editors support streaming video to two widgets at once (in kdenlive, if you display Project Monitor and Clip Monitor in one kdenlive window, and play the second one while the first one is playing, the first one stops). This leads to my question. I’m trying to eliminate all possible causes of my bug, I’ve been looking at my consumer’s code for quite some time, but it seems to me that the problem may actually lie in avformat producer (although I may be wrong), as it just looks that when turning both pipelines on at once, suddenly mlt_consumer_get_frames() in my consumer start taking a looot of time (like, more than 100x slower). So - is the thing I’m doing supported in MLT (meaning, running two independent producer+consumer pipelines at once)? Best, Paweł ------------------------------------------------------------------------------ _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel