[FFmpeg-user] Pixel format for sdl output device

Michael Koch astroelectronic at t-online.de
Sun Jan 9 13:22:46 EET 2022


Am 09.01.2022 um 11:11 schrieb Carl Eugen Hoyos:
> 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.

thank you for your answer. "bgr0" does indeed work, but is a little bit 
slower than "bgra".

Michael



More information about the ffmpeg-user mailing list