#!/bin/bash
cd /data/simpleEval_sim/preview/f9_video
for f in frames_html/*.html; do b=$(basename $f .html); [ -s frames/$b.png ] && continue
 timeout 90 google-chrome --headless=new --no-sandbox --disable-gpu --hide-scrollbars --window-size=1920,1260 --virtual-time-budget=5000 --screenshot=frames/$b.png "file://$PWD/$f" >/dev/null 2>&1
done
ls frames/*.png | wc -l
