yes i did that but with no success. i spent all night on that too.cdo wrote:Another option would be using inotifywait, as suggested here:
https://unix.stackexchange.com/question ... -new-files
I never tried this, but maybe it's worth a look.
Code: Select all
pi@rpi1HEADSETusb ~ $ while true ; do arecord -D plughw:1,0 -r 44100 -c 2 -f S16_LE | avconv -i - -acodec mp2 -ab 320k -ac 1 -f rtp rtp://22.214.171.124:5000 ; sleep 1 ; done