aboutsummaryrefslogtreecommitdiffstats
path: root/doc/outdevs.texi
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-27 23:45:14 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-27 23:45:22 +0100
commitc94ed2a729649f614dc433032b3b3ca189057644 (patch)
tree60aba0aaf5da0547d85e06855eb8f621e66fc753 /doc/outdevs.texi
parent673ce8e46ae229c0f1c72fc9a48ce16dd360e3ab (diff)
parentded6b3af41cd5d41f4df728ced4b194cf0426105 (diff)
downloadffmpeg-c94ed2a729649f614dc433032b3b3ca189057644.tar.gz
Merge remote-tracking branch 'lukaszmluki/master'
* lukaszmluki/master: lavd: add opengl device lavd: add avdevice_dev_to_app_control_message API lavd: add avdevice_app_to_dev_control_message API Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'doc/outdevs.texi')
-rw-r--r--doc/outdevs.texi35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/outdevs.texi b/doc/outdevs.texi
index a204f3264a..d2ccef216a 100644
--- a/doc/outdevs.texi
+++ b/doc/outdevs.texi
@@ -149,6 +149,41 @@ ffmpeg -re -i INPUT -vcodec rawvideo -pix_fmt bgra -f fbdev /dev/fb0
See also @url{http://linux-fbdev.sourceforge.net/}, and fbset(1).
+@section opengl
+OpenGL output device.
+
+To enable this output device you need to configure FFmpeg with @code{--enable-opengl}.
+
+Device allows to render to OpenGL context.
+Context may be provided by application or default SDL window is created.
+
+When device renders to external context, application must implement handlers for following messages:
+@code{AV_CTL_MESSAGE_CREATE_WINDOW_BUFFER} - create OpenGL context on current thread.
+@code{AV_CTL_MESSAGE_PREPARE_WINDOW_BUFFER} - make OpenGL context current.
+@code{AV_CTL_MESSAGE_DISPLAY_WINDOW_BUFFER} - swap buffers.
+@code{AV_CTL_MESSAGE_DESTROY_WINDOW_BUFFER} - destroy OpenGL context.
+Application is also required to inform a device about current resolution by sending @code{AV_DEVICE_WINDOW_RESIZED} message.
+
+@subsection Options
+@table @option
+
+@item background
+Set background color. Black is a default.
+@item no_window
+Disables default SDL window when set to non-zero value.
+Application must provide OpenGL context and both @code{window_size_cb} and @code{window_swap_buffers_cb} callbacks when set.
+@item window_title
+Set the SDL window title, if not specified default to the filename specified for the output device.
+Ignored when @option{no_window} is set.
+
+@end table
+
+@subsection Examples
+Play a file on SDL window using OpenGL rendering:
+@example
+ffmpeg -i INPUT -f opengl "window title"
+@end example
+
@section oss
OSS (Open Sound System) output device.