[MPlayer-users] newbie: how can I rotate an .avi and preserve the file type/codecs
Mike Bosschaert
mike.bosschaert at hccnet.nl
Wed Sep 3 21:51:12 CEST 2003
Hi,
I need to rotate some .avi files (I made some 'portrait' still pictures with
my DV camera) while keeping the original codec. I grab the pictures (approx
7secs of film) from my camera with dvgrab --format dv2. I can rotate the
pictures with the option -vop rotate=2. When I use:
mencoder -vop rotate-2 -ovc copy -oac copy orig.avi -o test.avi
it does not rotate, when i use:
mencoder -vop rotate-2 -ovc libdv -oac copy orig.avi -o test.avi
it does rotate something, but I get 4 distorted copies besides eachother.
Could someone please help me with the mencoder options? Finally I want to show
the rotated pictures on a normal tv screen, which means that the 720 vertical
lines should be converted in 576 horizontal lines and two black bars at both
sides should be added. Is that possible?
Thanks,
Mike Bosschaert
PS this is the output of my command:
mencoder -vop rotate=2 ./verbouw184.avi -ovc libdv -oac copy -o\
./verbouw184r.avi
Using GNU internationalization
Original domain: messages
Original dirname: /usr/share/locale
Current domain: mplayer
Current dirname: /usr/share/locale
MEncoder 0.90-3.2.3 (C) 2000-2003 Arpad Gereoffy (see DOCS)
CPU: Advanced Micro Devices (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
SSE supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0
Reading /home/thuis/.mplayer/codecs.conf: can't open
'/home/thuis/.mplayer/codecs.conf': No such file or directory
Reading /usr/share/mplayer/codecs.conf: 50 audio & 136 video codecs
File not found: 'frameno.avi'
Reading config file /home/thuis/.mplayer/mencoder: No such file or directory
success: format: 0 data: 0x0 - 0x1AC2778
AVI file format detected.
VIDEO: [dvsd] 720x576 24bpp 25.00 fps 28800.0 kbps (3515.6 kbyte/s)
[V] filefmt:3 fourcc:0x64737664 size:720x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand=-1:-1:-1:-1:1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
Opening video filter: [rotate=2]
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 UYVY
Decoder is capable of YUV output (flags 0x9)
VDec: vo config request - 720 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Could not find matching colorspace - retrying with -vop scale...
Opening video filter: [scale]
VDec: using Packed YUY2 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 4
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: BICUBIC scaler, from Packed YUY2 to RGB 24-bit using MMX2
DV: only 720x480 (NTSC) and 720x576 (PAL) resolutions allowed! try with -vop
scale=720:480
Selected video codec: [qdv] vfm:dshow (Sony Digital Video (DV))
==========================================================================
audiocodec: framecopy (format=1 chans=2 rate=32000 bits=16 bps=128000
sample=4)
Writing AVI header...
Pos: 7.5s 187f (100%) 14fps Trem: 0min 22mb A-V:0.040 [23999:1023]
Writing AVI index...
Fixing AVI header...
Video stream: 24000.000 kbit/s (2999999 bps) size: 22440000 bytes 7.480
secs 187 frames
Audio stream: 1024.000 kbit/s (127999 bps) size: 957440 bytes 7.480 secs
Total Unfree 1146 bytes cnt 13 [(nil),0]
More information about the MPlayer-users
mailing list