mpv-player / mpv

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

Subtitles display outside of video frame. #1934

Closed iamevn closed 9 years ago

iamevn commented 9 years ago

Parts of the subtitles display in the black bars that mpv adds when you resize to an aspect ratio different from the video's aspect ratio. Without a \clip tag on the line it displays as expected but if the \clip goes outside of the video's frame then this happens: mpv: 1 2 expected: 1 2 test.mkv - just 5 seconds of blue at 720x200 test.ass - {\an5\frz45\p1\clip(-80,-100,800,300)}m 0 0 l 600 0 600 600 0 600

I can't reproduce this on my linux machine, mpv displays it as expected there. On my roommate's mac, this issue is present.

AirPort commented 9 years ago

Os X here, can't reproduce. mpv seems to plays it properly like in your reference images: http://a.pomf.se/wcfpgc.png

ghost commented 9 years ago

I'm not seeing it clipped either.

Pretty sure this is a libass issue.

I can't reproduce this on my linux machine,

Is it running vo_xv?

iamevn commented 9 years ago

Is it running vo_xv?

Yeah, it is. I managed to reproduce this by switching vo to opengl or opengl-hq on linux. No matter which video output I choose on Windows (opengl, direct3d_shaders, direct3d, opengl-hq) I get this behavior.

ghost commented 9 years ago

That explains it; vo_xv doesn't support rendering anything into the black borders at all. It doesn't explain @AirPort's observation though.

AirPort commented 9 years ago

Sorry, my fault: I didn't remeber I specified blend-subtitles in my conf. I made some other test and without that option the problem is showing here too.

ghost commented 9 years ago

I made a libass bug report (see above).

ghost commented 9 years ago

And further discussion should go there too. Closing.