Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple usage example? #6

Open
Stefan2142 opened this issue Dec 25, 2018 · 8 comments
Open

Simple usage example? #6

Stefan2142 opened this issue Dec 25, 2018 · 8 comments

Comments

@Stefan2142
Copy link

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!

@Francesco149
Copy link
Owner

Francesco149 commented Dec 25, 2018

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

@Stefan2142
Copy link
Author

Stefan2142 commented Dec 26, 2018

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

@AndroidDeveloperLB
Copy link

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) ?

@Francesco149
Copy link
Owner

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

@relitt
Copy link

relitt commented Jan 3, 2019

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

@Francesco149
Copy link
Owner

@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

@afrolovs
Copy link

afrolovs commented Jan 5, 2019

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?

@Francesco149
Copy link
Owner

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants