from pathlib import Path
import subprocess
P=Path(__file__).parent
for side in ['base','head']:
    # Opaque privacy masks only. No text is inserted into the app capture.
    masks=['scale=1280:800',"drawbox=x=300:y=258:w=710:h=23:color=black:t=fill"]
    if side=='base': masks.append("drawbox=x=888:y=60:w=392:h=250:color=black:t=fill:enable='lt(t,2)'")
    subprocess.run(['ffmpeg','-y','-hide_banner','-loglevel','error','-i',str(P/f'{side}-acp-exact-raw.mp4'),'-vf',','.join(masks),'-c:v','libx264','-threads','2','-preset','veryfast','-crf','23','-an',str(P/f'{side}-acp-exact.mp4')],check=True)
