Skip to content

Instantly share code, notes, and snippets.

@iwatake2222
Created November 6, 2017 06:25
Show Gist options
  • Save iwatake2222/c026258629539ba15a14a0359d7799f6 to your computer and use it in GitHub Desktop.
Save iwatake2222/c026258629539ba15a14a0359d7799f6 to your computer and use it in GitHub Desktop.
Convert MTS files to MP4 files
rem @echo off
setlocal ENABLEDELAYEDEXPANSION
set FFMPEG="C:\\asd\\tool\\ffmpeg-20170827-ef0c6d9-win64-static\\bin\\ffmpeg"
cd /d %~dp1
for %%f in (%1\*.MTS) do (
%FFMPEG% -i %%f -vcodec copy -acodec copy %%f.mp4
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment