#!/bin/bash
cd /Users/freedak/Documents/AIDashboard/SBrainCO/demo

ffmpeg -y -framerate 1/2 -pattern_type glob -i 's*.png' \
  -c:v libx264 -pix_fmt yuv420p \
  -vf "scale=1920:1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)/2:(oh-ih)/2:0x0F0F0F,subtitles=subtitles.srt:force_style='FontName=Heiti SC,FontSize=22,PrimaryColour=&H00FFFFFF,OutlineColour=&H000F0F0F,BorderStyle=3,Outline=2,Shadow=0,MarginV=40,Alignment=2'" \
  -r 30 product-demo.mp4
