u8sand / Baka-MPlayer

The libmpv based media player
https://u8sand.github.io/Baka-MPlayer/
GNU General Public License v2.0
433 stars 93 forks source link

Baka-Mplayer doesn't show image after Qt5 update #221

Closed ghost closed 8 years ago

ghost commented 8 years ago

After upgrading my system to Qt 5.7 and setting things up to look ok, I run into this problem. After deleting Baka-Mplayer.ini file in ~/.config the color changed to this. I even tried uninstalling and reinstalling but to no avail.

Audio works fine, default mpv works fine. VLC also seems to work fine.

EDIT: This happens only when Qt5 Style is set to "gtk2" through qt5ct.

I'm on Manjaro XFCE with Compiz and Emerald decorator.

Any ideas?

u8sand commented 8 years ago

Very strange, I believe I'm on qt 5.7 as well but I'm not experiencing this. Was baka recompiled after the update? Sometimes that has implications.

On Jul 29, 2016 8:42 AM, "GrandGamer" notifications@github.com wrote:

After upgrading my system to Qt 5.7 and setting things up to look ok, I run into this problem http://i.imgur.com/FHtsWqe.png. After deleting Baka-Mplayer.ini file in ~/.config the color changed to this http://i.imgur.com/5n6CGOb.png. I even tried uninstalling and reinstalling but to no avail.

Audio works fine, default mpv works fine. VLC also seems to work fine.

Any ideas as to why this may be happening?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/u8sand/Baka-MPlayer/issues/221, or mute the thread https://github.com/notifications/unsubscribe-auth/ABR5pcIp94WBsTCgEO-pnw3TxTTUnq9mks5qafUSgaJpZM4JYJ3e .

ghost commented 8 years ago

It wasn't and as I mentioned in my original post edit, it only occurs with gtk2 style in qt5ct.

xsmile commented 8 years ago

Same issue here with Arch Linux and baka-mplayer 2.0.4-2.

Exporting QT_QPA_PLATFORMTHEME=qt5ct and setting the gtk2 style in the Qt5 Configuration Tool qt5ct seems to be the trigger.

I noticed that the video is visible if hardware acceleration via vdpau is used instead of vaapi.

EDIT: Using baka-mplayer-git from the AUR did not help.

ghost commented 8 years ago

This doesn't seem to be working for me or I'm doing something wrong. How do you choose to use vdpau on Baka-Mplayer?

xsmile commented 8 years ago

@GrandGamer:

See https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Installing_VA-API for details. Also install libvdpau-va-gl as the backend for vaapi.

Afterwards you have to edit the file ~/.config/bakamplayer.ini and set the hwdec and vo options:

    "mpv": {
        "hwdec": "vdpau",
        [...]
        "vo": "vdpau",
    },
ghost commented 8 years ago

That worked like a charm, thank you!