[FFmpeg-devel] avdevice/sdl output : fix window_size and add new option (WIP)

Martin Vignali martin.vignali at gmail.com
Sun Apr 8 18:28:24 EEST 2018


Hello,

In attach patchs to improve SDL Output device
(Missing doc update)

- 001 : Fix -window_size option
Before this patch, window_size is always set to the source size
In other word, -window_size option have no effect.

To test :
./ffmpeg -f lavfi -i smptehdbars=hd1080 -c:v rawvideo -pix_fmt yuv420p
-window_size 1024x576 -f sdl "SDL output with Custom Size"

- 002 : Add option to set the position of the window
the default behaviour doesn't change (set the position to undefined)

To test :
./ffmpeg -f lavfi -i smptehdbars=hd1080 -c:v rawvideo -pix_fmt yuv420p
-window_size 1024x576 -window_pos_x 30 -window_pos_y 100 -f sdl "SDL output
With Custom size pos"

- 003 : Add option to disable quit action
Without this patch, the window can be close by the user
if this new option is set, the window can't be close (by "close" window
btn, escape, or "q")
The default behaviour doesn't change

To test :
./ffmpeg -re -f lavfi -i smptehdbars=hd1080:duration=10 -c:v rawvideo
-pix_fmt yuv420p -window_enable_quit 0 -f sdl "SDL output Without Quit"


Comments Welcome

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-avdevice-sdl2output-fix-setting-window_size.patch
Type: application/octet-stream
Size: 1430 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180408/04ea9130/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-avdevice-sdl2-add-option-for-setting-window-position.patch
Type: application/octet-stream
Size: 2085 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180408/04ea9130/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-avdevice-sdl2-add-option-to-define-if-the-window-qui.patch
Type: application/octet-stream
Size: 1632 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20180408/04ea9130/attachment-0002.obj>


More information about the ffmpeg-devel mailing list