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

Baptiste Coudurier baptiste.coudurier at gmail.com
Sat May 28 04:29:17 CEST 2011


Hi Thomas,

On 05/27/2011 05:59 PM, Thomas Worth wrote:
> 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.

What's the error message ?

> 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 ?

AVCodec->pix_fmts tells you which pix fmt the encoder support.
For instance it's PIX_FMT_YUV422P10 for the v210 encoder.

-- 
Baptiste COUDURIER
Key fingerprint          8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer                           http://www.ffmpeg.org


More information about the ffmpeg-user mailing list