[FFmpeg-devel] [PATCHv2 2/2] avdevice/sdl2 : add option to set window position
Marton Balint
cus at passwd.hu
Mon Oct 22 23:14:04 EEST 2018
On Sat, 20 Oct 2018, Marton Balint wrote:
> From: Dave Rice <dave at dericed.com>
>
> 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 at passwd.hu>
> ---
> doc/outdevs.texi | 4 ++++
> libavdevice/sdl2.c | 15 ++++++++++-----
> libavdevice/version.h | 4 ++--
> 3 files changed, 16 insertions(+), 7 deletions(-)
Will apply soon.
Regards,
Marton
More information about the ffmpeg-devel
mailing list