Rotating AVI?

Discussion in 'Video Cameras' started by MikeD, Jan 23, 2006.

  1. MikeD

    MikeD Guest

    This is probably a silly question, but I took a video clip on my digital
    camera in "portrait" mode and would like to rotate the resulting AVI so it
    is the right way up when played on a PC.

    Is this possible, and if so how?

    Mike
     
    MikeD, Jan 23, 2006
    #1
    1. Advertisements

  2. MikeD

    Jukka Aho Guest

    Yes, with Avisynth [1] and a simple two-line script, such as this:

    --- 8< ---

    AviSource("c:\folder\myclip.avi")
    TurnLeft()

    --- 8< ---

    (or "TurnRight()")

    If you'd like to crop or scale the image as well, take a look at the
    AviSynth manual for other filter functions:

    <http://www.avisynth.org/FiltersByCategory>

    As for saving the final, processed video, open the AviSynth script in
    VirtualDub [2] and save the stream to another AVI file with desired
    codec and compression level.

    _____

    [1] <http://www.avisynth.org/>
    [2] <http://www.virtualdub.org/>
     
    Jukka Aho, Jan 23, 2006
    #2
    1. Advertisements

  3. MikeD

    Trev Guest

    Virtual dub can do it on its own
     
    Trev, Jan 23, 2006
    #3
  4. MikeD

    Jukka Aho Guest

    You're correct, of course. I forgot that VirtualDub has this as a
    built-in feature. I usually do most of my video
    processing/preparation/conversion jobs in AviSynth, and only use
    VirtualDub for saving the results back into an AVI file. :)
     
    Jukka Aho, Jan 23, 2006
    #4
  5. MikeD

    MikeD Guest

    Thanks guys! I'll give it a go tonight.

    Mike
     
    MikeD, Jan 24, 2006
    #5
  6. MikeD

    MikeD Guest

    OK, I fired up VirtualDub (for the first time) and once I'd worked out how
    to add filters I managed to rotate my AVI and save it.

    Next question - the original file is 800k, the new one is 11MB! I presume I
    need to choose some sort of compression but couldn't find a way of setting
    the output format. Can you point me in the right direction please?

    Also, although my camera has no microphone there is a loud click at the
    start and end of the video clip. Can I remove this using VirtualDub?

    Thanks,

    Mike
     
    MikeD, Jan 26, 2006
    #6
  7. Apart from the help file for VirtualDub you mean (aka RTFM)

    If you must : Video -> Compression.
    There, I did it without being sarky.

    Cheers - Neil
     
    Neil Smith [MVP Digital Media], Jan 26, 2006
    #7
  8. MikeD

    MikeD Guest

    Thanks Neil. I suppose I deserved it (c:

    It's the first time I've ever used the program or tried to manipulate a
    video file, and it's not the most intuitive piece of software.

    With most programs when you want to save a file in a different format the
    options are available through File, Save As.

    Now I have to choose a codec and I've no idea which one will give me the
    most compatible format.

    I suppose that's what weekends are for...

    Mike
     
    MikeD, Jan 27, 2006
    #8
  9. MikeD

    Jukka Aho Guest

    What was the codec the original file was using? You can see this by
    choosing "File" -> "File Information..." after you have opened the
    original clip in VirtualDub. Maybe you could use the same codec also for
    the rotated video? Or, if you'd wish to make the video considerably
    smaller, you will probably want to use XviD, DivX, MPEG-1, MPEG-2 or WMW
    formats.

    VirtualDub can save in XviD or DivX formats once you install the XviD or
    DivX codec on your computer. However, if you'd like to create MPEG files
    or WMV files, you will need frameserve [1] the processed video from
    VirtualDub to a separate encoder application. (You can use, for
    instance, TMPGEnc or Cinemacraft for encoding to the MPEG formats, and
    Windows Media Encoder for the WMV formats. Flash Video, QuickTime, and
    RealMedia are possibilities as well.)

    [1] <http://www.doom9.org/index.html?/capture/frameserving.html>
     
    Jukka Aho, Jan 27, 2006
    #9
  10. You're right, it's not. It doesn't seem to conform to the usual or
    semi-standardised windows way of doing things. I suspect it's partly
    the guy coming from an open source background he's implemented stuff
    in a non-OS specific way
    That usually comes between 'hard to answer' and 'religious war', so
    you might want a seprate thread and flameproof gloves when you ask ;-)

    The choice of "most compatible" usually comes down to your desired
    audience. MPEG2 is OK, but not everybody has a DVD decoder for
    playback. H264 is astonishingly good at mid-range bitrates - but only
    really Quicktime and (soon) Real Player support that playback.

    WMV9 is pretty decent in the 150-2mbps bitrate range, but won't run on
    Linux machines - though you can play it on the Mac with the WMV9/Mac
    player or Flip4Mac component for Quicktime. WMA is a dud at rates
    below 48-64kbps, and WM Image 2 is universally incompatible with
    anything but the latest machines (eg PDAs won't play it, Macs won't
    play it , and so on)

    The question is : Where's it going to be viewed - who are your
    audience ?

    By default, VDub doesn't come with a windows media compressor, you
    might prefer it to creating an intermediate AVI then encoding to WMV
    if that's your choice of format. If so, download the VCM codecs pack :
    http://download.microsoft.com/download/9/8/a/98a6cb2d-6659-485e-b1f9-2c0d9bf6c328/wmv9VCMsetup.exe

    Cheers - Neil
     
    Neil Smith [MVP Digital Media], Jan 27, 2006
    #10
  11. MikeD

    MikeD Guest

    Thanks - I will have a play with that lot over the weekend.

    Mike
     
    MikeD, Jan 27, 2006
    #11
  12. MikeD

    MikeD Guest

    Phew! I'm not as dumb as I thought!
    It's a short "home movie" so I just want to email it to family members for
    viewing on a PC.

    Mike
     
    MikeD, Jan 27, 2006
    #12
  13. MikeD

    gerry9 Guest

    Hi,
    I am a complete novice, so please bear with me.
    You indicate that VirtualDub has a built-in feature for rotating an av
    video.
    I was experimenting with an older version and there were no filters, s
    I've been spending the last 2 hours looking for the correct filter an
    getting more muddled all the time. I have now installed the lates
    version of VirtualDub 1.6.14 hoping it would contain the filters, bu
    no.
    Could someone please point me to the depository where I could find th
    filter for rotating my video which I stupidly recorded in portrai
    position instead of the normal landscape.
    Thanks very much for any help.
    Gerr
     
    gerry9, Apr 14, 2006
    #13
  14. OK So it's not as easy to find as I thought if you're not used to the
    non-standard menus. First thing to set up is the menu selection

    Video -> Full Processing Mode

    Now go to Video -> Filters -> Add
    Choose from that list Rotate
    OK and "Right by 90º"

    (assume you can figure out which rotation you need from there)

    Click OK, OK again then load your video file, then choose Save As to
    save it (rotated) as a new AVI file. As for Mike above, check out the
    compression settings or you'll end up with a 2-20GB uncompressed AVI
    (uncompressed is the default setting)

    HTH
    Cheers - Neil
     
    Neil Smith [MVP Digital Media], Apr 15, 2006
    #14
  15. MikeD

    gerry9 Guest

    OK So it's not as easy to find as I thought if you're not used to the
    non-standard menus. First thing to set up is the menu selection

    Video - Full Processing Mode

    Now go to Video - Filters - Add
    Choose from that list Rotate
    OK and "Right by 90º"

    (assume you can figure out which rotation you need from there)

    Click OK, OK again then load your video file, then choose Save As to
    save it (rotated) as a new AVI file. As for Mike above, check out the
    compression settings or you'll end up with a 2-20GB uncompressed AVI
    (uncompressed is the default setting)

    HTH
    Cheers - Neil[/QUOTE]


    Thanks Neil,
    Got it now and succeeded in upending the AVI. And your remark abou
    compression is fine for me too.
    Gerr
     
    gerry9, Apr 16, 2006
    #15
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.