@@ -913,7 +913,10 @@ def accept(self):
913
913
if ((( frame - start_frame_export ) != 0 ) & (( end_time_export - start_time_export ) != 0 )):
914
914
seconds_left = round (( start_time_export - end_time_export )* ( frame - end_frame_export )/ ( frame - start_frame_export ))
915
915
fps_encode = ((frame - start_frame_export )/ (end_time_export - start_time_export ))
916
- title_message = _ ("%(hours)d:%(minutes)02d:%(seconds)02d Remaining (%(fps)5.2f FPS)" ) % {
916
+ if frame == end_frame_export :
917
+ title_message = _ ("Finalizing video export, please wait..." )
918
+ else :
919
+ title_message = _ ("%(hours)d:%(minutes)02d:%(seconds)02d Remaining (%(fps)5.2f FPS)" ) % {
917
920
'hours' : seconds_left / 3600 ,
918
921
'minutes' : (seconds_left / 60 ) % 60 ,
919
922
'seconds' : seconds_left % 60 ,
@@ -1008,6 +1011,16 @@ def accept(self):
1008
1011
# Reveal done button
1009
1012
self .close_button .setVisible (True )
1010
1013
1014
+ # Restore windows title to show elapsed time
1015
+ title_message = _ ("%(hours)d:%(minutes)02d:%(seconds)02d Elapsed (%(fps)5.2f FPS)" ) % {
1016
+ 'hours' : seconds_run / 3600 ,
1017
+ 'minutes' : (seconds_run / 60 ) % 60 ,
1018
+ 'seconds' : seconds_run % 60 ,
1019
+ 'fps' : fps_encode }
1020
+
1021
+ get_app ().window .ExportFrame .emit (title_message , video_settings .get ("start_frame" ),
1022
+ video_settings .get ("end_frame" ), frame )
1023
+
1011
1024
# Make progress bar green (to indicate we are done)
1012
1025
from PyQt5 .QtGui import QPalette
1013
1026
p = QPalette ()
0 commit comments