Commit e1d48786 authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: Warn if output file is empty

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 12d27653
......@@ -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");
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment