From 11ed093182f29c796ba6fd08f6c5c80e8fdb9349 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 20 Oct 2012 23:32:45 +0200 Subject: screenshot: allow taking screenshots with subtitles This adds a new screenshot mode "subtitles", which basically takes the video frame as decoded, and renders subtitles into it. This may fail for some pixel formats, because libswscale sucks. If this becomes ever a real problem, the code could be changed to convert the image to RGBA first (or whatever the image writer wants), and then render the subtitles into it. This would avoid the additional image copy needed with vo_xv too. But for now, it seems better to go with the current method in the common case: vo_opengl creates an image copy anyway, and drawing bitmaps to yv12 is better, as no color space conversion is involved in draw_bmp.c's up/downsampling conversion. --- DOCS/man/en/input.rst | 3 +++ 1 file changed, 3 insertions(+) (limited to 'DOCS') diff --git a/DOCS/man/en/input.rst b/DOCS/man/en/input.rst index 74c4929684..63593c53ca 100644 --- a/DOCS/man/en/input.rst +++ b/DOCS/man/en/input.rst @@ -104,6 +104,9 @@ screenshot [single|each-frame] [video|window] Save the video image, in its original resolution. Typically without OSD or subtitles, but the exact behavior depends on the selected video output. + + Like ``video``, but add subtitles. Some video outputs may still include + the OSD in the output under certain circumstances. Save the contents of the mplayer window. Typically scaled, with OSD and subtitles. The exact behavior depends on the selected video output, and -- cgit v1.2.3