[FFmpeg-user] Encoding v210 fails when using PIX_FMT_YUV422P16LE even though PIX_FMT_YUV422P10LE is deprecated

Thomas Worth dev at rarevision.com
Sat May 28 07:50:40 CEST 2011


>
> > If I change pix_fmt to PIX_FMT_YUV422P10LE, I don't get any errors but
>> the
>> > packing appears to be wrong. My code is already set up to pack
>> YUV422P16.
>>
>> Appears to be wrong ?
>>
>
> Sorry, I should have clarified that. The packing is different, and doesn't
> work with my code. It is different from YUV422P16 so I'd like to get it
> working in that format so I don't have to rewrite my packing code. This all
> worked before the ffmpeg/libav split and now only works with libav. I
> believe the first go at supporting v210 in ffmpeg was with YUV422P16, which
> is why my code expects frames in that format.
>

Never mind. The encoder expects planar data, so it was easier than I
thought. The reason it wasn't working before is because the endian order was
reversed for each unsigned 16 bit value (since v210 expects uint16_t). It's
working now with YUV422P10LE. Thanks for your help!


More information about the ffmpeg-user mailing list