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

Marton Balint cus at passwd.hu
Sun Feb 4 12:11:12 EET 2024



On Sun, 4 Feb 2024, J. Dekker wrote:

> With the addition of threading in ffmpeg.c, the SDL2 devices no longer have the
> 'main' thread. This means that both the SDL2 and OpenGL output device are broken
> in master. Rather than attempting to fix it, they should be removed instead as
> there are better alternatives for debugging or viewing streams.

Actually they work here on a linux box with OpenSuse 15.5. So even if they
are broken on some setups, they are not broken everywhere, or not more 
broken than they used to be.

Also, poper deprecation is needed here, since not only the CLI tools might 
use these. Especially since there is no drop-in replacement.

>
> The 'pipe:' output can be used with a real video player such as mpv, vlc, or
> even ffplay. For cases where the user was an application using the API they
> should supply their own renderer.

Yeah, but I never liked when people piped uncompressed data... Not 
everything that the devices support can be serialized, it is extra CPU, 
latency of the receiving app reading from pipe is a question...

I'd be a lot more happy with this if we'd offer some replacement which has 
no issues. Maybe a libplacebo based outdev.

Regards,
Marton


More information about the ffmpeg-devel mailing list