Add frame counter to transcode progress (#111).
authorCarl Hetherington <cth@carlh.net>
Thu, 3 Sep 2015 13:50:58 +0000 (14:50 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Sep 2015 09:21:12 +0000 (10:21 +0100)
ChangeLog
src/lib/transcode_job.cc

index c51c6d6edf996ef63ac5f0c33a564e696f20d568..d808ddf3e703577b5f5561a590985234820bdd9c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2015-09-03  c.hetherington  <cth@carlh.net>
 
+       * Add frame counter to progress
+       when transcoding (#111).
+
        * Add button to export certificates
        from the configuration (#668).
 
index eb1991297dbd8b1659fe40ba8943b26f74c6fd6f..f10078f3c2714984b15035d45b679954399f9c72 100644 (file)
@@ -100,7 +100,9 @@ TranscodeJob::status () const
 
        if (!finished () && !_transcoder->finishing ()) {
                /// TRANSLATORS: fps here is an abbreviation for frames per second
-               s << "; " << fixed << setprecision (1) << fps << " " << _("fps");
+               s << "; " << _transcoder->video_frames_out() << "/"
+                 << _film->length().frames_round (_film->video_frame_rate ()) << " " << _("frames") << "; "
+                 << fixed << setprecision (1) << fps << " " << _("fps");
        }
 
        return s.str ();