[MPlayer-users] newbie: how can I rotate an .avi and preserve the file type/codecs

Mike Bosschaert mike.bosschaert at hccnet.nl
Fri Sep 5 21:55:06 CEST 2003


> Yes, read better the documentation, -vop options are in reverse order, so
> you should do mencoder -vop scale=720:576,rotate=2
> in order to do first the rotation, and after that the scaling over the
> rotated image. I have just tried it on a video and it works.
> Andreu.
>
OK, almost there:

mencoder -o test-r.avi -ovc divx4 -oac copy -vop scale=460:576,rotate=2 \ 
test.avi

This works fine. Now I need to feed this rotated file to a codec that turns it 
into a .vob file for my DVD. Preferably with .ac3 sound. BTW there is no 
special reason why I used divx4, it just shows that the desired effect was 
reached. I tried transcode:

transcode -i test-r.avi -o test-c -m test-c.ac3 -x auto -y mpeg2enc,raw -F \  
  8,"-a 2 -q 2","" -b 128 -w 9500 --encode_fields b --export_asr 2 -e \
  32000,16,2 -E 48000,16,2

But this produces a movie in blue, upside down and again in 720:576 (i.e. too 
wide).
Did I use the wrong mencoder export format or is it a transcode problem?
Mike



More information about the MPlayer-users mailing list