On Tue, Sep 17, 2013 at 7:21 PM, James Board <jpboa...@yahoo.com> wrote: > If I were to try simple cut edits with melt using the following command > melt InFile.avi in=80 out=120 -consumer avformat:OutFile.avi > How will melt implement this? Does it jump to frame 40 and only decode > the next 41 frames? Or does it decode the entire file and only output > frames > 40-81. My input file has no inter-frame compression, and each frame is > comrpessed with ffvhuff.
It seeks to the 81st frame (in and out are 0-based) and proceeds from there. > The reason I'm asking is I have a very large input file, 100000 frames, > and I would like to split it into smaller segments to so I can mpeg4-encode > them concurrently. If I have to step through the entire file each time > (some tools > do it this way) to edit segments, then that would be prohibitely slow. yep > Also, if I tell melt to start an edit at frame N, how does it compute N? It's complicated, and it uses libavformat. I cannot explain it in words. Only the source code of MLT's producer_avformat.c and libavformat can answer that. > Does > it select the N-th actual frame of video data that's actually stored in the > file? Yes, if the MLT fps (according to profile) matches the clip's fps. If you are using melt and do not specify -profile, it goes into auto-profile mode where it first gets the source's fps. > That's what I want. Or does it first try to sync the video with audio, then > add or delete frames and then figure out what it thinks the user really > meant by N? I don't want that. It syncs each stream to the desired time independently, but what happens as far as repeating frames or skipping them initially depends quite a bit on how it was encoded and muxed, the resulting timestamps, and how libavformat demuxes and responds to the seek operations. Intra-only AVI is quite simple and safe. -- +-DRD-+ ------------------------------------------------------------------------------ LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel