video aspect ration wrong on non-square pixel display

Bug #105231 reported by Ken Velarde
6
Affects Status Importance Assigned to Milestone
xine-lib (Ubuntu)
Fix Released
Undecided
James Hall

Bug Description

On my display running at 1600x1200 (330 x 210 mm, 123x145 dpi), playing a 640x480 WMV file using xine, gxine, or totem-xine results in the output window having the wrong aspect ratio. I believe I have tracked this down to line 80 in xine-lib-1.1.4/src/xine-engine/vo_scale.c:

  this->video_pixel_aspect = desired_ratio / image_ratio;

should be

   this->video_pixel_aspect = desired_ratio / image_ratio * this->gui_pixel_aspect;

If I make this change videos have the correct aspect ratio.

Mplayer and totem-gstreamer appear to display the correct aspect ratio.

Revision history for this message
James Hall (james-hall-01) wrote :

Thank you very much for reporting this bug. Looking at the xine website I can see that they have a suggestion for fixing this type of bug which can be found here: http://xinehq.de/index.php/faq#ASPECTRATIO . Could you please try that solution, feel free to ask if you need any help.

Changed in xine-lib:
assignee: nobody → james-hall-01
status: Unconfirmed → Needs Info
Revision history for this message
Ken Velarde (kvelarde) wrote :

Thanks for the prompt reply. I had already tried this and even attempted to enter the incorrect values to force the display to have square pixels. Unfortuantely, either the i810 driver or Xorg 7.2 (I'm using fiesty) overrides whatever I enter for the DIsplaySize. The good news is the screen resolution as reported by xdpyinfo is correct.

Given the formula for computing the video_pixel_aspect, I don't see how this could EVER be correct unless you account for the aspect ratio of the actual display device.

Revision history for this message
Ken Velarde (kvelarde) wrote :

OK, I now realize this is NOT a bug. In fact other players get this wrong. I tested with a known pattern (circles and squares) and they look correct no matter what I set my monitor resolution to.

Revision history for this message
CNBorn (cnborn) wrote :

I upgraded my Breezy to Dapper. gxine in Dapper can not play media file in correct aspect ration while gxine in Breezy works fantastic.
Mplayer also have this problem, but it can be fixed. Just add

noaspect = yes
monitoraspect=16:10

into ~/.mplayer/config , then its ok.
My Screen: 14' Widscreen, 1280x768

There seems no way to fix it in gxine...

Revision history for this message
J. Austin Rodriguez (jeanaustinr) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. We are sorry that we do not always have the capacity to look at all reported bugs in a timely manner. There have been many changes in Ubuntu since that time you reported the bug and your problem may have been fixed with some of the updates. If you could test the current Ubuntu development version, this would help us a lot. If you can test it, and it is still an issue, we would appreciate if you could upload updated logs by running apport-collect <bug #>, and any other logs that are relevant for this particular issue.

Changed in xine-lib (Ubuntu):
status: Incomplete → Invalid
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.