<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>Make sure you encore you H.264 in your file as baseline profile (this is all that's supported for WebRTC), also you want to put the audio as opus.. Then you want to use qtdemux directly instead of decodebin, because you don't want to decode and re-encode. If you can't control the codecs of the pre-recorded file, you'll probably have to trancode everything..</div><div><br></div><div>Olivier</div><div><br></div><div>On Mon, 2020-01-13 at 16:01 -0500, Mayank Aggarwal wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><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 type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;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>
<pre>_______________________________________________</pre><pre>gstreamer-devel mailing list</pre><a href="mailto:gstreamer-devel@lists.freedesktop.org"><pre>gstreamer-devel@lists.freedesktop.org</pre></a><pre><br></pre><a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"><pre>https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</pre></a><pre><br></pre></blockquote><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>