Comments (9)
I am using this method which seems to work fine with PiFmRds.
from pifmrds.
This works great! Thanks 👍
To clarify to the common reader, my code is:
sudo arecord -fS16_LE -r 44100 -Dplughw:1,0 -c 2 - | sudo ./pi_fm_rds -freq 100.0 -ps 'Station1' -ctl rds_ctl -rt 'You are listening to Station1' -audio -
Using a USB Sound card: http://www.gearbest.com/development-boards/pp_176927.html?currency=GBP&gclid=CK6jqqqi2soCFRITGwodrWUN8Q
from pifmrds.
Run this overnight and get this now:
overrun!!! (at least 7.223 ms long)
Any fix for that? :-o
from pifmrds.
This is a little clearer, I installed again onto a fresh image, I get the feeling the program is designed to only run for a fixed length of time...
overrun!!! (at least 0.503 ms long) overrun!!! (at least 0.400 ms long) overrun!!! (at least 0.614 ms long) overrun!!! (at least 4.543 ms long) overrun!!! (at least 1.988 ms long) overrun!!! (at least 0.070 ms long) Could not rewind in audio file, terminating Terminating: cleanly deactivated the DMA engine and killed the carrier.
from pifmrds.
The program is not designed that way, it's definitely a bug :) Unfortunately I have no idea what is causing it.
Thanks for the command to pipe audio, I'll include it in the README and close this bug. We can track the issue of program stopping on bug #37.
By the way you mention the "overrun" and "terminating" messages. Do they happen all at the same time?
from pifmrds.
Note: I had a look at the "overrun" message: it's a message printed by arecord when the Alsa input buffer is full. Not sure of the interaction with PiFmRds.
from pifmrds.
Could there be any reason PiFmRds is "lagging behind" and not consuming the data at the speed ALSA is providing the data?
from pifmrds.
So..... we're killing the memory? Any way to get the program to automatically pick itself up again when it does stop?
from pifmrds.
Okay, so it seems the best way to compensate for this is to make the program accept data a bit faster. Try adding -ppm 125000 to the PiFmRds command and see if it works. Did the trick for me. If it doesn't, do some troubleshooting: if it skips backward decrease the ppm number. If it skips forward and throws an overrun, add to the ppm number. do this until it works fine. My number is 125000 with no issues for a few hours now.
Edit: tested on a Raspberry Pi 3
from pifmrds.
Related Issues (20)
- Make file is making error HOT 1
- just blocking HOT 2
- Make doesn't make a nothing HOT 9
- Doesn't compile! HOT 3
- cant pipe audio on pi4 using pulseaudio HOT 1
- Gives error when i use the make command HOT 4
- While compiling I get this soxr.h missing HOT 1
- Support for non-ASCII characters (RDS codes > 0x80) HOT 3
- Hardware related issue with additional FM transmitter HOT 7
- compile issue HOT 2
- Audio too slow HOT 2
- Instant crash on launch on Pi 4 HOT 5
- Mp3 to Wav converter HOT 1
- lack fpu HOT 4
- hi! Could you also make it pi5 compatible too? HOT 5
- Audio signal loss during mouse inactivity with pifmrds on Raspberry Pi 4 HOT 1
- Make Raspberry Pi 5 (GPIO23) Compatible HOT 2
- 19k Signal and Increasing RDS Power HOT 2
- Add gui HOT 1
- Would this work for AM radio too?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pifmrds.