mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.02k stars 2.88k forks source link

Subtitle glitches #762

Closed levaidaniel closed 10 years ago

levaidaniel commented 10 years ago

I've attached some pictures of recurring subtitle glitches. Here is the config that I'm using for mpv:

[default]                                                                                                            
osd-font= /usr/share/fonts/TTF/LiberationSans-Regular.ttf
sub-text-font= /usr/share/fonts/TTF/LiberationSans-Regular.ttf
osd-back-color='#90000000'
sub-text-back-color='#90000000'
vo=xv,opengl
vf=pp=fast

I have freetype-2.5.0.1, libass-0.10.2 and the latest mpv from git. spectrwm_capture_2014-05-03t13 11 21 spectrwm_capture_2014-05-03t13 11 30 spectrwm_capture_2014-05-03t13 11 58

ghost commented 10 years ago

Try with the latest libass release.

ghost commented 10 years ago

Btw., to explain: mpv doesn't render subtitles. libass does. Though to get the background drawn, a semi-deprecated ASS feature is used, so it's not always glitch free. The latest release should some of these have fixed, though.

vo=xv,opengl
vf=pp=fast

Also... what. This looks a bit like a pre-historic setup.

levaidaniel commented 10 years ago

Nice, the new libass fixed these, thanks!

What do you mean by that it's pre-historic?

ghost commented 10 years ago

What do you mean by that it's pre-historic?

xv and pp are both prehistoric things. pp might have helped a little on really low resolution (postage stamp-sized) video, but even then not much. opengl or vdpau are preferable over xv.

levaidaniel commented 10 years ago

Right. I don't have vdpau, and xv gives much better performance here than the opengl output. As for the pp, I don't know much about these, got them from the manual. Maybe it's just placebo.

ghost commented 10 years ago

Maybe it's just placebo.

In case of pp, definitely. It was made for low-res xvid garbage (think early 2000s), not modern video.

ghost commented 10 years ago

PS: what GPU and graphics drivers are you using? Just interested why xv would still be significantly better than opengl.

levaidaniel commented 10 years ago

Now that is good to know. My mpv config was inherited from my mplayer config, which I started to use somewhere around the turn of the millenium :)

Xorg.log says RADEON(0): Chipset: "ATI Radeon HD 3300 Graphics" (ChipID = 0x9614) with the radeon driver. KMS and games work just fine (altough some are sluggish), and while using it with opengl with HD movies, one CPU core just burns and the video frequently lags behind audio, before it catches up with high-speed.

levaidaniel commented 10 years ago

Oh, and mpv tells me this with -vo opengl, I don't know if this is relevant:

[vo/opengl/x11] X11 error: GLXBadFBConfig
[vo/opengl] Could not create GL3 context. Retrying with legacy context.