Using avconv to stream live audio from in-line (alsa hw:0,0) over wireless access point to a client.
Asked Answered
B

1

7

I have linaro 12.06 installed on my Miniand's Hackberry(https://www.miniand.com/products/Hackberry%20A10%20Developer%20Board).

I have wireless access point up on the hackberry with the ssid of HACK

I am using this command on the hackberry:

avconv -f alsa -ac 1 -i hw:0,0 -acodec mp2 -b 64k -f rtp rtp://10.0.0.1:1234

So using my laptop I connected to the hackberry "HACK" and then I pulled up the terminal and typed in

avplay -i rtp://10.0.0.1:1234

I am not getting any audio signal. Do you know what I am doing wrong?

On the hackberry, If I run

avconv -f alsa -ac 1 -i hw:0,0 -acodec mp2 -b 64k -f rtp rtp://10.0.0.1:1234

and with a new terminal screen run

avplay -i rtp://10.0.0.1:1234

I can hear the audio perfectly fine.

I am trying to avoid using a streaming server.

Can anyone help?

thank you!

Brote answered 12/1, 2013 at 22:3 Comment(0)
C
4

I don't know your network topology but 10.0.0.1 used to be a default gateway IP.

RTP send a stream to a specific host (unless you are using multicast).

So rather than

avconv -f alsa -ac 1 -i hw:0,0 -acodec mp2 -b 64k -f rtp rtp://10.0.0.1:1234

On the device side, I would use:

avconv -f alsa -ac 1 -i hw:0,0 -acodec mp2 -b 64k -f rtp rtp://{IP of your laptop}:1234

On your laptop:

avplay -i rtp://127.0.0.1:1234

I'm using avconv/avplay that way.

Best Regards, Frederic

Croaky answered 24/1, 2013 at 9:1 Comment(1)
And if you want to send audio/video to all LAN IP?Aphrodisia

© 2022 - 2024 — McMap. All rights reserved.