Browse Source

ffmpeg: Warn if output file is empty

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n0.9
Michael Niedermayer 13 years ago
parent
commit
e1d48786d5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ffmpeg.c

+ 3
- 0
ffmpeg.c View File

@@ -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");
}
}
}



Loading…
Cancel
Save