[FFmpeg-devel] [PATCH] img2enc: mention -frames:v in error message
Lou Logan
lou at lrcd.com
Tue Jan 15 02:25:02 EET 2019
Signed-off-by: Lou Logan <lou at lrcd.com>
---
libavformat/img2enc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/img2enc.c b/libavformat/img2enc.c
index a09cc8ec50..bec4bf81dd 100644
--- a/libavformat/img2enc.c
+++ b/libavformat/img2enc.c
@@ -110,7 +110,8 @@ static int write_packet(AVFormatContext *s, AVPacket *pkt)
AV_FRAME_FILENAME_FLAGS_MULTIPLE) < 0 &&
img->img_number > 1) {
av_log(s, AV_LOG_ERROR,
- "Could not get frame filename number %d from pattern '%s' (either set update or use a pattern like %%03d within the filename pattern)\n",
+ "Could not get frame filename number %d from pattern '%s'. "
+ "Use '-frames:v 1' for a single image, or '-update' option, or use a pattern such as %%03d within the filename.\n",
img->img_number, img->path);
return AVERROR(EINVAL);
}
--
2.20.1
More information about the ffmpeg-devel
mailing list