1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do I flip a video 90 degress?

Discussion in 'Other video questions' started by Astralogic, Jan 6, 2012.

  1. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Hello, I would like to know how to flip a video 90 degress clockwise but I don't mean inside a media player, I mean to actually change the video file itself.

    Edit: For example let say I had a video that is 400x300 I want to flip it to 300x400.

    How can I do this?
    Thanks
     
    Last edited: Jan 6, 2012
  2. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    What type of file is it (avi, mkv,?)Do you want to rotate it ninety degrees or resize it.
    If you make it 300 x 400 it distorts the image.

    [​IMG]

    [​IMG]

    [​IMG]
     
  3. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    EDIT: Yes I would like to make my videos like your second image. They are AVI files. Do you know how to batch process this operation?
     
    Last edited: Jan 6, 2012
  4. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    Place all the source AVI files in a folder and create an empty folder to receive the processed files.
    Create a script using VirtualDub.

    Download VirtualDub.
    Download and install the XviD codec (unless it's installed already).

    Run VirtualDub
    Load/drag one of the source files into the window.

    Video > Filters > Add, then double click 'Rotate'.
    Select the rotation and 'OK' then 'OK'
    (the output pane should show the rotated video).
    Video > Compression and select 'XviD' and 'OK'.


    File > Save processing settings
    Give the file a name e.g. rotate
    Exit

    Run VirtualDub
    File > Load processing settings (select the 'rotate.vdscript' file).
    File > Job control
    Edit > Process directory

    First, select the folder containing the source videos
    Second,select the empty destination folder.
    The files to be processed should appear in the window, remove any you don't want to process.

    Start.
     
  5. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Thanks a lot for the information I really appreciate it.
     
  6. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Hi again, I have a question. Is there a way I can rotate the image, but keep the videos resolution unchanged?
     
  7. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    It's now w300 x h400 which 3:4 or .75 aspect ratio.
    If the width is stretched out to 400, the height has to be (400/.75=533) else the image will be distorted.
    (The actual width would be 528 to satisfy the codec).

    Why do you need this.
     
  8. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    I do understand that the image will be distorted when played on my computer, but I'm trying to find a way to play videos fullscreen on my very crappy w100i spiro. If the image gets distorted that's fine because my phone will stretch the video out sideways if set to fullscreen.

    I rotated a video but for some reason it didn't, the phone wouldn't give me the option to go to fullscreen, but does if I don't rotate the vid files so I need to now try to rotate the image only and leave the x-y dimensions of the video alone.

    EDIT: Just to be clear I mean forget about rotating the video as in my first question, that's didn't work. Now I want to try rotating the image on an unrotated video.
     
    Last edited: Jan 8, 2012
  9. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    You want the canvas to remain 400x300, but the image rotated/resized to fit that canvas?

    [​IMG]
     
  10. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Let's say I go to youtube right now and download a video, I would then want to rotate the image 90 degrees clockwise but make absolutely no changes to the videos resolution, so the resolution will be exactly the same after the rotation.

    Is that what you re showing me how to do?

    EDIT: The 400x300 was just an example, I have no need for that resolution(or any particular resolution.
     
    Last edited: Jan 8, 2012
  11. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    In that image of the filters windows in VD, you see the middle line under input and output for the rotate filter? input is 288x224 then output is reversed 224x288, I want to rotate but leave the resolution unchanged. In my first post I DID ask for the resolution to change with the rotation but now I don't want that.

    I feel like I'm having trouble saying it in the right way.
     
  12. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    I don't see the reason to rotate the image (rotate the device instead?) - but to rotate and keep the original resolution you either resize the image to a new canvas (which becomes part of the image) or distort the image.

    Since this is for a mobile device (I don't have one) it may be best to post the question at the Videohep site while waiting for more helpful responses here.
    Perhaps mention the name of the media player if you post there.
    http://forum.videohelp.com/forums/18-Newbie-General-discussions
     
  13. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Yes that's what I need, I need to distort the image. I didn't realise it earlier but those last screenshots you posted are not what I'm looking for because the output image is not distorted, and I need the distortion, so I think we can forget about canvases and such.

    It's a simple thing, am I making sense? I realize I could be making this sound more complicated then I mean to.


    EDIT: My phones screen doesnt rotate if I rotate my phone, thats why I need to manually rotate the video by 90 degrees.
     
    Last edited: Jan 8, 2012
  14. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    <double post>
     
    Last edited: Jan 8, 2012
  15. attar

    attar Senior member

    Joined:
    Jun 17, 2005
    Messages:
    11,504
    Likes Received:
    29
    Trophy Points:
    128
    It's distorted, thus:

    [​IMG]
     
  16. Astralogic

    Astralogic Member

    Joined:
    Jan 6, 2012
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    11
    Thanks again attar, that should do nicely.
     

Share This Page