Skip to content

Instantly share code, notes, and snippets.

@aheil
Last active October 21, 2020 14:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aheil/7469d73424a6f46a6e7d7ba53f054977 to your computer and use it in GitHub Desktop.
Save aheil/7469d73424a6f46a6e7d7ba53f054977 to your computer and use it in GitHub Desktop.
Remux all MK4 fileks in a folder to MP4
@echo off
for /f "delims=" %%f in ('dir /b /a-d-h-s') do (
if "%%~xf" == ".mkv" (
if not exist "%cd%\%%~nf.mp4" (
ffmpeg -i "%cd%\%%f" -c copy -map 0 "%cd%\%%~nf.mp4"
)
)
)
@mastermndio
Copy link

Perfect, exactly what I needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment