Assuming 16:9 video, top/bottom, using ffmpeg on Mac OS X:

ffmpeg -y -i "input.wmv" -r 20 -sameq -vcodec mjpeg -vf "scale=400:450, crop=400:225:0:0" -acodec libmp3lame -ar 44100 -ab 96k -ac 2 "left.avi"
ffmpeg -y -i "input.wmv" -r 20 -sameq -vcodec mjpeg -vf "scale=400:450, crop=400:225:0:225" -an "right.avi"
ffmpeg -y -i "left.avi" -i "right.avi" -vcodec copy -acodec adpcm_ima_wav -ac 2 -vcodec copy -map 0:0 -map 0:1 -map 1:0 "VID_0001.AVI"

To dissect the -vf settings, you’re looking at scale=(width):(twice the height), crop=(width):(height):(crop from left):(crop from top).

So, if you’re dealing with left/right video, you’d go 800:225 (twice the width instead), with a crop of 400:225:0:0 for the left, and 400:225:225:0 for the right.

If you’re dealing with non-16:9 video, just recalculate the height based on a width of 400.


Comments

0
There are no comments.