diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-09 16:52:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-09 16:52:26 +0100 |
| commit | 78c27b4fa4d23d4a0a64f0398350ec5697d50551 (patch) | |
| tree | 56c5b733d812745eeadf767a4fd68d8e470c5a9c /src/lib/transcode_job.cc | |
| parent | 6a11232620e0006f6a2b1e8d2b56e56d84229d5c (diff) | |
Slight tidy up of progress stuff in TranscodeJob.
Diffstat (limited to 'src/lib/transcode_job.cc')
| -rw-r--r-- | src/lib/transcode_job.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/transcode_job.cc b/src/lib/transcode_job.cc index bf878e8c2..52540c4e7 100644 --- a/src/lib/transcode_job.cc +++ b/src/lib/transcode_job.cc @@ -88,7 +88,7 @@ TranscodeJob::run () float fps = 0; if (finish.tv_sec != start.tv_sec) { - fps = _transcoder->video_frames_enqueued() / (finish.tv_sec - start.tv_sec); + fps = _transcoder->frames_done() / (finish.tv_sec - start.tv_sec); } LOG_GENERAL (N_("Transcode job completed successfully: %1 fps"), fps); @@ -119,13 +119,13 @@ TranscodeJob::status () const strncpy (buffer, Job::status().c_str(), 256); } else { snprintf ( - buffer, sizeof(buffer), "%s; %d/%" PRId64 " frames", + buffer, sizeof(buffer), "%s; %" PRId64 "/%" PRId64 " frames", Job::status().c_str(), - _transcoder->video_frames_enqueued(), + _transcoder->frames_done(), _film->length().frames_round (_film->video_frame_rate ()) ); - float const fps = _transcoder->current_encoding_rate (); + float const fps = _transcoder->current_rate (); if (fps) { char fps_buffer[64]; /// TRANSLATORS: fps here is an abbreviation for frames per second @@ -151,12 +151,12 @@ TranscodeJob::remaining_time () const /* We're encoding so guess based on the current encoding rate */ - float fps = t->current_encoding_rate (); + float fps = t->current_rate (); if (fps == 0) { return 0; } /* Compute approximate proposed length here, as it's only here that we need it */ - return (_film->length().frames_round (_film->video_frame_rate ()) - t->video_frames_enqueued()) / fps; + return (_film->length().frames_round (_film->video_frame_rate ()) - t->frames_done()) / fps; } |
