I am working on a project where I need to post a bunch of audio files in various formats.
- First, the files must be converted to the .WAV format.
- Secondly, depending on their length, I need to insert a short sound watermark at regular intervals in each of the new .WAV files.
The first part is simple using the LAME cli encoder. the second part is where it gets difficult - I tried several methods with LAME and FFmpeg, but I can't get it to work.
The script works like a cron job in the background, so full access to cli is available.
If possible, it would be great if someone could give me an example script / gem or class that does this in some way.
source share