Open Stefan2142 opened 5 years ago
if you have both wp and mpv installed you should be able to do, from a powershell or cmd window
wp run mpv --terminal=no --loop=inf "C:\some_video.mp4"
wp add --wait --fullscreen --class mpv
if it can't start mpv and you're not familiar with editing environment variables to get mpv in your PATH you can just copy the mpv executable to wp's folder
you can then run this automatically at boot by creating a .bat file in your autorun folder
to open your autorun folder, do WIN+R (or go to start and click run...) and type shell:startup
then press enter
now you can create a .bat file here containing exactly the commands you just executed
wp run mpv --terminal=no --loop=inf "C:\some_video.mp4"
wp add --wait --fullscreen --class mpv
save it and reboot to test
It works. I have everything set up but just couldnt figure out the order of commnads. Thanks a lot for this!!! I would just add these two lines at the end (when user doesnt want to use it anymore): taskkill /im mpv.exe /f
and "wp killall
for killing the process of them two
Is there an easy way to closing it? And to play without sound? Does it take CPU while it's not visibly shown (meaning when some window takes full screen, for example) ?
mpv --list-options
shows you all the possible options you can pass to mpv
to play with no audio you would pass --audio=no
it will always take some cpu but mpv is a very lightweight player. I'm not sure if it actually renders offscreen but i doubt it cause i can play games with it running and it doesn't affect performance. I'd worry more about memory usage if you're on a very low-end machine.
to kill captured windows you can use wp killall -i 0
, or read the output of wp
to learn about more specific ways to list and kill captured windows. you can also of course kill the mpv process from task manager
Can you tell me how to put an application with which you can interact, for example, a Unity game. https://camo.githubusercontent.com/96c70d8eed37cbe206533810421020fed2e0d399/68747470733a2f2f692e696d6775722e636f6d2f487179317558322e676966 like this
@tewarami there's an example in the readme with chrome, you would just instruct to wp match the correct window title or class
https://github.com/Francesco149/weebp#recipe-automatic-wallpaper-set-up
anyway I'll close this issue when I add more basic examples to README
Hello! I wanted to use your program to put a website with notes (for example, milanote) on the desktop, but the "browser on desktop" does not accept any input from the keyboard or mouse. Any ideas?
@theonlytsar that's not supported. at the moment it only passes through cursor movement (but not clicks). if i were to add keyboard support it would be tricky to have a simple way to switch focus to the captured window
Hey, thanks for making this but im struggling on how to run it. Can you provide a simple usage guideline with using mpv and wp? Thanks!