GISTS/windows/video scripts/convertion-audio.bat

18 lignes
Pas d'EOL
412 o
Batchfile

@echo off
set binpath=%~dp0
if not exist "%binpath%\ffmpeg.exe" echo ffmpeg not found. exiting... & echo. & pause & exit 1
:do
if [%1]==[] goto noarg
title %~n1
"%binpath%\ffmpeg.exe" -hide_banner -i %1 -vn "%~dpn1.mp3"
IF %ERRORLEVEL% NEQ 0 pause
shift /1
if [%1] NEQ [] goto do
"%binpath%\sounder.exe" "%binpath%\alert.wav"
exit 0
:noarg
echo Usage: %~nx0 "anything with audio to extract.flv"
echo.
pause
exit