[MPlayer-users] Changing aspect ratio in AVI file?
Anssi Saari
as at sci.fi
Fri Jan 6 15:45:00 CET 2006
I have a couple of avis which have 512x384 resolution, but aspect ratio
says they are 1.77:1. No problem on my PC, but on my DVD player it is.
Mplayer -v -frames 1 output is attached.
I tried fixing this with mencoder -oac copy -ovc copy -force-avi-aspect,
but it didn't help with my DVD player, it still gets the 16:9 aspect from
somewhere. From the docs it looks like this -force-avi-aspect affects
something that only Mplayer supports? But what does my DVD player use
then? The player is a Pioneer DV-575, I believe it uses the commercial
DivX decoder.
MPlayer dev-CVS-050803-16:47-3.4.4 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE
86 audio & 201 video codecs
CommandLine: '-v' '-frames' '1' 'test.avi'
init_freetype
get_path('font/font.desc') -> '/home/as/.mplayer/font/font.desc'
Font /home/as/.mplayer/font/font.desc loaded successfully! (206 chars)
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Using Linux hardware RTC timing (1024Hz).
get_path('input.conf') -> '/home/as/.mplayer/input.conf'
Parsing input config file /home/as/.mplayer/input.conf
Input config file /home/as/.mplayer/input.conf parsed: 6 binds
Setting up LIRC support...
get_path('test.avi.conf') -> '/home/as/.mplayer/test.avi.conf'
Playing test.avi.
[file] File size is 366137344 bytes
STREAM: [file] test.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
AVI file format detected.
list_end=0x2292
======= AVI Header =======
us/frame: 41708 (fps=23.976)
max bytes/sec: 0
padding: 0
MainAVIHeader.dwFlags: (272) HAS_INDEX IS_INTERLEAVED
frames total: 65857 initial: 0
streams: 2
Suggested BufferSize: 0
Size: 512 x 384
==========================
list_end=0x10F4
==> Found video stream: 0
====== STREAM Header =====
Type: vids FCC: xvid (64697678)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 0
Rate: 2997/125 = 23.976
Start: 0 Len: 65857
Suggested BufferSize: 43384
Quality 10000
Sample size: 0
==========================
found 'bih', 40 bytes of 40
======= VIDEO Format ======
biSize 40
biWidth 512
biHeight 384
biPlanes 1
biBitCount 12
biCompression 1145656920='XVID'
biSizeImage 1179648
===========================
Regenerating keyframe table for MPEG4 video
list_end=0x2186
==> Found audio stream: 1
====== STREAM Header =====
Type: auds FCC: (0)
Flags: 0
Priority: 0 Language: 0
InitialFrames: 1
Rate: 48000/1152 = 41.667
Start: 0 Len: 114443
Suggested BufferSize: 576
Quality -1
Sample size: 0
==========================
found 'wf', 30 bytes of 18
======= WAVE Format =======
Format Tag: 85 (0x55)
Channels: 2
Samplerate: 48000
avg byte/sec: 17888
Block align: 1152
bits/sample: 0
cbSize: 12
mp3.wID=1
mp3.fdwFlags=0x2
mp3.nBlockSize=429
mp3.nFramesPerBlock=1
mp3.nCodecDelay=0
===========================
list_end=0x2292
AVI: dmlh found (size=248) (total_frames=65857)
list_end=0x22B6
hdr=Software size=15
Software : Nandub v1.0rc2
list_end=0x15A6CA60
Found movie at 0x280C - 0x15A6CA60
Reading INDEX block, 180300 chunks for 65857 frames (fpos=0x15a6ca68)
AVI index offset: 0x2808 (movi=0x280C idx0=0x4 idx1=0x12C)
Auto-selected AVI audio ID = 1
Auto-selected AVI video ID = 0
AVI: Searching for audio stream (id:1)
AVI video size=312631120 (65857) audio size=49135296 (114443)
VIDEO: [XVID] 512x384 12bpp 23.976 fps 910.5 kbps (111.1 kbyte/s)
[V] filefmt:3 fourcc:0x44495658 size:512x384 fps:23.98 ftime:=0.0417
Clip info:
Software: Nandub v1.0rc2
get_path('sub/') -> '/home/as/.mplayer/sub/'
get_path('default.sub') -> '/home/as/.mplayer/default.sub'
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
dec_audio: Allocating 4608 + 65536 = 70144 bytes for output buffer.
mp3lib: made decode tables with MMX optimization
mp3lib: using 3DNow!Ex optimized decore!
MP3lib: init layer2&3 finished, tables done
MPEG 1.0, Layer III, 48000 Hz 96 kbit Joint-Stereo, BPF: 288
Channels: 2, copyright: No, original: Yes, CRC: No, emphasis: 0
AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
X11 opening display: :0.0
vo: X11 color mask: FFFFFF (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
[x11] Detected wm supports layers.
[x11] Detected wm supports NetWM.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports STAYS_ON_TOP state.
[x11] Current fstype setting honours LAYER FULLSCREEN STAYS_ON_TOP ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[xv common] Drawing no colorkey.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Building audio filter chain for 48000Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
ao2: 48000 Hz 2 chans s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
audio_setup: sample format: s16le (requested: s16le)
audio_setup: using 2 channels (requested: 2)
audio_setup: using 48000 Hz samplerate (requested: 48000)
audio_setup: frags: 8/8 (8192 bytes/frag) free: 65536
AO: [oss] 48000Hz 2ch s16le (2 bps)
AO: Description: OSS/ioctl audio output
AO: Author: A'rpi
Building audio filter chain for 48000Hz/2ch/s16le -> 48000Hz/2ch/s16le...
[dummy] Was reinitialized: 48000Hz/2ch/s16le
[dummy] Was reinitialized: 48000Hz/2ch/s16le
Starting playback...
[ffmpeg] aspect_ratio: 1.773124
VDec: vo config request - 512 x 384 (preferred csp: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.77:1 - prescaling to correct movie aspect.
VO Config (512x384->680x384,flags=5,'MPlayer',0x32315659)
VO: [xv] 512x384 => 680x384 Planar YV12 [fs] [zoom]
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel at goldbach.in-berlin.de> and others
Xvideo image format: 0x32595559 (YUY2) packed
Xvideo image format: 0x32315659 (YV12) planar
Xvideo image format: 0x59565955 (UYVY) packed
Xvideo image format: 0x30323449 (I420) planar
using Xvideo port 270 for hw scaling
[xv-fs] dx: 0 dy: 148 dw: 1600 dh: 904
[xv] dx: 0 dy: 148 dw: 1600 dh: 904
*** [vo] Allocating (slices) mp_image_t, 512x384x12bpp YUV planar, 294912 bytes
[xv] dx: 0 dy: 0 dw: 1600 dh: 1200
[xv-fs] dx: 0 dy: 148 dw: 1600 dh: 904
A: 0.0 V: 0.0 A-V: 0.047 ct: 0.000 1/ 1 ??% ??% ??,?% 0 0
XXX initial v_pts=0.000 a_pos=8688 (0.486)
*** [vo] Allocating (slices) mp_image_t, 512x384x12bpp YUV planar, 294912 bytes
A: 0.1 V: 0.0 A-V: 0.015 ct: 0.001 2/ 2 ??% ??% ??,?% 0 0
EOF code: 1
Uninit audio filters...
[libaf] Removing filter dummy
uninit audio: mp3lib
uninit video: ffmpeg
Successfully enabled DPMS
vo: uninit ...
Exiting... (End of file)
More information about the MPlayer-users
mailing list