@ECHO off :: PURPOSE :: Used to convert all FLV files in the current directory to MPG files. :: :: AUTHOR :: Russ Tanner (russ@herballure.com) :: Please send bug reports to the author. :: Donations are appreciated. Send to PayPal account russ@herballure.com :: :: VERSION HISTORY :: 1.0 10/7/2008 Tested :: :: USAGE :: (1) Put all FLV files you want joined in a single directory. Files must end in ".flv". :: (2) Run this script in the directory that contains the files to be converted. :: (3) You now have an MPG file for each original FLV file. :: :: DEPENDENCIES :: ffmpeg must be installed on the target system. :: The system path must be set to allow access to ffmpeg.exe from the working folder. :: :: LICENSING :: This experimental, educational software is offered free and without warranty of any kind. :: By using it, you hold the author harmless of any and all liability. :: Not to be sold or licensed by anyone. Edit as you please. :: Read scientific information about medicinal uses of herbs at OnlyTheBestHerbs.com :: Main ECHO Converting all FLV files to MPG... CALL :ConvertAllFLVToMPG ECHO Done! GOTO :eof :: Functions :ConvertAllFLVToMPG :: Purpose :: Converts all FLVs in the current directory into MPGs. :: FOR /f %%a IN ('dir /b *.flv') DO CALL :ConvertFileToMPG "%%a" GOTO :eof :ConvertFileToMPG :: Purpose :: Converts the specified file to an MPG. :: ECHO %~1 ffmpeg -v 0 -i %1 -sameq -y %~n1.mpg 2>NUL GOTO :eof :eof