You are not logged in.

#1 2010-11-07 06:07:47

skystrife
Member
Registered: 2010-09-13
Posts: 8

[SOLVED] mplayer not keeping mkv aspect ratios

When playing MKVs which have Display Width/Height defined, it appears the Movie-Aspect is never being set. Here's sample console output:

mplayer movie.mkv

-snip-

[mkv] |+ segment information...
[mkv] | + timecode scale: 1000000
[mkv] | + duration: 6894.848s
[mkv] |+ segment tracks...
[mkv] | + a track...
[mkv] |  + Track number: 1
[mkv] |  + Track type: Video
[mkv] |  + Default flag: 1
[mkv] |  + Codec ID: V_MPEG4/ISO/AVC
[mkv] |  + CodecPrivate, length 40
[mkv] |  + Default duration: 41.708ms ( = 23.976 fps)
[mkv] |  + Language: und
[mkv] |  + Name: -snip-
[mkv] |  + Video track
[mkv] |   + Pixel width: 704
[mkv] |   + Pixel height: 480
[mkv] |   + Display width: 852
[mkv] |   + Display height: 480

-snip-

Starting playback...
Increasing filtered audio buffer size from 0 to 34816
[h264 @ 0xe26f60]no picture
[h264 @ 0xe26f60]no picture
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 704 x 480 (preferred colorspace: Planar YV12)
Trying filter chain: ass vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (704x480->704x480,flags=0,'MPlayer',0x32315659)
REQ: flags=0x437  req=0x0  
VO: [xv] 704x480 => 704x480 Planar YV12 
VO: Description: X11/Xv
VO: Author: Gerd Knorr <kraxel@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 310 for hw scaling
*** [ass] Exporting mp_image_t, 704x480x12bpp YUV planar, 506880 bytes
*** [vo] Allocating mp_image_t, 704x480x12bpp YUV planar, 506880 bytes

-snip-

Any ideas as to what is happening? My ~/.mplayer/config contains the following:

# Write your default config options here!

[extension.mkv]
demuxer=mkv

sid=0
ass=yes
embeddedfonts=yes
fontconfig=yes

What gets me is that the Display Height and Display Width are clearly being detected by the demuxer--but it's as if that information isn't making it all the way down to when it starts playing. Thoughts?

EDIT: I should also mention that without the demuxer being set to mkv, I still don't get the AR preserved.

Last edited by skystrife (2010-11-08 23:45:20)

Offline

#2 2010-11-07 10:37:32

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: [SOLVED] mplayer not keeping mkv aspect ratios

There was a bug in mplayer for a short time. It's possible the current mplayer in Arch is exactly that buggy version. Try mplayer-svn from AUR.

Offline

#3 2010-11-07 20:54:30

skystrife
Member
Registered: 2010-09-13
Posts: 8

Re: [SOLVED] mplayer not keeping mkv aspect ratios

Ha, that did indeed fix it. Thanks for the heads up!

Offline

Board footer

Powered by FluxBB