Automatic WAV to MP3 script (enjoy)
- KVRist
- Topic Starter
- 455 posts since 13 Mar, 2018
Hi everyone.
I got fed up of Ableton Live 9 not being able to render a song in MP3. That's ridiculous.
So I wrote a Node.JS script that automatically converts any WAV in a certain folder to MP3. Yes, it's command line shit, but it's very simple, actually. It creates an INPUT and an OUTPUT folder. When you run the script in Watch mode, any WAV file that is saved into INPUT is converted to MP3 (192kb, but that is editable) and saved to OUTPUT folder.
OK, here it is. Enjoy.
https://github.com/ignaciosegura/wav_to_mp3
It's Node.JS, so it will work on Windows, Mac and Linux.
I got fed up of Ableton Live 9 not being able to render a song in MP3. That's ridiculous.
So I wrote a Node.JS script that automatically converts any WAV in a certain folder to MP3. Yes, it's command line shit, but it's very simple, actually. It creates an INPUT and an OUTPUT folder. When you run the script in Watch mode, any WAV file that is saved into INPUT is converted to MP3 (192kb, but that is editable) and saved to OUTPUT folder.
OK, here it is. Enjoy.
https://github.com/ignaciosegura/wav_to_mp3
It's Node.JS, so it will work on Windows, Mac and Linux.
MAN FROM SPACE
Spotify: https://open.spotify.com/artist/135uz9UwHtdXZgiFyAc3oz
SoundCloud: https://soundcloud.com/manfromspace
GumRoad (FREE Ableton racks and synth presets): https://gumroad.com/manfromspace
Spotify: https://open.spotify.com/artist/135uz9UwHtdXZgiFyAc3oz
SoundCloud: https://soundcloud.com/manfromspace
GumRoad (FREE Ableton racks and synth presets): https://gumroad.com/manfromspace
-
- KVRAF
- 4007 posts since 8 Jan, 2005 from Hamilton, New Zealand
You can also do it via command line lame, by setting up an action associated with the filetype (in windows this's easy, don't know about mac/lin) - so I just right-click on the .wav, and there's the option to convert to mp3, or convert to wavpack.
Also have it setup to right-click on mp3 and convert to wav.
Also have it setup to right-click on mp3 and convert to wav.
I make music: progressive-acoustic | electronica/game-soundtrack work | progressive alt-metal
Win 10/11 Simplifier | Also, Specialized C++ containers
Win 10/11 Simplifier | Also, Specialized C++ containers
- KVRist
- Topic Starter
- 455 posts since 13 Mar, 2018
Didn't know you could do that on Windows (Mac user here). Very convenient.
Actually, my script uses the command line version of LAME, it just automates the process and watches a folder.
Actually, my script uses the command line version of LAME, it just automates the process and watches a folder.
MAN FROM SPACE
Spotify: https://open.spotify.com/artist/135uz9UwHtdXZgiFyAc3oz
SoundCloud: https://soundcloud.com/manfromspace
GumRoad (FREE Ableton racks and synth presets): https://gumroad.com/manfromspace
Spotify: https://open.spotify.com/artist/135uz9UwHtdXZgiFyAc3oz
SoundCloud: https://soundcloud.com/manfromspace
GumRoad (FREE Ableton racks and synth presets): https://gumroad.com/manfromspace
- KVRAF
- 7137 posts since 8 Feb, 2003 from London, UK
You can also put stuff in your SendTo folder and Windows will add it to the places you can send (multiple) things -- I've all my format converter scripts in there as shortcuts. (As I don't like top-level clutter in right-click, more than any other reason...)
Here: %APPDATA%\Microsoft\Windows\SendTo
And I use ffmpeg for most things to most things...
That'll run through the selected files "sent to" it and convert them from whatever they are to MP3.
Here: %APPDATA%\Microsoft\Windows\SendTo
And I use ffmpeg for most things to most things...
Code: Select all
@echo off
set ffmpeg="D:\Program Files\ffmpeg\bin\ffmpeg.exe"
for %%f in (%*) do %ffmpeg% -hide_banner -threads auto -i "%%~sf" -vn -aq 0 -filter volume=replaygain=3 -y "%%~dpnf.mp3"
pause
-
- KVRAF
- 2256 posts since 29 May, 2012