[Libav-user] H264 Packed RGB Decoding
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Feb 7 07:46:56 EET 2020
> Am 07.02.2020 um 05:06 schrieb Devin Heitmueller <dheitmueller at kernellabs.com>:
>
>> On Thu, Feb 6, 2020 at 8:25 PM Alan Daniels <alan at softdrive.co> wrote:
>> Is there a way for FFmpeg to decode an H264 bitstream into packed RGB?
>> Ideally AV_PIX_FMT_BGR0 or AV_PIX_FMT_BGRA.
>>
>> For the encoder, I am using libx264rgb with AV_PIX_FMT_BGR0.
>>
>> For the decoder, I am using AV_CODEC_ID_H264. However, the frame comes back from the decoder as AV_PIX_FMT_GBRP. This seems to be the only option supplied to get_format().
>
> The output of the decoder is whatever format the video was originally
> encoded with.
No.
The decoder output depends on development decisions that were hopefully driven by reasons such as speed and readability.
Carl Eugen
More information about the Libav-user
mailing list