Transform Audio Files Bit Rate

I download music for car stereo but it’s not support 160k bit rate files. And this audio files little big (like ~700MB).

So i decided write a program for this. In short project link is here. You must add your files to “input” and double-click main. Your transformed files saved in “out”.

For long let’s code some go code and run it.

First we need ffmpeg library in Windows. You can install from here. Extract it and go bin folder. Copy “ffmpeg.exe” to project folder. And open input and out folders. Then open the main.go file. I use baisic way for this. OS/Exec is used in here.

Line 11 : filepath.Walk() function will walk in input dir and run func for every file.

Line 13 : I wrote baisic ffmpeg convert script.

And build it with go build . Now we can publish it as a folder. Zip it and upload Google Drive.

Junior Software Engineer @VirtualMetric