Log in

View Full Version : How could I invert a film ? (last frame at first place...)


ma2trigk
23rd May 2003, 22:18
How could I do to invert my video, to put the last frame at the first position, the one before the last at the second place etc...

Is there any filter or plug-in that could do that ? Or maybe another program ? I could decompose the video into images and animate the images backward, but it takes a lot of time.

Sorry if the question was already asked, but i couldn't find one :(

ma2trigk
23rd May 2003, 22:57
After what I readed on it at avisynth.org, the filter reverse seems to be what I'm looking for, but where could I found it ?

I couldn't found it on sourceforge.net

Thanks

Zhnujm
23rd May 2003, 23:08
isnt it a build in filter ?

ma2trigk
23rd May 2003, 23:24
It's a build-in filter in AviSynth, but I couldn't found it in VirtualDub or VirtualDubMod (version 1.51)

TelemachusMH
24th May 2003, 00:48
You have to write an AviSynth script and include the command in it.
An example you may want is:
mpeg2dec("path\to\d2v\file")
crop(left, top, width, height)
reverse()

You would use mpeg2dec if you are frameserving a mpeg-2 file with dvd2avi. If you have an avi source you would use the avisource command. Make sure that the text file you put this in has the extension of '.avs' or it will not work. After that just open up the avs in virtualdub or another editor.

TelemachusMH

EDIT There are more many examples at www.avisynth.org as well as the commands I used. Here's the Manual (http://www.avisynth.org/index.php?page=AviSynthManual)

ma2trigk
24th May 2003, 10:15
I knew I could do it like this, but it's not THE solution because if I can do it, some of my friends wanna do it to, and therefore I have to explain avs to them

But OK, I will do it because there is no other solution, no shortcut in VirtualDub

TelemachusMH
24th May 2003, 16:47
It would actually be impossible to create a filter like that in VirtualDub, because it requires a (first) frame to go in, and it has to have a frame come out before the next frame is inputed. The only way you could reverse in VirtualDub is to read the whole movie into memory, while outputing dummy blank frames. Once it is all done, you could output the actual movie instead of the dummy frames that would have to be inputed.
So, theoretically it could be done, however it would use hundreds or gigs of ram, and could only reverse the first half of a video.

In other words. Use AviSynth ;)

TelemachusMH

Guest
25th May 2003, 08:15
Originally posted by TelemachusMH
mpeg2dec("path\to\d2v\file")
crop(left, top, width, height)
reverse() Wrong. mpeg2dec is the DLL name, not the Avisynth function.

ma2trigk
30th May 2003, 19:26
TelemachusMH

Thanks a lot for your explanation ! I won't no more wait for such a filter in VirtualDub and will do all this with AviSynth :)