Log in

View Full Version : cli tool for batch time-stretching audio


Blue_MiSfit
9th February 2016, 02:30
I need to identify a tool that can time-stretch audio coming from a 24p master into a sped-up 25p output. This can't be a simple speed-up on the audio, I need to correct pitch as well.

I've tried several tools like eac3to, soundstretch, ffmpeg, rubberband etc and they all fail for either not adjusting the pitch or suffering from heavy artifacts / phase errors - especially when dealing with 5.1.

DAW solutions like Adobe Audition seem to do a very nice job, but they are cumbersome to work with. I want something that can be automated via CLI.

Thoughts?

Thanks,
Derek

mbcd
9th February 2016, 05:10
I did this bevor and used "sox" for this. It works on cli and did a great Job with timestretch and and pitch-correction. Problem with my old Version (2 years ago), it had a bug in using multichannel-sound so I first had to convert it to flac, with multichannel-flac these error did not occur. Do never speedup single mono-files and merge them later to a multichannel, they will run out-of-sync. Use always multichannel, I think that the old bug is repaired now, so you might use wav directly.

Blue_MiSfit
9th February 2016, 05:39
Sox suffered from major audio artifacts when time stretching when I tried. Any advice on settings?

richardpl
9th February 2016, 09:45
How you used ffmpeg?

manolito
9th February 2016, 13:56
AFAIK the only CLI tools which do pitch shifting with "acceptable" quality are Sox and SoundTouch. For Sox you would use the "tempo" parameter. The SoundTouch algo is used by Wilbert's TimeStretch_v258 plugin, so you can also use it directly from AviSynth.

But pitch shifting with "good" quality is not trivial, you pay big $$$ for the quality. And I am not aware of any CLI tools in this class.

Izotope Radius is the preferred tool for many studio pros, I also found Prosoniq TimeStretch II quite satisfactory (it also does batch conversions).

See this post and the link in it for a way to get Izotope Radius at no cost:
http://forum.doom9.org/showthread.php?p=1738666#post1738666


Cheers
manolito

Overdrive80
13th February 2016, 23:16
I use izotope Rx5, result is really good and has batch tool