<div dir="ltr"><div><div><div><div><div><div>Hi,<br><br></div>I am trying to broadcast to rtmp server by mixing both audio and video from two different rtspsrc. <br><br></div>Here is the gst_launch pipeline which works for me always : <br><br>gst-launch-1.0  flvmux name=mux streamable=true ! queue ! rtmpsink sync=true location="rtmp://xxxxxxxxxxxx" rtspsrc location="rtsp://<a href="http://192.168.0.157:7001/yamahamg10xu.sdp">192.168.0.157:7001/yamahamg10xu.sdp</a>" caps="application/x-rtp, media=(string)audio, clock-rate=(int)90000, encoding-name=(string)MPA, payload=(int)96" ! rtpjitterbuffer latency=1000 ! rtpmpadepay !  mpegaudioparse ! queue ! mad ! audioconvert ! queue ! voaacenc bitrate=64000 ! aacparse ! audio/mpeg,mpegversion=4,stream-format=raw ! queue ! mux. rtspsrc location="rtsp://<a href="mailto:admin%3Afallenjiva@192.168.0.16">admin:fallenjiva@192.168.0.16</a>$1:554/cam/realmonitor?channel=1&subtype=0" ! rtpjitterbuffer latency=1000 ! rtph264depay ! shift delay=550000 running-time=true ! queue ! mux.<br><br></div>My goal is to translate entire pipeline in C code so that i can do more operations dynamically in pipeline. Here is the my entire code: <br><br><b>[1] C CODE LINK FOR THIS: </b><br><a href="http://hastebin.com/raw/dilagikuti">http://hastebin.com/raw/dilagikuti </a><br><br></div><div><br></div>I am always getting error from following line of code: <br><br>    if (gst_pad_link (video_queue_src_pad, flvmux_sink_video_pad) != GST_PAD_LINK_OK ) {<br>        printf("unable to link video queue with flvmixer\n");<br>        exit(1);<br>    }<br><br></div><div><br></div>I created request pad for flvmux and tried to link with queue element in <b>[1] . but it still fails. <br><br></b></div><b>I am new to gstreamer framework. Any idea what I am missing to link two queue element (one for audio) and (another for video) to flvmux ? <br></b><div><div><div><div><br></div></div></div></div></div>