On Tue, Sep 13, 2022 at 11:07 AM 李奥杰 <aojie1...@sjtu.edu.cn> wrote: > > Dear Sir/Madam, > I am a researcher working on video enhancement and I found the mlt > framework and shotcut editor really useful for video editing. Recently I'm > trying to add my own filters for frame interpolation to mlt and shotcut, > which needs to change the source frame rate (fps) of the video. I refered to > link_timeremap and doubled the fps by modifying the mlt link profile > (frame_rate_num and frame_rate_den). After that, I found the fps did change > but the total frame number did not change and only the first half of the > video can be played in shotcut (see the attached file). I tried to modify the > propoties of mlt producer and service (e.g. length, out, and speed) but it > still did not work. So I wonder in which part of mlt code can I change the > output frame number so that I can increase the frame rate without changing > video duration. > I would appreciate it very much if I could receive your reply. > > Best Regards! > Aojie
It is not possible for a filter or link to change the length of a producer. It is the responsibility of the program that creates the MLT composition to adjust the length as needed. As you can see, Shotcut does not do that yet for Time Remap, but it does for Properties > Speed. Also, please do not attach Microsoft documents to a public mailing list as they are potential vectors for malware and cannot be opened by many. _______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel