How can I reverse an AVI file?

Discussion in 'Computer Software and Operating Systems' started by EnnEss, Dec 18, 2009.

Dec 18, 2009

How can I reverse an AVI file? by EnnEss at 1:00 PM (1,342 Views / 0 Likes) 15 replies

  1. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    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. [​IMG]

    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. [​IMG]

    Your help is appreciated. [​IMG]

    Thanks in advance!

    Have a great time! And a Merry Tempmas! [​IMG]
     
  2. RupeeClock

    Member RupeeClock Colors 3D Snivy!

    Joined:
    May 15, 2008
    Messages:
    6,307
    Country:
    United Kingdom
    Honestly? Just go get some video editing software.
    That's pretty much what you're asking for, something like Sony Vegas.
     
  3. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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.
     
  4. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Wow, is it THAT hard?

    I thought just click a reverse button. -_-

    Posts merged

    Thanks! Anyways!

    Merry Tempmas! [​IMG]
     
  5. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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 [​IMG]


    Up to you to choose.
     
  6. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Haha, okay fine, thanks! [​IMG]
     
  7. nitrostemp

    Member nitrostemp GBAtemp Maniac

    Joined:
    Mar 15, 2009
    Messages:
    1,272
    Country:
    Australia
    it would be better to use avidemux very easy to use and small too
     
  8. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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 ?
     
  9. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Ok wait man. [​IMG]

    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! [​IMG]

    Have a great time and a Merry Tempmas! [​IMG]
     
  10. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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 [​IMG]
     
  11. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Thanks!! [​IMG] [​IMG] [​IMG]
     
  12. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Well... (SORRY! [​IMG] )

    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?? [​IMG]

    Ok now your help is VERY appreciated and thanks ALOT!
     
  13. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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 [​IMG] Edit : Tested, working [​IMG]

    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 [​IMG]


    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 ^^
     
  14. Elritha

    Member Elritha GBAtemp Addict

    Joined:
    Jan 24, 2006
    Messages:
    2,037
    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.
     
  15. Cyan

    Global Moderator Cyan GBATemp's lurking knight

    Joined:
    Oct 27, 2002
    Messages:
    16,455
    Location:
    Engine room, learning
    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.
     
  16. EnnEss
    OP

    Banned EnnEss Banned

    Joined:
    Dec 13, 2009
    Messages:
    191
    Country:
    United States
    Thanks all!

    It worked JUST FINE!

    Sorry for the waste of time! [​IMG]

    Ask me for help if you need any too.

    Have a great time and a Merry Tempmas! [​IMG]
     

Share This Page