[Libav-user] H264 Packed RGB Decoding

Alan Daniels alan at softdrive.co
Fri Feb 7 03:25:36 EET 2020


Hello,



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().



I am trying to minimize encode/decode latency, so I am trying to avoid using swscale after decoding.



Thanks!

- Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200206/8574e88e/attachment.html>


More information about the Libav-user mailing list