webrtc example: feeding video data from a pipeline

Anton Pryima zingfrid at gmail.com
Sat Oct 10 11:57:42 UTC 2020


Hi Guennadi,

In such a case, you do not need a video decoder on the RPi side.
What is your receiving side? If it is a browser, please, ensure that the
required H264 profile is supported on the receiving side.
(profile you can check in SDP you've got from RPI). This can cause video
freezing or absence at all.

To receive just audio at RPi, you need to comment out
handle_media_stream (pad, pipe, "videoconvert", "autovideosink"); at line
167 of sendrecv/gst/webrtc-sendrecv.c.

Then, at line 383 of the same file, you need to change:
"videotestsrc is-live=true pattern=ball
to your:
"raspivid -t 0 -h 480 -w 640 -fps 25 -hf -b 2000000
(same change for your audio stream)

Leave everything as is.

Best regards,
Anton.

On Sat, Oct 10, 2020 at 2:26 PM Guennadi Liakhovetski <g.liakhovetski at gmx.de>
wrote:

> Hi Anton,
>
> On Sat, 10 Oct 2020, Anton Pryima wrote:
>
> > Hello Guennadi,
> >
> > >From your attachment, it is not clear what are you planning to achieve.
> Is
> > RPi the 'send only' side, or you wanna get a stream from the browser at
> it?
> > The first log said that you have the wrong SDP (empty one). The second
> one
> > has errors in the decoder (but it is not clear why you need a decoder at
> > the RPi side.).
> >
> > Can you describe, what result are you expecting?
>
> In your previous email you asked me to verify whether and how well
> unmodified webrtc examples run on my RPi to check whether all plugins are
> available etc. So, my previous email contained exactly that - results of
> running two unmodified (well, the sources are modified, but I ran them in
> case of sendrecv in the original mode, in case of sendonly modified for
> videotestsrc) webrtc examples. That means, all the plugins are available,
> and the result is successful, even if I'm getting errors and the RPi
> reboots sporadically...
>
> The end-goal would be a "telepresence" type of a device: the RPi should
> send video and audio and should be able to receive and play back audio.
>
> Thanks
> Guennadi
>
> > Best regards,
> > Anton.
> >
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201010/c42c5b06/attachment.htm>


More information about the gstreamer-devel mailing list