Update main.py
Browse files98 unmodified lines9910010110210310410510610719 unmodified lines12712812913013113213398 unmodified linesfilter_complex = ""for i in range(len(image_paths)):# Each input's video stream is processed with zoompan.# The zoom increases by zoom_ratio per frame (starting at 1.0).filter_complex += (f"[{i}:v]zoompan=z='if(eq(on,0),1,zoom+{zoom_ratio})':"f"d={duration*fps}:s=hd720, setpts=PTS-STARTPTS[v{i}];")# Concatenate all processed video segments.19 unmodified linesstdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.PIPE)stdout, stderr = await process.communicate()# Remove temporary concat file if it existsif not zoom and os.path.exists("temp_concat.txt"):98 unmodified lines9910010110210310410510610719 unmodified lines12712812913013113213398 unmodified linesfilter_complex = ""for i in range(len(image_paths)):# Each input's video stream is processed with zoompan.# The zoom increases by zoom_ratio per frame (starting at 1.0) and centers the image.filter_complex += (f"[{i}:v]zoompan=z='if(eq(on,0),1,zoom+{zoom_ratio})':x='iw/2-(iw/zoom)/2':y='ih/2-(ih/zoom)/2':"f"d={duration*fps}:s=hd720, setpts=PTS-STARTPTS[v{i}];")# Concatenate all processed video segments.19 unmodified linesstdout=asyncio.subprocess.PIPE,stderr=asyncio.subprocess.PIPE)_, stderr = await process.communicate()# Remove temporary concat file if it existsif not zoom and os.path.exists("temp_concat.txt"):
main.py+3-3