[FFmpeg-cvslog] ffmpeg: Warn if output file is empty
Michael Niedermayer
git at videolan.org
Fri Nov 25 16:38:03 CET 2011
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Nov 25 16:17:06 2011 +0100| [e1d48786d577976fb8bb87dcd89097e87d080cfd] | committer: Michael Niedermayer
ffmpeg: Warn if output file is empty
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e1d48786d577976fb8bb87dcd89097e87d080cfd
---
ffmpeg.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index 44139f8..8db18dc 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1526,6 +1526,9 @@ static void print_report(OutputFile *output_files,
extra_size/1024.0,
100.0*(total_size - raw)/raw
);
+ if(video_size + audio_size + extra_size == 0){
+ av_log(NULL, AV_LOG_WARNING, "Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)\n");
+ }
}
}
More information about the ffmpeg-cvslog
mailing list