mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
27.89k stars 2.87k forks source link

Image renders black when resolution is same as the geometry #6539

Closed lionep closed 4 years ago

lionep commented 5 years ago

mpv version and platform

Version mpv git-2019-02-24-5370069 from mc3man mpv-tests respository Platform : ubuntu 16.04 on Intel NUC6CAYH

Reproduction steps

Open an image (png or jpg) with a window geometry at the exact resolution of the image :

mpv --no-border --geometry=1920x1000+0+0 image_1920x1000.png

This also occurs if the image resolution is the same as the exact display resolution and running with --fullscreen option. EDIT : It seems it occurs also when the geometry has the same scale of the image (960x500 for a content at 1920x1000)

This is not reproduced on Ubuntu 18.04 with same mpv version.

Expected behavior

The image should be rendered in the box defined by geometry param.

Actual behavior

A black window at the size of the geometry box is displayed, and at the top left of the box, a piece of the image that should be displayed.

Log file

Log file

Sample files

Sample file used in command

zc62 commented 5 years ago

Isn't this a compositor bug? What happens if you use feh to view the image with the same geometry specified?

lionep commented 5 years ago

Just had a try, I do not reproduce with feh, with or without geometry option.

mc4man commented 5 years ago

Can not reproduce with 16.04.6 using compiz, works fine with your sample command & file. Tried with both Intel & Nvidia drivers

zc62 commented 5 years ago

Is this reproduced with xfwm4 on Ubuntu 16.04? Since you said xfwm4 solved your other issue.

lionep commented 5 years ago

I couldn't test on ubuntu 16.04 + xfwm4, but it's reproduced on 18.04 with gnome-shell, but less often (~10% of the time, vs ~90% on 16.04) with two different hardware : Intel NUC7CJYH and Intel NUC8I3BEH.

ghost commented 4 years ago

I'll just assume these are compositor bugs.