X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ffmpeg.c;h=886b373e9652e22d8fec6d692c7c52eac4f9594f;hb=76d8d2388120910b46225299b3e10fb4dd18287f;hp=3c7617a3384b7e154c4faaaa473593249cd1a14b;hpb=ef13a005c41c353b03b29edf7a20d226747dac4e;p=ffmpeg diff --git a/ffmpeg.c b/ffmpeg.c index 3c7617a3384..886b373e965 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -2355,6 +2355,13 @@ static int transcode_init(void) "No pixel format specified, %s for H.264 encoding chosen.\n" "Use -pix_fmt yuv420p for compatibility with outdated media players.\n", av_get_pix_fmt_name(ost->filter->filter->inputs[0]->format)); + if (!strncmp(ost->enc->name, "mpeg2video", 10) && + codec->pix_fmt == AV_PIX_FMT_NONE && + ost->filter->filter->inputs[0]->format != AV_PIX_FMT_YUV420P) + av_log(NULL, AV_LOG_WARNING, + "No pixel format specified, %s for MPEG-2 encoding chosen.\n" + "Use -pix_fmt yuv420p for compatibility with outdated media players.\n", + av_get_pix_fmt_name(ost->filter->filter->inputs[0]->format)); codec->pix_fmt = ost->filter->filter->inputs[0]->format; if (!icodec ||