Skip to content

Instantly share code, notes, and snippets.

@andreas22
Created November 29, 2018 21:14
Show Gist options
  • Save andreas22/22a101de4df3f1ac9cff2c45540b9503 to your computer and use it in GitHub Desktop.
Save andreas22/22a101de4df3f1ac9cff2c45540b9503 to your computer and use it in GitHub Desktop.
Batch file for converting JVC MOD files to MP4
@echo off
set CopyFolder="converted"
set AcceptedExtension=".MOD"
if not exist %CopyFolder% mkdir "%CopyFolder%"
for /r %%i in (*) do (
if %AcceptedExtension% == "%%~xi" (
C:\bin\ffmpeg.exe -i %%~nxi -vcodec libx264 -acodec aac %CopyFolder%/%%~ni.mp4
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment