Skip to content

Instantly share code, notes, and snippets.

@akarapatakis
Created March 28, 2025 19:14
Show Gist options
  • Save akarapatakis/5d20c4eb983193928008cae020ecaa73 to your computer and use it in GitHub Desktop.
Save akarapatakis/5d20c4eb983193928008cae020ecaa73 to your computer and use it in GitHub Desktop.
a script that fixes broken mp4s with incomplete/corrupt headers
@echo off
IF NOT EXIST broken-mp4s\NUL mkdir broken-mp4s
IF NOT EXIST fixed\NUL mkdir fixed
for %%a in ("broken-mp4s\*.mp4") do ffmpeg -i "%%a" -c:v copy -c:a copy "fixed\%%~na.mp4"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment