GISTS/windows/video scripts/convertion-videos-mp4.bat
2024-06-12 19:44:14 +02:00

18 lignes
Pas d'EOL
547 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
"%binpath%\ffmpeg.exe" -hwaccel cuda -hwaccel_output_format cuda -i %1 -c:v hevc_nvenc -map 0 "%~dpn1[HEVC].mkv"
IF %ERRORLEVEL% NEQ 0 pause
shift /1
if [%1] NEQ [] goto do
::alert, use a wav file with CLI player from https://elifulkerson.com/projects/commandline-wav-player.php
"%binpath%\sounder.exe" "%binpath%\alert.wav"
exit 0
:noarg
echo Usage: %~nx0 "video to convert.flv"
echo.
pause
exit