Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi everyone.
I am now using vlc to do the audio streaming and would like to add silence detection function.
I planned to use Streamripper to record audio streaming and save as mp3 format to haddisk every 10 seconds.
Then run a script to check each mp3 file have silence or not. If it have silence around 5 seconds it will send a alert to us.
Does any software can detect the silence of mp3 file? I am using Centos 6.7 text mode.
Thank you very much!
dexfcoss, your post is missing a lot of crucial information.
you should provide us with something to work with, if you want help.
please read the first link in my signature.
additionally, i think the question can be answered with a simple search?
dexfcoss, your post is missing a lot of crucial information.
you should provide us with something to work with, if you want help.
please read the first link in my signature.
additionally, i think the question can be answered with a simple search?
Hi ondoho,
I am sorry for missing crucial information.i am now using linux centos 6.7 32bit text only, VLC version 1.1.13 and Streamripper 1.64.6.
The ideal flow chart should be:
VLC streaming ---> record by Streamripper via internet and save as mp3 file every 10 seconds ---> use software to detect threshold from saved mp3 ---> send email if threshold too low around 5 seconds
After some research from internet before, I tried jacksilent, sox, ffmpeg etc. But still cannot figure out how can detect audio threshold from mp3.
Sorry if any misunderstanding caused. Thanks
I used mp3splt some time ago after recording some vinyl records. The "silence detection" actually worked on studio albums - splitting the sound into songs. It has lots of options. Read the man page - I think the file "mp3splt.log" will have silence information after using the -s option.
It is a package ready to install in Debian, I don't know about CentOS.
so there's a dedicated app that can detect silence.
i'm sure e.g. sox could do the same...
then you still have to write yourself a script around that, a script that does what you want.
show some effort, then we'll be willing to assist you further.
Thanks Guttorm and ondoho.
After tried sox and mp3splt more deeply. I find that sox and mp3splt can only open noise only mp3 file. If i try to open audio mp3, it will display the following error:
I am now solve the problem. I tried to use ffmpeg change mp3 to ogg and then mp3splt work normally.
Now i can check the average audio level every 15 seconds. Thanks Guttorm and ondoho.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.