[FFmpeg-devel] [PATCH 0/2] Remove SDL2 output devices

Zhao Zhili quinkblack at foxmail.com
Wed Feb 7 11:35:36 EET 2024



> On Feb 7, 2024, at 04:51, Michael Koch <astroelectronic at t-online.de> wrote:
> 
> I didn't notice any problems with -f sdl2. I just tested again with Windows 11 and the latest FFmpeg build from Gyan, just 2 days old.
> 
> ffmpeg -re -f lavfi -i testsrc2=s=800x600 -t 10 -f sdl2 -
> 
> Works without any problems.

It works until move or resize the window. As far as I know, it’s broken on Linux/macOS/Windows, so not
“works without any problems”.

SDL should be run in main thread, that’s all, although we can do render in separate thread with vulkan.
It’s easy to create a video sink filter to do render, and setup a window on fftools/ffmpeg main thread,
or implement the whole preview task just inside fftools. Not everyone agrees on the preview feature
with ffmpeg, not to mention libSDL.

> 
> Michael
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".



More information about the ffmpeg-devel mailing list