diff --git a/ffmpeg.c b/ffmpeg.c
index 32597e42e74c9f0c046712949a5b7b444f4e0fb2..f134f8877416d02a5a4e6c594a9b27ce564e6b0c 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1192,8 +1192,11 @@ static void do_video_out(AVFormatContext *s,
     if (   ost->resample_height != ist->st->codec->height
         || ost->resample_width  != ist->st->codec->width
         || (ost->resample_pix_fmt!= ist->st->codec->pix_fmt) ) {
-
-        fprintf(stderr,"Input Stream #%d.%d frame size changed to %dx%d, %s\n", ist->file_index, ist->index, ist->st->codec->width,     ist->st->codec->height,avcodec_get_pix_fmt_name(ist->st->codec->pix_fmt));
+        av_log(NULL, AV_LOG_INFO,
+               "Input stream #%d.%d frame changed from size:%dx%d fmt:%s to size:%dx%d fmt:%s\n",
+               ist->file_index, ist->index,
+               ost->resample_width  , ost->resample_height  , avcodec_get_pix_fmt_name(ost->resample_pix_fmt),
+               ist->st->codec->width, ist->st->codec->height, avcodec_get_pix_fmt_name(ist->st->codec->pix_fmt));
         if(!ost->video_resample)
             ffmpeg_exit(1);
     }