Namely bktr, opengl and sdl2.
Unified · Split
| @@ -220,41 +220,6 @@ $ ffmpeg -f avfoundation -capture_raw_data true -i "zr100:none" out.dv · 219 unmodified lines | |||
| 220 | 220 | ||
| 221 | @end itemize | 221 | @end itemize |
| 222 | 222 | ||
| 223 | @section bktr | ||
| 224 | |||
| 225 | BSD video input device. Deprecated and will be removed - please contact | ||
| 226 | the developers if you are interested in maintaining it. | ||
| 227 | |||
| 228 | @subsection Options | ||
| 229 | |||
| 230 | @table @option | ||
| 231 | |||
| 232 | @item framerate | ||
| 233 | Set the frame rate. | ||
| 234 | |||
| 235 | @item video_size | ||
| 236 | Set the video frame size. Default is @code{vga}. | ||
| 237 | |||
| 238 | @item standard | ||
| 239 | |||
| 240 | Available values are: | ||
| 241 | @table @samp | ||
| 242 | @item pal | ||
| 243 | |||
| 244 | @item ntsc | ||
| 245 | |||
| 246 | @item secam | ||
| 247 | |||
| 248 | @item paln | ||
| 249 | |||
| 250 | @item palm | ||
| 251 | |||
| 252 | @item ntscj | ||
| 253 | |||
| 254 | @end table | ||
| 255 | |||
| 256 | @end table | ||
| 257 | |||
| 258 | @section decklink | 223 | @section decklink |
| 259 | 224 | ||
| 260 | The decklink input device provides capture capabilities for Blackmagic | 225 | The decklink input device provides capture capabilities for Blackmagic |
| @@ -301,45 +301,6 @@ ffmpeg -re -i INPUT -c:v rawvideo -pix_fmt bgra -f fbdev /dev/fb0 · 300 unmodified lines | |||
| 301 | 301 | ||
| 302 | See also @url{http://linux-fbdev.sourceforge.net/}, and fbset(1). | 302 | See also @url{http://linux-fbdev.sourceforge.net/}, and fbset(1). |
| 303 | 303 | ||
| 304 | @section opengl | ||
| 305 | OpenGL output device. Deprecated and will be removed. | ||
| 306 | |||
| 307 | To enable this output device you need to configure FFmpeg with @code{--enable-opengl}. | ||
| 308 | |||
| 309 | This output device allows one to render to OpenGL context. | ||
| 310 | Context may be provided by application or default SDL window is created. | ||
| 311 | |||
| 312 | When device renders to external context, application must implement handlers for following messages: | ||
| 313 | @code{AV_DEV_TO_APP_CREATE_WINDOW_BUFFER} - create OpenGL context on current thread. | ||
| 314 | @code{AV_DEV_TO_APP_PREPARE_WINDOW_BUFFER} - make OpenGL context current. | ||
| 315 | @code{AV_DEV_TO_APP_DISPLAY_WINDOW_BUFFER} - swap buffers. | ||
| 316 | @code{AV_DEV_TO_APP_DESTROY_WINDOW_BUFFER} - destroy OpenGL context. | ||
| 317 | Application is also required to inform a device about current resolution by sending @code{AV_APP_TO_DEV_WINDOW_SIZE} message. | ||
| 318 | |||
| 319 | @subsection Options | ||
| 320 | @table @option | ||
| 321 | |||
| 322 | @item background | ||
| 323 | Set background color. Black is a default. | ||
| 324 | @item no_window | ||
| 325 | Disables default SDL window when set to non-zero value. | ||
| 326 | Application must provide OpenGL context and both @code{window_size_cb} and @code{window_swap_buffers_cb} callbacks when set. | ||
| 327 | @item window_title | ||
| 328 | Set the SDL window title, if not specified default to the filename specified for the output device. | ||
| 329 | Ignored when @option{no_window} is set. | ||
| 330 | @item window_size | ||
| 331 | Set preferred window size, can be a string of the form widthxheight or a video size abbreviation. | ||
| 332 | If not specified it defaults to the size of the input video, downscaled according to the aspect ratio. | ||
| 333 | Mostly usable when @option{no_window} is not set. | ||
| 334 | |||
| 335 | @end table | ||
| 336 | |||
| 337 | @subsection Examples | ||
| 338 | Play a file on SDL window using OpenGL rendering: | ||
| 339 | @example | ||
| 340 | ffmpeg -i INPUT -f opengl "window title" | ||
| 341 | @end example | ||
| 342 | |||
| 343 | @section oss | 304 | @section oss |
| 344 | 305 | ||
| 345 | OSS (Open Sound System) output device. | 306 | OSS (Open Sound System) output device. |
| @@ -406,78 +367,6 @@ Play a file on default device on default server: · 60 unmodified lines | |||
| 406 | ffmpeg -i INPUT -f pulse "stream name" | 367 | ffmpeg -i INPUT -f pulse "stream name" |
| 407 | @end example | 368 | @end example |
| 408 | 369 | ||
| 409 | @section sdl | ||
| 410 | |||
| 411 | SDL (Simple DirectMedia Layer) output device. Deprecated and will be removed. | ||
| 412 | |||
| 413 | For monitoring purposes in FFmpeg, pipes and a video player such as ffplay can be used: | ||
| 414 | |||
| 415 | @example | ||
| 416 | ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay - | ||
| 417 | @end example | ||
| 418 | |||
| 419 | "sdl2" can be used as alias for "sdl". | ||
| 420 | |||
| 421 | This output device allows one to show a video stream in an SDL | ||
| 422 | window. Only one SDL window is allowed per application, so you can | ||
| 423 | have only one instance of this output device in an application. | ||
| 424 | |||
| 425 | To enable this output device you need libsdl installed on your system | ||
| 426 | when configuring your build. | ||
| 427 | |||
| 428 | For more information about SDL, check: | ||
| 429 | @url{http://www.libsdl.org/} | ||
| 430 | |||
| 431 | @subsection Options | ||
| 432 | |||
| 433 | @table @option | ||
| 434 | |||
| 435 | @item window_borderless | ||
| 436 | Set SDL window border off. | ||
| 437 | Default value is 0 (enable window border). | ||
| 438 | |||
| 439 | @item window_enable_quit | ||
| 440 | Enable quit action (using window button or keyboard key) | ||
| 441 | when non-zero value is provided. | ||
| 442 | Default value is 1 (enable quit action). | ||
| 443 | |||
| 444 | @item window_fullscreen | ||
| 445 | Set fullscreen mode when non-zero value is provided. | ||
| 446 | Default value is zero. | ||
| 447 | |||
| 448 | @item window_size | ||
| 449 | Set the SDL window size, can be a string of the form | ||
| 450 | @var{width}x@var{height} or a video size abbreviation. | ||
| 451 | If not specified it defaults to the size of the input video, | ||
| 452 | downscaled according to the aspect ratio. | ||
| 453 | |||
| 454 | @item window_title | ||
| 455 | Set the SDL window title, if not specified default to the filename | ||
| 456 | specified for the output device. | ||
| 457 | |||
| 458 | @item window_x | ||
| 459 | @item window_y | ||
| 460 | Set the position of the window on the screen. | ||
| 461 | @end table | ||
| 462 | |||
| 463 | @subsection Interactive commands | ||
| 464 | |||
| 465 | The window created by the device can be controlled through the | ||
| 466 | following interactive commands. | ||
| 467 | |||
| 468 | @table @key | ||
| 469 | @item q, ESC | ||
| 470 | Quit the device immediately. | ||
| 471 | @end table | ||
| 472 | |||
| 473 | @subsection Examples | ||
| 474 | |||
| 475 | The following command shows the @command{ffmpeg} output is an | ||
| 476 | SDL window, forcing its size to the qcif format: | ||
| 477 | @example | ||
| 478 | ffmpeg -i INPUT -c:v rawvideo -pix_fmt yuv420p -window_size qcif -f sdl "SDL output" | ||
| 479 | @end example | ||
| 480 | |||
| 481 | @section sndio | 370 | @section sndio |
| 482 | 371 | ||
| 483 | sndio audio output device. | 372 | sndio audio output device. |