How can I reverse an AVI file?

EnnEss

Banned!
OP
Banned
Joined
Dec 13, 2009
Messages
191
Trophies
0
XP
3
Country
United States
I want to reverse a video I just made.

When I say reverse, I mean make it play backwards, know what I mean?

I want to create a stupid illusion of me using telekinetic powers to attract a cup to my hand.
tongue.gif


So I recorded myself pushing the cup away and I want it reversed.

I don't want to use too many programs.

So.. try your best in helping me.
smile.gif


Your help is appreciated.
wink.gif


Thanks in advance!

Have a great time! And a Merry Tempmas!
biggrin.gif
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Sony vegas is shareware, and it's a big software.
There are lighter solution.

I suggest using Avisynth and the reverse plugin to plays backward.
It's an internal filter, no need to install an additional one.


For information, Avisynth is a frameserver, sending frame by frame to your video maker as if it was a real video.
Avisynth is not a software you run, it's a scripting server running in memory, allowing your usual software to apply visual effect.

To reverse a video :
create a new .txt with this inside :
Code:
AviSource("c:\folder\myclip.avi")
reverse()
Save and rename to backward.avs

run your usual movie maker (recommanded : virtualdubMod ?)
File/load and instead of loading a .avi, choose your .avs
play your movie to test
save it to a new file.
 

EnnEss

Banned!
OP
Banned
Joined
Dec 13, 2009
Messages
191
Trophies
0
XP
3
Country
United States
Wow, is it THAT hard?

I thought just click a reverse button. -_-

Posts merged

Thanks! Anyways!

Merry Tempmas!
biggrin.gif
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
It's not hard at all :wtf:

anyway, if you want a button pushed only, install a heavy video editing software (sony vegas, Edius, Adobe premiere, etc.), they are certainly full of options.
but you will have to learn how to use them, as they are a loooot more complicated than the one you are used to.

OR
use the one you are used to, install avisynth, create a txt file and write "reverse()" ... Woaa too hard to write 9 letters in a text file
tongue.gif



Up to you to choose.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
You didn't tell us which software you are actually using to create/edit your video.
do you have one ? I assumed you already have one (movie maker ?), but maybe you only have the video from your camera.

In which case maybe you could try sony vegas to start with, or adobe premiere.

If you already have one, are you sure it doesn't include a reverse function ?
 

EnnEss

Banned!
OP
Banned
Joined
Dec 13, 2009
Messages
191
Trophies
0
XP
3
Country
United States
Ok wait man.
tongue.gif


The site you gave me is some Wikipedia copy which has nothing...

Where do I get these Avisynth and Reverse Plugin and how do I configure them? (If they need any configuration..)

And... One last thing ^^

Thanks in advance!

Your help is appreciated!
smile.gif


Have a great time and a Merry Tempmas!
biggrin.gif
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
The main page has a "download" link at the top of the page.
you will be redirected to sourceforge download page, click on the green download button.

install the software. done.
No need to configure anything, no need to add new filters (the reverse filter in included in the main installation)

now create your text file like I've written in my 1st post :
Code:
AviSource("c:\folder\myclip.avi")
reverse()
Replace c:\folder\myclip.avi with your path to your file (keep the quotes " ")
save it, and rename this file to something.avs

Now open it with your usual movie maker software (which one are you using ?), as if it was a video (file/open)
chose "save as..." to save again to .avi



note that I'm not telling you how to use codec to compress your video or your audio (the audio will be reversed too)
You will have to use a codec if you don't want a big video file as avisynth send frame by frame, in an uncompressed form (no codec)


Let us know when you successfully did it
smile.gif
 

EnnEss

Banned!
OP
Banned
Joined
Dec 13, 2009
Messages
191
Trophies
0
XP
3
Country
United States
Well... (SORRY!
tongue.gif
)

The video turns out to say: "AVISource: couldn't locate a decompressor for fourcc mjpg
(C:\Users\Nadine\Documents\haha.avs line 1)"

Any ideas??
smile.gif


Ok now your help is VERY appreciated and thanks ALOT!
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
Ok, the error occurred because it's not a real video.
your video is made from your cellphone or your picture's camera (not a real camcorder), so it's just a successively captured jpeg pictures put end to end without a proper video codec/container + audio (named "movie jpeg", mjpg).

then try this one :
Code:
DirectShowSource("C:\Users\Nadine\Documents\haha.avi")
reverse()
It's using the windows direct show renderer, so all video working on your computer might work with Avisynth too.

Then you can try this :
Code:
V = DirectShowSource("C:\Users\Nadine\Documents\haha.avi", audio=false)
A = DirectShowSource("C:\Users\Nadine\Documents\haha.avi", video=false)
V = reverse(V)
AudioDub(V, A)
I didn't test this one, I just made it, I'll try it
tongue.gif
Edit : Tested, working
smile.gif


this mean :
V = video input (your avi without the audio)
A = audio input (your avi without the video)
reverse the video
merge the reversed video with the non reversed audio to keep it as if it was a real psych power and not a reverse video
tongue.gif



Ok, now it's maybe becoming a little difficult for you, because it's scripting.
you may prefer using a full software doing the job for you. check "avidemux" as proposed by nitrostemp (I don't know this software)

Maybe I gave other members some ideas and a wish to try it too ^^
 

Elritha

Well-Known Member
Member
Joined
Jan 24, 2006
Messages
2,037
Trophies
0
Website
Visit site
XP
122
Country
Canada
Avisynth is awesome. I've been using it for years. With the correct plugins I find it can be more powerful then commercial solutions, and it's free.

Opening things with directshow can be a pain... You may also have to specify the 'fps'.

Such as.

DirectShowSource("C:\Users\Nadine\Documents\haha.avi", fps=15)

The fps may not be 15, just an example.
 

Cyan

GBATemp's lurking knight
Former Staff
Joined
Oct 27, 2002
Messages
23,749
Trophies
4
Age
46
Location
Engine room, learning
XP
15,662
Country
France
I wanted to convert an rmvb to make an authoring DVD with menu, chapter, subtitles etc. (I'm using DVD Lab, it's a powerful Authoring software)
I had a pain to covert an .rmvb file to plain raw video .m2v file as the sound and subs were always out of synch after DVD creation, I didn't understand why.

In fact .rmvb is not compressed on image quality but on timeline : the framerate is lowered with frame's skipping when there is no significant change on screen etc.
To correct it I had to force recreating the missing frames using convertfps=true :

Here is the script, in hope it will help someone with the same issue :
Code:
DirectShowSource("L:\mysassygirl\Track1.rmvb", fps=29.97, convertfps=true, audio=false)
AddBorders(0,37,0,37)
I also added the black borders up and down to resize the video to conventional PAL DVD format.
 

EnnEss

Banned!
OP
Banned
Joined
Dec 13, 2009
Messages
191
Trophies
0
XP
3
Country
United States
Thanks all!

It worked JUST FINE!

Sorry for the waste of time!
tongue.gif


Ask me for help if you need any too.

Have a great time and a Merry Tempmas!
biggrin.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    S @ StealthD0g99: Ive never done that before