linking the audio elements would help

sending audio does work now
parent 79fdda3a
......@@ -9,6 +9,15 @@
rtpbin.send_rtcp_src_0 ! udpsink host=${REMOTE} port=5003 sync=false async=false \
udpsrc port=5007 ! rtpbin.recv_rtcp_sink_0
*/
/* running ./sender
we could receive some audio
gst-launch-1.0 -v rtpbin name=rtpbin \
udpsrc caps="application/x-rtp,media=(string)audio,clock-rate=(int)8000,encoding-name=(string)G722" \
port=5002 ! rtpbin.recv_rtp_sink_1 \
rtpbin. ! rtppcmadepay ! alawdec ! pulsesink \
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1 \
rtpbin.send_rtcp_src_1 ! udpsink host=${REMOTE} port=5007 sync=false async=false
*/
typedef struct {
GstElement *pipeline;
......@@ -69,6 +78,8 @@ main (int argc, char**argv) {
gst_bin_add_many (GST_BIN (data.pipeline), data.source, data.encoder,
data.payloader, NULL);
if (!gst_element_link_many (data.source, data.encoder, data.payloader, NULL))
g_error ("Failed to link audiosrc encoder and payloader");
gst_bin_add (GST_BIN (data.pipeline), data.rtpbin);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment