Created
September 1, 2023 08:39
-
-
Save Cccc-owo/231d1313ab7c36391a133878e996939b to your computer and use it in GitHub Desktop.
FFmpeg 批处理转换文件
This file contains 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 | |
setlocal enabledelayedexpansion | |
REM 检查是否存在 FFmpeg | |
where ffmpeg >nul 2>nul | |
if errorlevel 1 ( | |
echo 请确保已经安装了 FFmpeg 并添加到了系统环境变量中。 | |
pause | |
exit /b | |
) | |
REM 转换所有本目录下文件为mp3 | |
for %%i in (*.*) do ffmpeg -i "%%i" -vn -acodec libmp3lame "%%~ni.mp3" | |
echo done | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment