Audio udp streaming

I made a working system using this as a sender (coded in C)

#!/bin/sh
gst-launch-1.0 -v pulsesrc device=alsa_input.usb-0d8c_USB_Sound_Device-00.analog-stereo ! queue ! audioconvert ! audioresample ! audio/x-raw,rate=22000,channels=1 ! rtpL24pay ! udpsink host=127.0.0.1 port=3447

But foolishly I lost the working receive client.
This pipeline works silently.

#!/bin/sh
gst-launch-1.0 -v udpsrc port=3447
! ‘application/x-rtp,media=audio,payload=96,clock-rate=22000,encoding-name=L24’
! rtpL24depay
! audioconvert
! autoaudiosink sync=false

Please can anyone help me to make a sound.

James

Hello,
I have found this on the net…

(server)
gst-launch-1.0 -v autoaudiosrc ! audioconvert ! rtpL24pay ! udpsink host=192.168.3.2 auto-multicast=true port=5000

(client)
|gst-launch-1.0 -v udpsrc uri=udp://192.168.3.2:5000 caps=“application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24” ! rtpL24depay ! audioconvert ! autoaudiosink sync=false|

It works.

I have tryed to save audio data on a file have some problems (zero file size)

(changed client this way…)

udpsrc uri=udp://192.168.3.2:5000 caps=“application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24” ! queue2 ! rtpL24depay ! queue2 ! audioconvert ! queue2 ! vorbisenc ! queue2 ! filesink location=myFile.ogg

BR

AGiuliani

I checked the client/server on my device and it do not work.
So I have changed the above pipelines in this way:

(server)
gst-launch-1.0 -v autoaudiosrc ! audioconvert ! rtpL24pay ! udpsink buffer-size=2500000 host=127.0.0.1 port=5600 auto-multicast=true

(client)
gst-launch-1.0 -v udpsrc buffer-size=2500000 port=5600 caps=“application/x-rtp,channels=(int)2,format=(string)S16LE,media=(string)audio,payload=(int)96,clock-rate=(int)44100,encoding-name=(string)L24” ! rtpL24depay ! audioconvert ! fakesink dump=true

Note that the output is on the console (only to check if data is arriving to destination…), and now on my device data is coming…

============================
handling interrupt.
00000190 (0xffffa800840c): 07 00 00 01 00 00 02 00 ff c2 00 00 00 00 ff 97 …
000001a0 (0xffffa800841c): 00 00 04 00 ff a5 00 00 06 00 ff 86 00 00 01 00 …
000001b0 (0xffffa800842c): ff 76 00 00 04 00 ff 9f 00 ff ff 00 ff a8 00 00 .v…
000001c0 (0xffffa800843c): 00 00 ff ee 00 ff fe 00 00 45 00 00 02 00 00 a2 …E…
000001d0 (0xffffa800844c): 00 00 03 00 00 e1 00 00 03 00 00 99 00 00 02 00 …
Interrupt: Stopping pipeline …
000001e0 (0xffffa800845c): 00 20 00 00 03 00 ff c7 00 00 04 00 ff 9b 00 00 . …
Execution ended after 0:00:01.520544500
Setting pipeline to PAUSED …
000001f0 (0xffffa800846c): 05 00 ff 65 00 00 03 00 ff 94 00 00 06 00 ff b1 …e…
00000200 (0xffffa800847c): 00 00 03 00 ff b2 00 00 04 00 ff 71 00 00 05 00 …q…

BR

AGiuliani