>>> I'm a new melt user. I want to do something simple. I'd like to take
>>> an existing avi file (in a raw format: no inter-frame compression like >>> mpeg) and delete some segments. I tried a simple command like this >>> >>> melt InFile.avi in=80 out=120 -consumer avformat:OutFile.avi >>> >>> My intent was that only frames 80 to 120 will be in the output >>> file OutFile.avi. But when I view OutFile.avi, all frames are the same >>> as frame 80 in the input file. So this did not >work. >>> >>> How can I correctly use melt to delete segments from an AVI file? >> >>That is correct, but probably your AVI is not seekable or readable by >>libavformat or MLT, or the particular version of libavformat your MLT >>build is using requires some more avformat encoding parameters to be >>set. I suggest that you use Shotcut to get acquainted with MLT and try >>some things out. Look at the XML it generates. See if it can play and >>seek on the file you are trying to read. > >Thanks for your help. The AVI file was generated by mencoder, so if >melt uses the same libraries that mencoder uses, then it should be >readable? DOes that make sense? Anyway, what is 'shotcut'? >Did you mean 'shortcut'? I searched on the MLT documentation >page http://www.mltframework.org/bin/view/MLT/Documentation >for either and it didn't find anything. >Thanks. Shotcut is essentially a GUI wrapper around the MLT library. I think the reason that Dan suggested that you look at it is because sometimes it can be easier to discover things by visual inspection and "clicking around" until you achieve your desired result. Another thing you can try is to use melt without specifying the consumer. If you do that, melt automatically selects the SDL consumer and the result is displayed on your screen. This way you can immediately see the result without opening the file in an player each time. mencoder and mlt both use libavcodec under the hood to provide codec support. Just because libavcodec can encode a particular codec does not necessarily mean it can decode it. You would have to check the codec support for the particular codec you are using. As an experiment, it would be interesting to use a more common codec to see if you can achieve the desired result. For example, use mencoder to encode the video as mpeg2 and see if it works with melt the way you want. ~BM ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel