Remove output file when no frames were written
Use libavutil logging facility