AC9BX
Member
Greetings,
If you're like me you're enjoying the usefulness of the the recordings from the scanner. I like to take the previous day or two, drop them into a media player (I'm using Winamp for this) and listen straight through. But, you will notice there's periods of silence. If you lengthen the delay as I've done, as long as 6 seconds for certain things, this silence is just a waste of time when listening back this way. And/or if you would like to play these files somewhere that does not support the scanner's audio format you'll have to convert them.
So, I created a tiny little Windows batch script that processes the recordings and uses FFMPEG to convert them to MP3. MP3 is useful if you want to play them on an Android device, or from a CD-R in the car, or portable media player, etc., anything that will play MP3 but not AU.
The AU format from the scanner uses μ-law algorithm. Most any computer can play this. But your car stereo for example from a USB flash drive or CD-R will not. If you're long term archiving the MP3s will be a little smaller as well.
How it works:
The script resides in the parent folder, My Documents > WS1095 Digital > Audio or wherever you choose to store the recordings. It searches through the parent and all child folders for AU files. I chose to delete everything 6 seconds or less. It's typically silence or the last blip of someone's conversation anyway. It does this by looking at the file size not the duration, and deletes AU files smaller than 60k. Then it calls FFMPEG and converts the AU to MP3 at 32k which is more than enough for the limited audio bandwidth. It also adds a low pass filter to remove the noises of LTR, CTCSS, and DSC, and anything else below 300Hz. It skips silence longer than 1 second. This means silence, where the recording is still going but the signal has stopped. It will not remove signal background noise where no one is speaking such as a repeater that is still transmitting while waiting for a call back. This means if you set delay longer than 1 second those pauses will be removed, much nicer at playback. ID3v2 tags are added with the folder name as artist and file name as title. It then deletes the AU file.
You will need the free FFMPEG tool. If you're not familiar with this it is among the very best and most powerful video and audio conversion and encoding tools. It does everything. This is all free, no license is required for personal use at all.
You can tweak the script as you see fit, use a different encoding tool, whatever. I just wanted to share. I offer no warranty. The script is attached as a zip.
View attachment convert.zip
You can get FFMPEG here. You need the FFMPEG.exe. It must be in the same folder as the script or it can be placed in Windows > System32 where it will be available everywhere in the system. You need not worry about any of the rest. Most any recent build should work fine as long as it has the filters I am using. If it doesn't you can eliminate them from the script. You could of course change all the filter and encoding parameters as you see fit.
https://ffmpeg.zeranoe.com/builds/
If you're like me you're enjoying the usefulness of the the recordings from the scanner. I like to take the previous day or two, drop them into a media player (I'm using Winamp for this) and listen straight through. But, you will notice there's periods of silence. If you lengthen the delay as I've done, as long as 6 seconds for certain things, this silence is just a waste of time when listening back this way. And/or if you would like to play these files somewhere that does not support the scanner's audio format you'll have to convert them.
So, I created a tiny little Windows batch script that processes the recordings and uses FFMPEG to convert them to MP3. MP3 is useful if you want to play them on an Android device, or from a CD-R in the car, or portable media player, etc., anything that will play MP3 but not AU.
The AU format from the scanner uses μ-law algorithm. Most any computer can play this. But your car stereo for example from a USB flash drive or CD-R will not. If you're long term archiving the MP3s will be a little smaller as well.
How it works:
The script resides in the parent folder, My Documents > WS1095 Digital > Audio or wherever you choose to store the recordings. It searches through the parent and all child folders for AU files. I chose to delete everything 6 seconds or less. It's typically silence or the last blip of someone's conversation anyway. It does this by looking at the file size not the duration, and deletes AU files smaller than 60k. Then it calls FFMPEG and converts the AU to MP3 at 32k which is more than enough for the limited audio bandwidth. It also adds a low pass filter to remove the noises of LTR, CTCSS, and DSC, and anything else below 300Hz. It skips silence longer than 1 second. This means silence, where the recording is still going but the signal has stopped. It will not remove signal background noise where no one is speaking such as a repeater that is still transmitting while waiting for a call back. This means if you set delay longer than 1 second those pauses will be removed, much nicer at playback. ID3v2 tags are added with the folder name as artist and file name as title. It then deletes the AU file.
You will need the free FFMPEG tool. If you're not familiar with this it is among the very best and most powerful video and audio conversion and encoding tools. It does everything. This is all free, no license is required for personal use at all.
You can tweak the script as you see fit, use a different encoding tool, whatever. I just wanted to share. I offer no warranty. The script is attached as a zip.
View attachment convert.zip
You can get FFMPEG here. You need the FFMPEG.exe. It must be in the same folder as the script or it can be placed in Windows > System32 where it will be available everywhere in the system. You need not worry about any of the rest. Most any recent build should work fine as long as it has the filters I am using. If it doesn't you can eliminate them from the script. You could of course change all the filter and encoding parameters as you see fit.
https://ffmpeg.zeranoe.com/builds/