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

Failed to load stream on v0.8.0.0 #13

Closed
twosheep0603 opened this issue Feb 9, 2020 · 5 comments
Closed

Failed to load stream on v0.8.0.0 #13

twosheep0603 opened this issue Feb 9, 2020 · 5 comments

Comments

@twosheep0603
Copy link

twosheep0603 commented Feb 9, 2020

mpv and youtube-dl are installed correctly, but still show this error message box immediately.
I'd tried restart the system but nothing helps.
Try to follow the instruction but there's hardly to find the method about adjusting waiting time in wiki.

Screenshot for the message box :
The wallpaper is taking too long to start

logfile.txt (surprisingly there's empty in the Documents\Lively Wallpaper\ErrorLogs) :

2020-02-09 18:12:45.6824|INFO|livelywpf.MainWindow|Setting up wallpaper:-https://www.youtube.com/watch?v=VgXwSdJNks8
2020-02-09 18:12:45.7685|INFO|livelywpf.SetupDesktop|Error: could not get windowhandle after waiting..
2020-02-09 18:12:45.7685|INFO|livelywpf.SetupDesktop|Error: could not get windowhandle after waiting..
2020-02-09 18:12:45.7685|ERROR|livelywpf.SetupDesktop|System.InvalidOperationException: Cannot process request because the process (13504) has exited.
   at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
   at System.Diagnostics.Process.Kill()
   at livelywpf.SetupDesktop.<SetWallpaper>d__34.MoveNext()
@rocksdanister
Copy link
Owner

rocksdanister commented Feb 9, 2020

https://github.com/rocksdanister/lively/wiki/Youtube-Wallpaper

youtube-dl requires Microsoft Visual C++ 2010 to run, install it if its not working.

The error is saying that mpv.exe exited immediately without any window appearing, most likely means youtube-dl failed to fetch video information.

Open mpv.exe - try dropping a youtube video link, if it does not work then youtube-dl is failing to start & hence mpv is exiting.

@twosheep0603
Copy link
Author

Open mpv.exe - try dropping a youtube video link, if it does not work then youtube-dl is failing to start & hence mpv is exiting.

Sorry for the low-resolution gif and I think mpv.exe worked correctly.
Video_2020-02-09_193205

@rocksdanister
Copy link
Owner

rocksdanister commented Feb 9, 2020

are you trying a youtube link? try setting stream quality to Best.

also try opening mpv.exe in Type page as Other app then for arguments give :

https://www.youtube.com/watch?v=ojhjBrzmNjo --force-window=yes --loop-file --keep-open --hwdec=yes --ytdl-format bestvideo[height<=720]+bestaudio/best[height<=720]

Also to see whats happening with mpv, do the same as above but add -log-file

https://www.youtube.com/watch?v=ojhjBrzmNjo --force-window=yes --loop-file --keep-open --hwdec=yes --ytdl-format bestvideo[height<=720]+bestaudio/best[height<=720] -log-file log.txt

the file log.txt will be saved in mpv folder.

@twosheep0603
Copy link
Author

I tried opening mpv.exe as Other app with -log-file argument but nothing happend, so I wondered if there're some issues with the newest version of mpv player.
Then I reinstall the stable version (mpv-0.32.0-x86_64.7z) instead of the new one (mpv-x86_64-20200202) and it works perfectly now.
Thank you!

@rocksdanister
Copy link
Owner

Something must have changed for the arguments syntax, will update it.
For the time being recommends older version of mpv in wiki.

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

2 participants