darealshinji / delaycut

cuts and corrects delay in ac3 and dts files
GNU General Public License v3.0
33 stars 4 forks source link

batch delay? #12

Open m0ck69 opened 2 years ago

m0ck69 commented 2 years ago

I have quite a few ac3 audio files. I need to delay them by the same time value. How can I do it at once?

bitblaster commented 2 years ago

You can execute a for cycle in your shell calling delaycut for each file, such as: delaycut -startdelay 100 -i myfile.ac3

m0ck69 commented 2 years ago

That's not very helpful tbh and wouldn't make the process faster what so ever. I was hoping for sth like Open - Ctr A (select all audio files) - enter desired delay value - Process. And that's it.

Slavison commented 1 year ago

It's pretty easy to do on Windows with .bat file.

  1. Copy all AC3 files to some folder, create in this folder a file named 'delaycut.bat', then put the following inside this file:
@echo off
cd /d %~dp0
setlocal enabledelayedexpansion
FOR %%a IN (*.ac3) do (
    d:\PortableApps\Delaycut\delaycut.exe -startdelay 300 -i %%~na.ac3
)

pause
  1. Change d:\PortableApps\Delaycut\delaycut.exe and -startdelay 300 to your needs.

  2. Run delaycut.bat and wait for it to complete.