Re: mplayer 1.4.0 release

Alexander Strasser <[email protected]>
Newsgroups gmane.comp.video.mplayer.devel
Message-ID <[email protected]>
Hi!

On 2019-04-09 22:55 +0200, Erik Auerswald wrote:
> On Tue, Apr 09, 2019 at 01:03:20AM +0200, Alexander Strasser wrote:
> > On 2019-04-06 23:28 +0200, Erik Auerswald wrote:
[...]
> > >
> > > More data points:
> > >
> > > - Fullscreen black borders work with current SVN without an external
> > >   monitor connected (Ubuntu 18.04).
> > >
> > > - Maximising the video image results in wrong image content instead
> > >   of black bars with current SVN (all tested systems and
> > >   configurations).
> >
> > It's a regression since r33522 (May 2011)
> >
> > I suspect a debugging modification sneaked in. If I make the
> > following change, borders look fine again:
> >
> > --- a/libvo/vo_xv.c
> > +++ b/libvo/vo_xv.c
> > @@ -139,7 +139,7 @@ static void deallocate_xvimage(int foo);
> >  static void resize(void)
> >  {
> >      calc_src_dst_rects(image_width, image_height, &src_rect, &dst_rect, NULL, NULL);
> > -//    vo_x11_clearwindow_part(mDisplay, vo_window, dst_rect.width, dst_rect.height, vo_fs);
> > +    vo_x11_clearwindow_part(mDisplay, vo_window, dst_rect.width, dst_rect.height, vo_fs);
> >      vo_xv_draw_colorkey(dst_rect.left, dst_rect.top, dst_rect.width, dst_rect.height);
> >  }
>
> I have just tested this,

  Thanks for testing!


> it does improve the situation, but it is not
> yet completely correct.

  What do you mean by "not yet completely correct"?


> The problem occurs only when the window aspect does not match the movie
> aspect (otherwise no black bars would be needed).
>
> The problem seems to primarily occur when the MPlayer window aspect
> changes. For example, one video with the same vertical resolution as my
> screen (1080 on the build-in laptop screen of the Ubuntu 18.04 machine)
> will show wrong image content on the sides in window mode. I think
> MPlayer will try to open a window with vertical size 1080, which is
> prevented by Gnome. The result is a window of the original horizontal
> size, but reduced vertical size, needing black bars on the right and
> left sides. Those are not drawn. Using -vo gl or -vo gl2 works fine,
> i.e. the needed black borders are drawn.
>
> MPlayer prints:
>
>     Movie-Aspect is 1.34:1 - prescaling to correct movie aspect.
>     VO: [xv] 1444x1080 => 1444x1080 Planar YV12
>
> The window geometry is:
>
>     xwininfo: Window id: 0x2e00001 "MPlayer"
>     [...]
>     -geometry 1444x1023+103-0
>
> This happens easily while resizing for example on Ubuntu 14.04 with
> Unity, which allows arbitrary window aspects when manually resizing. It
> happens on both Ubuntu 14.04 with Unity and Ubuntu 18.04 with Gnome when
> maximizing a window, because the top bar and the panel on the side of
> the desktop result in window aspect ratio changes in regard to fullscreen
> or initial window aspect ratios.
>
> Another info point: the commented out call to vo_x11_clearwindow_part()
> in libvo/vo_xv.c is present in the Ubuntu 18.04 version of MPlayer 1.3.0,
> but that version does not exhibit said problems. (I have checked the
> .orig.tar.xz and the patches applied during the build process, but have
> not build the package from its sources.) This seems to be something else.

  Seems like a (partially) different problem then. Unfortunately I
can't invest more time into this. So if no one else finds out before,
it will not be fixed in the release.


  Alexander
_______________________________________________
MPlayer-dev-eng mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-dev-eng
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.