[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 23:04:07 CEST 2003


> > 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:
>
> It's not possible to rotate a picture without reencoding it.
> (there are several structures that have a orientation that can
> not be changed easily).
>
> Now, your prob with -ovc libdv could be caused by:
> --
> DV: only 720x480 (NTSC) and 720x576 (PAL) resolutions allowed! try with
> -vop scale=720:480
> --
> But i'm not sure, i never used libdv before.
>

Same result. I any other options?
Mike

Output of command:
mencoder -vop rotate=2,scale=720:576 ./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 filter: [scale=720:576]
==========================================================================
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.
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%)  13fps 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