Created
January 6, 2013 13:15
-
-
Save anonymous/4467052 to your computer and use it in GitHub Desktop.
reencode video from many MTS file to a single MPG. need FFMPEG
This file contains hidden or 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 | |
rem tested on Windows Vista | |
setlocal enabledelayedexpansion | |
:: conerti totues les videos du dossier et le concaténe en all.mpg | |
:: | |
:: | |
echo ceci va concertir tout les fichiers videos du dossier . | |
set /p rep=Etes vous sur? (y/n) | |
if not "%rep%"=="y" exit /b | |
set folder=%* | |
set ffmpeg=c:\programs\ffmpeg\bin\ffmpeg | |
echo convert folder:%* %DATE% %TIME% >> C:\tmp\log\conv_vid.log | |
cd /d "%folder%" | |
for %%i in ( *.mts ) do ( | |
echo process %%i >> %BATSH%\tmp\log\conv_vid.log | |
set OUT=!OUT!%%i+ | |
) | |
title > end | |
set OUT=%OUT%end | |
echo %OUT% >> %BATSH%\tmp\log\conv_vid.log | |
copy /b %OUT% "%folder%.mts" | |
%ffmpeg% -i "%folder%.mts" -target pal-dvd "%folder%.mpg" | |
echo done:%1 %DATE% %TIME% >> C:\tmp\log\conv_vid.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment