Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- REM BFCPEOPTIONSTART
- REM Advanced BAT to EXE Converter www.BatToExeConverter.com
- REM BFCPEEXE=
- REM BFCPEICON=
- REM BFCPEICONINDEX=-1
- REM BFCPEEMBEDDISPLAY=0
- REM BFCPEEMBEDDELETE=1
- REM BFCPEADMINEXE=0
- REM BFCPEINVISEXE=0
- REM BFCPEVERINCLUDE=0
- REM BFCPEVERVERSION=1.0.0.0
- REM BFCPEVERPRODUCT=Product Name
- REM BFCPEVERDESC=Product Description
- REM BFCPEVERCOMPANY=Your Company
- REM BFCPEVERCOPYRIGHT=Copyright Info
- REM BFCPEOPTIONEND
- @ECHO ON
- @echo off
- cls
- REM THIS IS THE COMMAND LINE VERSION
- setlocal enableExtensions disableDelayedExpansion
- echo Usage "ff-clip-wnb-slice input-audio.mp3 outputname"
- echo.
- echo If not sure hit CTRL+C to stop program.
- pause
- echo.
- echo Command running: %0 %*
- echo argument 1 as input : "%~1"
- echo.
- echo Command running: ffmpeg add silence if less than 2 seconds..
- binaries\ffmpeg -hide_banner -loglevel panic -i "%~1" -ac 1 mono.wav
- binaries\sox mono.wav binaries\silence2.wav "%~1"_temp.wav
- echo Command running: ffmpeg to output the raw file for slicing..
- binaries\ffmpeg -hide_banner -loglevel panic -i "%~1"_temp.wav -acodec pcm_s16le -f s16le -ac 1 -ar 16000 -acodec pcm_s16le -ss 00:00:00.000 -t 00:00:02.000 "%~1".raw
- echo.
- echo Command running: slicing target file into wnb for Z series wheels..
- echo.
- binaries\wnb-slicer.exe -max-chunk-size 65536 -file-name "%~1".raw
- echo.
- echo Command running: cleaning up..
- del /f /q mono.wav
- del /f /q "%~1"_temp.wav
- del /f /q "%~1".raw
- PING localhost -n 1 >NUL
- echo.
- echo All commands completed.
- echo.
- endlocal
- goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement