On Tue, Sep 4, 2012 at 10:48 AM, Evalds Urtans <[email protected]> wrote: > Hello, > > 1. Can anyone tell if it is possible to add rtmp live stream (producer of > "loader") to mlt_playlist? At the moment after adding it to playlist > everything freezes on SDL, but some kind of processes and memory is active > till in background >
You may need to use the "avformat-novalidate" service with a live stream in a playlist. Normally, a producer must check its input so it can fail and return an error to the app, but that variant of the avformat producer bypasses the validation. If using xml, then you will change the mlt_service property. If using command line, then preface the URL with "avformat-novalidate:" Try this "melt rtmp://... -consumer xml:rtmp.mlt" Then, edit the XML's mlt_service. Now, try to use rtmp.mlt as a clip in a playlist. > 2. Is ti possible to detect when mlt_producer of live stream has needed > (eof)? What function should I use? > When does a live stream end? Anyways, you can control the duration of play of a live stream with length and out properties. As for detection, you either need to poll clip_info on the playlist API and detect when the index/producer has changed, or you can use the new playlist event "producer-next" that I added only days ago. For that, you need to learn how to listen for events by supplying a callback function (search source code for "mlt_events_listen" for examples if you are using C. > 3. How to pause & resume mlt_playlist and/or mlt_producer? mlt_producer_set_speed() 0 for pause, 1.0 for normal. You should see the source of melt.c if you are using C and want to learn more; it is not that long. If you are using another language, then it is pretty easy to map the C functions to your language once you understand the convention. The language bindings are very thin so you can understand the rules and adapt the C API docs or examples. > Thank You! > > //Evalds Urtans, > www.asketic.lv > -- +-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
