[FFmpeg-devel] [PATCH] lavf/img2enc: mention -vframes in error output

Lou Logan lou at lrcd.com
Mon Jul 11 21:23:58 EEST 2016


Users can be unaware of -vframes/-frames:v when they want to output a single image.
May prevent invalid bug reports such as #5701.

Signed-off-by: Lou Logan <lou at lrcd.com>
---
 libavformat/img2enc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index 32c68e4..d1191b5 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -100,7 +100,7 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
         } else if (av_get_frame_filename(filename, sizeof(filename), img->path, img->img_number) < 0 &&
                    img->img_number > 1) {
             av_log(s, AV_LOG_ERROR,
-                   "Could not get frame filename number %d from pattern '%s' (either set updatefirst or use a pattern like %%03d within the filename pattern)\n",
+                   "Could not get frame filename number %d from pattern '%s' (either set -updatefirst, or use a pattern like %%03d within the filename pattern, or use -vframes 1 to output single image)\n",
                    img->img_number, img->path);
             return AVERROR(EINVAL);
         }
-- 
2.9.0



More information about the ffmpeg-devel mailing list