Hello, attached small patch enabled MPlayer to play widescreen videos (aspect ratio of 16:9). This is pretty useful when you want to play widescreen DVDs with MPlayer ;) The patch adds -widescreen cmd line option and changes mplayer.c so that it passes altered desired screen height to the video driver. Some drivers follow d_height hint, some don't. Windowed modes work just fine with -widescreen, some fullscreen ones do, some don't (I had to modify Xv driver, which I use). Hope you'll find this useful... Regards, Vaclav Slavik
On Sun, 29 Jul 2001, Vaclav Slavik wrote:
attached small patch enabled MPlayer to play widescreen videos (aspect ratio of 16:9). This is pretty useful when you want to play widescreen DVDs with MPlayer ;)
The patch adds -widescreen cmd line option and changes mplayer.c so that it passes altered desired screen height to the video driver. Some drivers follow d_height hint, some don't. Windowed modes work just fine with -widescreen, some fullscreen ones do, some don't (I had to modify Xv driver, which I use).
Hi Vaclav, I've previously submitted a somewhat similar patch. Mine went a little further to also correct the minor non-square pixel ratios of ordinary digital video (ie 720x576 should be stretched to 768x576). And it picks up the aspect tag from vobs automatically. Developers - do you want this patch again? I seem to remember a view that the code should be factored into the libvo2 stuff coming etc. But in the meantime it fixes a problem, and getting it into the CVS would stop people wasting time reimplementing it... Also - my patch for files >4GB? It looks like the idea to do a release has been abandoned, and this change is a lot more minor than others going in. This change has also been re-implemented by someone else in the meantime. Regards, Steve _______________________________________________ Mplayer-dev-eng mailing list Mplayer-dev-eng@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
Hi,
Developers - do you want this patch again? I seem to remember a view that the code should be factored into the libvo2 stuff coming etc. But in the meantime it fixes a problem, and getting it into the CVS would stop people wasting time reimplementing it...
i don't like hacking libvo more... libvo2 is almost working, i think at end of this week we'll change to it. it will have a plain interface for doing such things. aspect ratio stfuf is very difficult, if you want to do it well. 1. get image dimensions 2. get requested aspect ration (from mpeg header, or -aspect switch) 3. call libvo2. it will ask screen aspect ratio from the driver, and calc final resizing parameters.
Also - my patch for files >4GB? It looks like the idea to do a release has been abandoned, and this change is a lot more minor than others going in. This change has also been re-implemented by someone else in the meantime.
I sent a mail about this some weeks ago. i want to apply this, but i ask something: change printf() lines to use 32bit numbers. they all are for debugging purpose, nobody wants to see 64bit integers there. (so, cast to (unsigned int), instead of (long long)) A'rpi / Astral & ESP-team -- mailto:arpi@thot.banki.hu http://esp-team.scene.hu _______________________________________________ Mplayer-dev-eng mailing list Mplayer-dev-eng@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
participants (3)
-
Arpi -
Stephen Davies -
Vaclav Slavik