Cr0wstuf
Posts: 4
Joined: Sun Jun 30, 2013 1:46 am

Issues with streaming audio from usb over network.

Sat Jul 06, 2013 2:25 am

Hey everyone. Was wondering if I may be able to get a hand.

Ive been trying to figure out how to setup one of my pi's as a video baby monitor. I read everywhere and couldnt figure out an all in one solution for audio and video streaming, so I figured I would do both separately.

I purchased a MS Lifecam NX3000 and installed Motion. That works perfectly. I can connect to the server on any device on my network.

The issue is getting audio working. I am trying to start a stream from the webcams integrated microphone and connect from any device on my network. I have looked up info everywhere and have had barely any luck.

I found instructions to use arecord to send the stream to ffmpeg and encode to mp3 then stream over a multicast. I have it working but the audio is extremely choppy and almost unusable. Is there something I am doing wrong? Is there anything I can change to make it work better?

This is the command I am using:

arecord -f cd -D plughw:0,0 | ffmpeg -i - -acodec libmp3lame -ab 16k -ac 1 -re -f rtp rtp://234.5.5.5:1234


Any help would be greatly appreciated!!!

Return to “Staffroom, classroom and projects”