[FFmpeg-devel] [RFC]Do not warn when automatically encoding yuvj420p with x264
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu Nov 21 11:52:57 CET 2013
Hi!
I did not test but I would expect that WMP supports YUVJ420P in h264.
Can somebody test?
Carl Eugen
-------------- next part --------------
diff --git a/ffmpeg.c b/ffmpeg.c
index 5eb395f..404d005 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2395,6 +2395,7 @@ static int transcode_init(void)
ost->filter->filter->inputs[0]->sample_aspect_ratio;
if (!strncmp(ost->enc->name, "libx264", 7) &&
codec->pix_fmt == AV_PIX_FMT_NONE &&
+ ost->filter->filter->inputs[0]->format != AV_PIX_FMT_YUVJ420P &&
ost->filter->filter->inputs[0]->format != AV_PIX_FMT_YUV420P)
av_log(NULL, AV_LOG_WARNING,
"No pixel format specified, %s for H.264 encoding chosen.\n"
More information about the ffmpeg-devel
mailing list