Created
November 29, 2018 21:14
-
-
Save andreas22/22a101de4df3f1ac9cff2c45540b9503 to your computer and use it in GitHub Desktop.
Batch file for converting JVC MOD files to MP4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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