#!/usr/bin/env bash
# Usage: bash media-driver.sh source.mp4 output.mp4
# Preserve the full wall-clock timeline at 5 fps and redact the environment label.
set -euo pipefail
ffmpeg -hide_banner -loglevel error -i "$1" -vf "fps=5,drawbox=x=iw*0.79:y=ih*0.07:w=iw*0.205:h=ih*0.06:color=black:t=fill" -c:v libx264 -preset veryfast -crf 22 -an -movflags +faststart "$2"
