On Mon, Aug 20, 2012 at 3:58 AM, Aaron Cruz <[email protected]> wrote: > Hi, > I have scoured the source and found no reference to an event that is fired > when a producer completes (or a playlist/consumer) - the position is at the > final frame.
correct > mlt must have to handle this internally or it wouldn't know when to go to the > next producer in a playlist, no? correct, but as a logical event, not a mlt_event > I looked in events, playlist, producer and consumer. Maybe it lies elsewhere. We only add events on an as-needed basis, but when I needed this in the past for as-run logging, I chose to do it in a different way. I setup a consumer-frame-render or consumer-frame-show event handler and used Playlist::clip_info() to detect when a producer is near its end. If you are using frame-dropping (consumer.real_time > 0), then you need to use some margin near the end instead of actually at the end. > I am using Ruby bindings and the master on github for both mlt and mlted - > last updated a month or so ago - though the source that I mention is the mlt > framework C source. > Thank you, you will be hearing more from me :P If I add an event to mlt_playlist, it will need to have a reference to the producer in the parameter list, which requires a custom RubyListener in the swig binding (mlt.i). If I do the C/C++ changes, can you try to implement the change to swig/mlt.i and contribute that? -- +-DRD-+ ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Mlt-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mlt-devel
