diff options
author | Dave Rice <dave@dericed.com> | 2018-10-01 17:17:24 -0400 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2018-10-23 19:42:32 +0200 |
commit | 110b4a491859e6e635f6513670785a9378c9551b (patch) | |
tree | 96c855fccaf437beefcba950433f3ea382217445 /doc/outdevs.texi | |
parent | 3f2103ec73c96d530b0516869363ad9ea730c909 (diff) | |
download | ffmpeg-110b4a491859e6e635f6513670785a9378c9551b.tar.gz |
avdevice/sdl2: add option to set window position
Allows arrangement of multiple windows such as:
ffmpeg -re -f lavfi -i mandelbrot -f sdl -window_x 1 -window_y 1 mandelbrot -vf waveform,format=yuv420p -f sdl -window_x 641 -window_y 1 waveform -vf vectorscope,format=yuv420p -f sdl -window_x 1 -window_y 481 vectorscop
Some changes by Marton Balint:
- allow negative position (partially or fully out-of-screen positions seem to
be sanitized automatically by SDL (or my WM?), so no special handling is
needed)
- only show window after the position is set
- do not use resizable and borderless flags at the same time, that caused
issues in ffplay
- add docs
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'doc/outdevs.texi')
-rw-r--r-- | doc/outdevs.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/outdevs.texi b/doc/outdevs.texi index 2518f9b559..7509ac695d 100644 --- a/doc/outdevs.texi +++ b/doc/outdevs.texi @@ -398,6 +398,10 @@ Set the SDL window size, can be a string of the form If not specified it defaults to the size of the input video, downscaled according to the aspect ratio. +@item window_x +@item window_y +Set the position of the window on the screen. + @item window_fullscreen Set fullscreen mode when non-zero value is provided. Default value is zero. |