[MPlayer-users] Incorrect aspect ratio is computed?

Ron Johnson ron.l.johnson at cox.net
Wed Apr 13 17:32:50 CEST 2011


$ mplayer -v
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team

I've got an h264 .m4v file that handbrake, ffmpeg and vlc (correctly) 
think is 720x480 with a PAR 8:9, which computes to 4:3.

However, mplayer thinks the AR is 1.19:1.  Why?

(Sure, I can fix it with "-aspect 4:3", but wide-screen movies sometimes 
suffer the same fate and their aspect ratios vary.  Also, if other 
programs do "it" right, then mplayer should too...)

TIA,Ron

$ HandBrakeCLI --scan -t0 -i foo.m4v
[10:18:07] hb_init: starting libhb thread
HandBrake svn3905 (2011040601) - Linux i686 - http://handbrake.fr
[snip]
[10:18:07] scan: audio 0x1: AC-3, rate=48000Hz, bitrate=384000 English 
(AC3) (2.0 ch)
Scanning title 1 of 1...
Scanning title 1 of 1...
[10:18:08] scan: 10 previews, 720x480, 24.208 fps, autocrop = 0/0/2/2, 
aspect 1.33:1, PAR 8:9
[10:18:08] scan: title (0) job->width:640, job->height:480
Scanning title 1 of 1...
[10:18:08] libhb: scan thread found 1 valid title(s)
+ title 1:
   + stream: Slime_People,_The.mp4
   + duration: 01:16:46
   + size: 720x480, pixel aspect: 8/9, display aspect: 1.33, 24.208 fps

$ ffmpeg -i foo.m4v
FFmpeg version 0.6.1-4:0.6.1-5ubuntu2~ppa1~maverick1, Copyright (c) 
2000-2010 the FFmpeg developers
   built on Mar 21 2011 19:16:50 with gcc 4.4.5
[snip]
     Stream #0.0(und): Video: h264, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 
2457 kb/s, PAR 64:81 DAR 32:27, 24.21 fps, 30k tbr, 90k tbn, 180k tbc


$ mplayer -vo xv -vc ffh264 foo.m4v
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote 
control.

Playing foo.m4v.
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x93d20c0]max_analyze_duration reached
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (ac3), -aid 0, -alang eng
[lavf] stream 2: subtitle (unknown), -sid 0, -slang und
VIDEO:  [H264]  720x480  24bpp  30000.000 fps  2457.7 kbps (300.0 kbyte/s)
Clip info:
  major_brand: mp42
  minor_version: 0
  compatible_brands: mp42isomavc1
  encoder: HandBrake svn3905 2011040601
==========================================================================
Forced video codec: ffh264
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 1.19:1 - prescaling to correct movie aspect.
VO: [xv] 720x480 => 720x608 Planar YV12
A:   4.9 V:   4.9 A-V:  0.001 ct:  0.000   0/  0 55%  3%  0.4% 2 0
Exiting... (Quit)

-- 
"Neither the wisest constitution nor the wisest laws will secure
the liberty and happiness of a people whose manners are universally
corrupt."
Samuel Adams, essay in The Public Advertiser, 1749


More information about the MPlayer-users mailing list