Thursday, July 4, 2013

Rotate a video by an arbitrary angel and crop the size of the video on PC

Haven't had issues fun like this to tackle since a long long time...

Following is a clip I took on the Maokong Gondola.  The video clip came out tilted because I rested the camera on the window pane...



This isn't really the most ergonomic means of showing people a video clip... regardless whether anyone really watch it.  So, I decided to figure out how to get my video clips alike straightened up and cropped  using a PC.... and got it done.  (Apparently, this is something easy in Mac.)



The program I used to rotate and crop the video is VirtualDub build 1.8.1.  One reason why I did not up to use the more recent versions is because... oops... couldn't find the option to rotate videos by arbitrary angels.  lol

One thing you need to know is that it seems like you cannot get the rotating and cropping done in one setting.  Rather, you have to first save the rotated clip, open this saved clip to crop it, and save it again.

And, by the way, somehow the HTML5 player doesn't like the files spitted out by VirtualDub... I am just gonna tell the viewers to unjoin the Youtube HTML 5 trial when viewing the clips... since it ain't like my clips are so popular anyways... 8-O lol

Following is the step-by-step instruction to get your video rotated to any angel of your wish and cropped the clip to the size of your preference. (Or you can go to the photo album to view the same set of instructions.)

1. Open the video file you want to work on.


2. Once the file is open, select "Filters" under the Video drop-down menu.


3. Once the "Filters" window pops up, click on "Add" to add a filter.


4. Inside of the "Add Filter" window, scroll down to look for the "rotate2" filter and press OK.


5. You will be able to specify the arbitrary angel you want the video to be rotated.  With the filtering mode, I found the "Bicubic" method to give the best output.  Also, the button at the lower left side allows you to hide and show the preview of your modification.


6. After you are done, save this file... in my case, I saved the "straightened" video under a different name simply because I don't like to mess with the original file (and thus unable to tell you what might happen if you save it under the same file name).

7. This window shall pop up when the rotated file is being saved.



8.  If you want to crop the video you have straightened, open the "straightened" file  (In this case, it's the "rotate76_1.avi.")  Open the filters window, select the filter and click on "Cropping."



9. Decide how you want the clip to be cropped and click "OK."


10. After you are done specifying the cropping setting, click on "Blend."  After clicking on "Blend," you should be able to see the [B] reflected as part of the specs for the filter.  Then, save it as an avi file.


Voila! C'est ça!

BTW, I think you can also specify certain frames to be rotated... essentially... select the frames before you apply the filture (I guess... can't help you with that since I didn't need to do that).

Following is the outcome of the above progress...



No comments:

Post a Comment