sdl


SDL (Simple DirectMedia Layer) output device.

This output device allows one to show a video stream in an SDL window. Only one SDL window is allowed per application, so you can have only one instance of this output device in an application.

To enable this output device you need libsdl installed on your system when configuring your build.

For more information about SDL, check:

'window_title'

Set the SDL window title, if not specified default to the filename specified for the output device.

'icon_title'

Set the name of the iconified SDL window, if not specified it is set to the same value of window_title.

'window_size'

Set the SDL window size, can be a string of the form widthxheight or a video size abbreviation. If not specified it defaults to the size of the input video, downscaled according to the aspect ratio.

'window_x'
'window_y'

Set the position of the window on the screen.

'window_fullscreen'

Set fullscreen mode when non-zero value is provided. Default value is zero.

'window_enable_quit'

Enable quit action (using window button or keyboard key) when non-zero value is provided. Default value is 1 (enable quit action)

The window created by the device can be controlled through the following interactive commands.

<q, ESC>

Quit the device immediately.

The following command shows the ffmpeg output is an SDL window, forcing its size to the qcif format:

ffmpeg -i INPUT -c:v rawvideo -pix_fmt yuv420p -window_size qcif -f sdl "SDL output"