Saturday, June 27, 2009

One Liner: Transcode and Rotate a Video Clip

Here's how I rotated a certain video clip I downloaded from YouTube with clive, along with transcoding it from .mp4 to Xvid .avi:

mencoder video.mp4 -o video.avi -vf rotate=1,expand=256:192 \
-ovc xvid -xvidencopts bitrate=512 -oac mp3lame -lameopts cbr=96

Note the use of video filters -vf:
  1. rotate=1 rotates the video frames by 90 degrees clockwise
  2. expand=256:192 expands the frame from its original size 192x144 pixels to 256x192 pixels, while keeping the aspect ratio.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.