yshui / picom

A lightweight compositor for X11 with animation support
https://picom.app/
Other
4.04k stars 583 forks source link

i3 picom video background displays default picture instead #672

Open altruios opened 3 years ago

altruios commented 3 years ago

Platform

OS: Manjaro Linux x86_64 Kernel: 5.10.56-1-MANJARO Uptime: 2 hours, 6 mins Packages: 1169 (pacman) Shell: bash 5.1.8 Resolution: 3840x2160, 1080x1920 WM: i3 CPU: Intel i7-6800K (12) @ 3.800GHz GPU: NVIDIA GeForce RTX 2080 Ti Rev. A

GPU, drivers, and screen setup

name of display: :0 display: :0 screen: 0 direct rendering: Yes Memory info (GL_NVX_gpu_memory_info): Dedicated video memory: 11264 MB Total available memory: 11264 MB Currently available dedicated video memory: 10258 MB OpenGL vendor string: NVIDIA Corporation OpenGL renderer string: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2 OpenGL core profile version string: 4.6.0 NVIDIA 470.57.02 OpenGL core profile shading language version string: 4.60 NVIDIA OpenGL core profile context flags: (none) OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 470.57.02 OpenGL shading language version string: 4.60 NVIDIA OpenGL context flags: (none) OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 470.57.02 OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

Environment

using i3 and mplayer to render some mp4 videos in the background

picom version

Diagnostics vgit-dac85 **Version:** vgit-dac85 ### Extensions: * Shape: Yes * XRandR: Yes * Present: Present ### Misc: * Use Overlay: Yes* Config file used: /home/altruios/.config/picom/picom.conf ### Drivers (inaccurate): NVIDIA

Configuration:

Configuration file ``` // Paste your configuration here ``` only changes were opacity down from 1.0 to .95 on active windows

Steps of reproduction

I'm running the following script to display a movie as the desktop.

#!/bin/bash
mplayer  -loop 0 -rootwin -ao null -vo x11 -noconsolecontrols /home/user/video.mp4

this runs fine on my 2 monitor setup (it plays in one window)

however problems happen with i start picom with this script running

Expected behavior

video is visible behind windows

Current Behavior

a default wallpaper is shown instead

Stack trace

Other details

is there a better way to have an animated wallpaper with mp4 or gif that would work with picom?

tryone144 commented 3 years ago

If I understand correctly, this is not directly possible due to the nature of a compositor. (Both applications would race about drawing to the root window.) See https://github.com/chjj/compton/issues/253, https://github.com/chjj/compton/issues/226 for a more in depth explanation and possible workaround using xwinwrap (ArchWiki). You can try if the following works:

$ xwinwrap -ov -fs -- mplayer -wid WID -loop 0 -ao null -vo x11 -noconsolecontrols /home/user/video.mp4
altruios commented 3 years ago

Fantastic! Thank you for the info: Will look into it: it’s a deep dive but eventually I just want to get a shader running as the background, and have pic on work on top of it... when I get something working I’ll get a how-to guide out there and hopefully it would be too much of a headache :)

Sent from my iPhone

On Aug 16, 2021, at 7:50 AM, Bernd Busse @.***> wrote:

 If I understand correctly, this is not directly possible due to the nature of a compositor. (Both applications would race about drawing to the root window.) See chjj/compton#253, chjj/compton#226 for a more in depth explanation and possible workaround using xwinwrap (ArchWiki). You can try if the following works:

$ xwinwrap -ov -fs -- mplayer -wid WID -loop 0 -ao null -vo x11 -noconsolecontrols /home/user/video.mp4 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.