-
Notifications
You must be signed in to change notification settings - Fork 20
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
Sometimes subtitles are not visible/video stutters #12
Comments
Does it happen in other WM? |
Number 1 happens only in KDE, there is no such issue in LXDE. Number 2 happens both in KDE and LXDE. |
|
|
Can't reproduce, so there's nothing I can help you with besides as I've said previously - try another composite manager. |
Stuttering is rather subtle, and can be clearly seen only in dynamic scenes, maybe you are just not noticing it? I tried kwin manager in KDE and compton composite manager in LXDE. Both have stuttering. Just tried xcompmgr, small stuttering remains. Missing subtitles only with kwin. |
Maybe try xcompmgr. Idk. Because your description suggest that your composite manager can't handle it. Try changing rendering backend. Believe me, if there was some stuttering at my system, I would've noticed. p.s. |
By the way in KDE when "extend_subs_duration2max_B = False" there are no problems with missing subtitles, only when "extend_subs_duration2max_B = True". This is very strange. Anyway, thanks for your help and very useful software! |
I solved stuttering by changing video output in mpv from vdpau to gpu (mpv -vo gpu). Problem with missing subtitles when extended duration in kde still remains. |
As I've suggested in previous message, have you tried changing rendering backend at kwin? |
Yes, I tried all, xrender, OpenGL 2, OpenGL 3.1, disabling vsync, no effect. I just disabled extended duration, this is not so important. I can switch to openbox+compton instead of kwin while running KDE, then I don't have missing subtitles, kind of a solution, but I don't see the point to do so. I stay with kwin and without extended duration for now. Maybe I'll find a solution with time other then switching from kwin to something else. |
Solved missing subtitles with extended duration by adding small delay "time.sleep(0.1)" in "def render_subtitles" after the line "self.clearLayout('subs2')" (line 1452 in current version). |
Strange. But since it works for you - good. |
It seems to me that self.clearLayout without delay was applying right after new subtitle appears. Maybe it is too slow (if kwin is used) or called a little later then necessary for some reason. Short (few words) subtitles where missing much more often, maybe because they are faster to render and they are rendered before self.clearLayout apply? At least that is what I thought when I added this line. I haven't understood the logic of the program completely yet. Sleep(0.01) work just fine too. Thank you. |
Sometimes every second or third (I haven't really noticed any system) subtitle is not displaying (or invisible to be exact, since I can translate "invisible" words with cursor over them) if "extend_subs_duration2max_B = True". Such "invisible" subtitles appear for a fraction of second and then become invisible.
Video stutters a little on subtitle change, but this is noticable and quete annoying.
System: ArchLinux, Python 3.7.1, KDE plasma 5.14.2
The text was updated successfully, but these errors were encountered: