Advertisement
SomniusX

Untitled

Aug 10th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.54 KB | None | 0 0
  1. @ECHO OFF
  2. REM BFCPEOPTIONSTART
  3. REM Advanced BAT to EXE Converter www.BatToExeConverter.com
  4. REM BFCPEEXE=
  5. REM BFCPEICON=
  6. REM BFCPEICONINDEX=-1
  7. REM BFCPEEMBEDDISPLAY=0
  8. REM BFCPEEMBEDDELETE=1
  9. REM BFCPEADMINEXE=0
  10. REM BFCPEINVISEXE=0
  11. REM BFCPEVERINCLUDE=0
  12. REM BFCPEVERVERSION=1.0.0.0
  13. REM BFCPEVERPRODUCT=Product Name
  14. REM BFCPEVERDESC=Product Description
  15. REM BFCPEVERCOMPANY=Your Company
  16. REM BFCPEVERCOPYRIGHT=Copyright Info
  17. REM BFCPEOPTIONEND
  18. @ECHO ON
  19. @echo off
  20. cls
  21. REM THIS IS THE COMMAND LINE VERSION
  22.  
  23. setlocal enableExtensions disableDelayedExpansion
  24.  
  25. echo Usage "ff-clip-wnb-slice input-audio.mp3 outputname"
  26. echo.
  27. echo If not sure hit CTRL+C to stop program.
  28.  
  29. pause
  30.  
  31. echo.
  32. echo Command running: %0 %*
  33. echo argument 1 as input : "%~1"
  34. echo.
  35. echo Command running: ffmpeg add silence if less than 2 seconds..
  36.  
  37. binaries\ffmpeg -hide_banner -loglevel panic -i "%~1" -ac 1 mono.wav
  38. binaries\sox mono.wav binaries\silence2.wav "%~1"_temp.wav
  39.  
  40. echo Command running: ffmpeg to output the raw file for slicing..
  41.  
  42. 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
  43.  
  44. echo.
  45. echo Command running: slicing target file into wnb for Z series wheels..
  46. echo.
  47.  
  48. binaries\wnb-slicer.exe -max-chunk-size 65536 -file-name "%~1".raw
  49.  
  50. echo.
  51. echo Command running: cleaning up..
  52.  
  53. del /f /q mono.wav
  54. del /f /q "%~1"_temp.wav
  55. del /f /q "%~1".raw
  56. PING localhost -n 1 >NUL
  57.  
  58. echo.
  59. echo All commands completed.
  60. echo.
  61.  
  62. endlocal
  63. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement