1 Star 0 Fork 5

hucheng27/BAT_FFMPEG

forked from jingcheng/BAT_FFMPEG 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Video-ToMP4_FPS-24-25-30-60.bat 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
REM https://lists.ffmpeg.org/pipermail/ffmpeg-user/2013-July/016240.html
REM The frame rate of your source may be constant or variable. If frame rate of
REM your source is constant,
REM You can just type the following:
@echo off
echo %CD%
echo %~dp0
cd /d %~dp0
REM For first file
REM %1
REM For multiple files
echo %*
set COUNTER=0
for %%x in (%*) do (
echo %%x
set /A COUNTER+=1
)
echo COUNTER = %COUNTER%
if %COUNTER% GTR 0 (
if %COUNTER% EQU 1 (
echo _____GET ONE FILE_____
) else (
echo _____GET MULTI FILES: %COUNTER% files_____
)
for %%x in (%*) do (
REM //////////////////// MAIN \\\\\\\\\\\\\\\\\\\\\\\\\
REM ffmpeg -i %%x -r 24 -vcodec libx264 -acodec copy -map_metadata 0 -map 0 -threads 1 "%%~nx_output_FPS24.mp4"
REM ffmpeg -r "25" -i %%x -vcodec libx264 -acodec copy -map_metadata 0 -map 0 -threads 1 "%%~nx_output_FPS25.mp4"
ffmpeg -i %%x -r 30 -vcodec libx264 -acodec copy -map_metadata 0 -map 0 -threads 1 "%%~nx_output_FPS30.mp4"
REM ffmpeg -r "60" -i %%x -vcodec copy -acodec copy -map_metadata 0 -map 0 -threads 1 "%%~nx_output_FPS60.mp4"
)
) else (
echo _____GET NO ONE FILES_____
)
pause
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Shell
1
https://gitee.com/hucheng27/BAT_FFMPEG.git
git@gitee.com:hucheng27/BAT_FFMPEG.git
hucheng27
BAT_FFMPEG
BAT_FFMPEG
master

搜索帮助