[FFmpeg-user] Incompatible pixel format 'uyvy422' for codec 'libx264', auto-selecting format 'yuv420p10le'
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Feb 7 00:31:56 CET 2012
On Monday 06 February 2012 10:53:05 am Boštjan Strojan wrote:
> while converting some aja captured yuv422 files i'am getting:
>
> Incompatible pixel format 'uyvy422' for codec 'libx264',
> auto-selecting format 'yuv420p10le'
> (x264 was compiled in 10bit mode)
>
> (shouldn't that patch to yuv422 of some sort?)
Could you test attached patch?
(Untested here.)
Carl Eugen
-------------- next part --------------
diff --git a/libavcodec/libx264.c b/libavcodec/libx264.c
index 1380e0a..1671cfd 100644
--- a/libavcodec/libx264.c
+++ b/libavcodec/libx264.c
@@ -637,6 +637,11 @@ AVCodec ff_libx264_encoder = {
.encode = X264_frame,
.close = X264_close,
.capabilities = CODEC_CAP_DELAY | CODEC_CAP_AUTO_THREADS,
+ .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_YUVJ420P,
+ PIX_FMT_YUV420P9, PIX_FMT_YUV420P10,
+ PIX_FMT_YUV422P, PIX_FMT_YUV422P10,
+ PIX_FMT_YUV444P, PIX_FMT_YUV444P9, PIX_FMT_YUV444P10,
+ PIX_FMT_NONE},
.long_name = NULL_IF_CONFIG_SMALL("libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10"),
.priv_class = &class,
.defaults = x264_defaults,
More information about the ffmpeg-user
mailing list