[FFmpeg-user] Pixel format for sdl output device
Carl Eugen Hoyos
ceffmpeg at gmail.com
Sun Jan 9 12:11:42 EET 2022
Am Fr., 7. Jan. 2022 um 22:16 Uhr schrieb Michael Koch
<astroelectronic at t-online.de>:
> At the end of the
> filter chain I had to insert "format=bgra". It doesn't work if I use
> rgb24 or bgrp or no format at all.
> Why does the sdl output device need a
> pixel format with alpha channel?
You can use bgr0 which is a format without alpha channel.
If you change your screen pixel format (in your operating
system) from 32bit to 24bit, you can use RGB24 (or BGR24)
which once upon a time was slower.
More information about the ffmpeg-user