@echo off REM Stream lcars.mp4 to ESP32 Channel3 REM Make sure ffmpeg is in your PATH and numpy is installed (pip install numpy) REM REM The TV has a pixel aspect ratio of ~2.53:1 (wide pixels) REM So we scale to 293x220 first (116*2.53=293), then squash to 116x220 ffmpeg -f lavfi -i color=black:293x220 -i "%~dp0lcars.mp4" -filter_complex "[1:v]scale=293:220:force_original_aspect_ratio=decrease[vid];[0:v][vid]overlay=(W-w)/2:(H-h)/2,scale=116:220" -map 0:a? -f rawvideo -pix_fmt rgb24 -shortest - | python "%~dp0stream_video.py" 10.0.0.59 -f 60 --grayscale