ashishbajaj99 / mic

A simple stream wrapper for arecord (Linux (including Raspbian)) and sox (Mac, Windows). Returns a Passthrough stream object so that stream control like pause(), resume(), pipe(), etc. are all available.
MIT License
103 stars 61 forks source link

After a while, arecord overruns #38

Open EwanRoycroft opened 4 years ago

EwanRoycroft commented 4 years ago

I am using mic to record an audio input and stream it to an Icecast server: RiversideRadio/radio-streamer

It stops after about 9-10 hours with the following error reported by mic:

Received Info: overrun!!! (at least 33356345.350 ms long)

I'm running Ubuntu 20.04, so using the arecord interface.

EwanRoycroft commented 4 years ago

I created a thread on the Linux forums about this, and responses suggest this happens when arecord struggles to access resources. From that thread, and elsewhere, I can't seem to find many suggestions to fix this without using some other software to record. The suggestion on the forum thread is to use SoX, and I can see that mic uses it on Windows. Is there any reason that SoX isn't used for Mac/Linux? Or should it be relatively painless to swap the backend?