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

18 lignes
412 o
Batchfile
Brut Vue normale Historique

2024-05-02 00:13:10 +02:00
@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
2024-09-28 02:18:46 +02:00
title %~n1
"%binpath%\ffmpeg.exe" -hide_banner -i %1 -vn "%~dpn1.mp3"
2024-05-02 00:13:10 +02:00
IF %ERRORLEVEL% NEQ 0 pause
shift /1
if [%1] NEQ [] goto do
2024-09-28 02:18:46 +02:00
"%binpath%\sounder.exe" "%binpath%\alert.wav"
2024-05-02 00:13:10 +02:00
exit 0
:noarg
2024-09-28 02:18:46 +02:00
echo Usage: %~nx0 "anything with audio to extract.flv"
2024-05-02 00:13:10 +02:00
echo.
pause
exit