[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 02:59:20 CEST 2011


I am having trouble encoding v210 material even though I am using the
correct encoding parameters:

c->codec_type = AVMEDIA_TYPE_VIDEO;
c->codec_id = CODEC_ID_V210;
c->pix_fmt = PIX_FMT_YUV422P16LE;
c->bits_per_raw_sample = 10;
c->codec_tag = *((uint32_t*)"v210");

avcodec_find_encoder(c->codec_id) works, but avcodec_open() fails.

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.

Am I missing an additional encoding parameter?

FYI, this all works fine with libav.


More information about the ffmpeg-user mailing list