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

Didn't work on Ubuntu 20.04 #413

Closed
jalenzz opened this issue Jan 3, 2023 · 19 comments · Fixed by #418
Closed

Didn't work on Ubuntu 20.04 #413

jalenzz opened this issue Jan 3, 2023 · 19 comments · Fixed by #418

Comments

@jalenzz
Copy link

jalenzz commented Jan 3, 2023

Hello, uosc dit not work on my computer, other scripts can work well, but uosc not.

I install it follow the step in README, I think it right, but nothing happen, it dosen't display anything when I open an video.

What should I do?

@po5
Copy link
Contributor

po5 commented Jan 4, 2023

What is your mpv version? Did you set osc=no?

@jalenzz
Copy link
Author

jalenzz commented Jan 5, 2023

@po5 Yes, I set osc=no, When I open a video, there is nothing display, no osc, no uosc.

image

@jalenzz
Copy link
Author

jalenzz commented Jan 5, 2023

My mpv.conf

# required so that the 2 UIs don't fight each other
osc=no
# uosc provides its own seeking/volume indicators, so you also don't need this
osd-bar=no
# uosc will draw its own window controls if you disable window border
border=no

And mpv config directory
image

@christoph-heinrich
Copy link
Contributor

If it doesn't show anything, it might have crashed somehow. Do you see an error in the console?

@jalenzz
Copy link
Author

jalenzz commented Jan 5, 2023

Thanks, I try to use console.

[uosc] 
[uosc] stack traceback:
[uosc] 	/home/jalen/.config/mpv/scripts/uosc.lua:552: in function 'prop'
[uosc] 	mp.defaults:392: in function 'handler'
[uosc] 	mp.defaults:486: in function 'call_event_handlers'
[uosc] 	mp.defaults:520: in function 'dispatch_events'
[uosc] 	mp.defaults:479: in function <mp.defaults:478>
[uosc] 	[C]: in ?
[uosc] 	[C]: in ?
[uosc] Lua error: /home/jalen/.config/mpv/scripts/uosc.lua:552: attempt to index local 'mouse' (a nil value)
[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
 (+) Video --vid=1 (h264 1920x756 23.976fps)
 (+) Audio --aid=1 (aac 2ch 44100Hz)
mesa: for the --simplifycfg-sink-common option: may only occur zero or one times!
mesa: for the --global-isel-abort option: may only occur zero or one times!
mesa: for the --amdgpu-atomic-optimizations option: may only occur zero or one times!
Using hardware decoding (vaapi).

@christoph-heinrich
Copy link
Contributor

I've made a PR that should fix it for you.

@jalenzz
Copy link
Author

jalenzz commented Jan 5, 2023

I've made a PR that should fix it for you.

thanks for that😆

@jalenzz
Copy link
Author

jalenzz commented Jan 6, 2023

@christoph-heinrich sorry, there is a new problem

[uosc] Lua error: /home/jalen/.config/mpv/scripts/uosc_shared/lib/utils.lua:520: attempt to call global 'thumbnail_render' (a nil value)

@tomasklaen
Copy link
Owner

There's no reference to thumbnail_render in uosc_shared/lib/utils.lua. What is going on here? o.O

@christoph-heinrich
Copy link
Contributor

There is no reference to thumbnail_render in the whole project, nor can I find any place where something like it might be concatenated.

Let's make sure you're using all files from current master without any potential leftovers.
Can you please delete uosc.lua and uosc_shared/ and then download current master and use the files from that?

@christoph-heinrich
Copy link
Contributor

@jalenzz I just realized you're using files from #353. Please use files from master branch only.

@jalenzz
Copy link
Author

jalenzz commented Jan 6, 2023

thanks, that's solved, but it still did't work, display nothing.
image

[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing
[ffmpeg/video] h264: non-existing SPS 0 referenced in buffering period
[ffmpeg/video] h264: SPS unavailable in decode_picture_timing

@jalenzz
Copy link
Author

jalenzz commented Jan 6, 2023

@jalenzz I just realized you're using files from #353. Please use files from master branch only.

I directly git clone https://github.com/tomasklaen/uosc.git, but still have the problem #413 (comment)

@christoph-heinrich
Copy link
Contributor

christoph-heinrich commented Jan 6, 2023

display nothing

What exactly do you mean with that?

If the video is not showing, that's not a problem with uosc anymore.
That could be a problem with your config, mpv, drivers...
A good first step is to try running mpv with --no-config and see if the problem still exists. If it doesn't then you'll need to find out which part of your config is causing the problem.

If you think you found a problem with mpv itself, or if you need help troubleshooting you should open an issue over in https://github.com/mpv-player/mpv/issues or ask in their IRC. In both cases you'll need to provide a log file created with --log-file=.

@jalenzz
Copy link
Author

jalenzz commented Jan 6, 2023

I'm sorry for my unclear description.
This video can be played normally, but the uosc didn't show.
I run with --log-file log.txt

@christoph-heinrich
Copy link
Contributor

I don't see anything related to uosc_shared in there, so maybe it's failing to load that? According to your previous error message it must have been able to load that, so I don't know what's going on here.
Is your directory structure still like it was in #413 (comment)?

@jalenzz
Copy link
Author

jalenzz commented Jan 7, 2023

Yes, it's still like it was in #413 (comment)

@christoph-heinrich
Copy link
Contributor

If it's not something with your configuration then I have no idea what could be the problem.

If you want to be 100% sure that your config is not the problem, I've made a minimal test configuration.
Simply unpack the folder inside somewhere and then run mpv --config-dir=<path to folder>/test-config.

@jalenzz
Copy link
Author

jalenzz commented Jan 7, 2023

I try that, but still, uosc didn't show 😭

I gave up, but sincerely thanks to you!

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

Successfully merging a pull request may close this issue.

4 participants