代码如下:
CD /D "%~dp0"
for %%i in (*.f4v) do ren "%~dp0%%i" "%~dp0%%i.flv"
for %%i in (*.flv) do ffmpeg.exe -i "%~dp0%%i" -vcodec copy -acodec copy "%~dp0%%i.mp4"
for %%i in (*.mkv) do ffmpeg.exe -i "%~dp0%%i" -vcodec copy -acodec copy "%~dp0%%i.mp4"
end