<div dir="ltr">Hi All,<div><br></div><div>Any help on this?</div><div><br></div><div>Thanks,</div><div>Mayank</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 10, 2020 at 4:30 PM Mayank Aggarwal <<a href="mailto:maggarwal.securustech@gmail.com">maggarwal.securustech@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr">Hi Gstreamer experts,<div><br></div><div>I am a beginner with gstreamer so bear with me.</div><div><br></div><div>I have a working pipeline where audio and video from a test source is sent to the webrtcbin element used to send out offer. Pipeline is as follows:</div><div><br></div><div>PIPELINE_DESC = '''<br>webrtcbin name=sendrecv stun-server=stun://<a href="http://stun.l.google.com:19302" target="_blank">stun.l.google.com:19302</a><br> audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay !<br> queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv.<br> videotestsrc is-live=true pattern=ball ! video/x-raw,width=320,height=240 ! videoconvert ! queue ! x264enc ! rtph264pay !<br> queue ! application/x-rtp,media=video,encoding-name=H264,payload=97 ! sendrecv.<br>'''<br></div><div>However doing this consumes a lot of CPU/Memory as gstreamer has to encode audio/video. Hence I was to use a pre-recorded file to lower the resource usage.</div><div><br></div><div><br></div><div>I want to use a sample file (sample.mp4) to send audio and video to the webRTCbin element. The mp4 file has H264 video and AAC audio. I have tried a lot of combinations of elements but it is not working. Could you please help me correct my pipeline? </div><div><br></div><div>PIPELINE_DESC = '''<br></div><div>webrtcbin name=sendrecv stun-server=stun://<a href="http://stun.l.google.com:19302" target="_blank">stun.l.google.com:19302</a><br> filesrc location=sample.mp4 ! decodebin ! audioconvert ! sendrecv.<br> filesrc location=sample.mp4 ! decodebin ! videoconvert ! sendrecv.<br>'''<br></div><div><br></div><div>Many thanks in advance.</div><div><br></div><div>Thanks,</div><div>Mayank</div></div>
</div></div>
</blockquote></div>