@@ -196,13 +196,15 @@ def form_video(task, video, talk, start_tc, end_tc, framerate = FRAMERATE, out_d
196196
197197 # Build all the text assets
198198 logger .info ("Building text assets." )
199+ task .update_state (state = "Building text assets" )
199200 subprocess .check_output (start_title_args )
200201 subprocess .check_output (start_pres_arg )
201202 subprocess .check_output (copyright_args )
202203
203204 # First FFmpeg pass for getting loudness stats
204205 logger .info ("Detecting loudness information." )
205206 logger .debug (ffmpeg_loudness_args )
207+ task .update_state (state = "Analysing Loudness" )
206208 with open (loud_log , "a" ) as error_log :
207209 loud_output = subprocess .check_output (ffmpeg_loudness_args , stderr = subprocess .STDOUT , cwd = working_dir ).decode ("utf-8" )
208210 error_log .writelines (loud_output )
@@ -274,6 +276,7 @@ def form_video(task, video, talk, start_tc, end_tc, framerate = FRAMERATE, out_d
274276 ]
275277 logger .info ("Running main build." )
276278 logger .debug (ffmpeg_args )
279+ task .update_state (state = "Running main build" )
277280 with open (build_log , "a" ) as error_log :
278281 subprocess .check_output (ffmpeg_args , stderr = error_log , cwd = working_dir )
279282 logger .info ("Completed main build." )
0 commit comments