webrtc demos

Fabio Zingaro fabio.zingaro at gmail.com
Fri Apr 10 15:29:30 UTC 2020


Hi guys,

i need your help on 2 topics:

*1) Build problems on embedded yocto linux*
i'm trying to build this example (
https://github.com/centricular/gstwebrtc-demos/tree/master/sendonly) on a
Evaluation Board ARMv7l with gstreamer 1.14.4 installed (with all plugins,
include files, etc).

when i launch make i obtain this:

```
webrtc-unidirectional-h264.c: In function 'create_receiver_entry':
webrtc-unidirectional-h264.c:177:3: error: unknown type name
'GstWebRTCRTPTransceiver'
   GstWebRTCRTPTransceiver *trans;
   ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glib-2.0/glib.h:31:0,
                 from webrtc-unidirectional-h264.c:2:
webrtc-unidirectional-h264.c:213:40: error: 'GstWebRTCRTPTransceiver'
undeclared (first use in this function)
   trans = g_array_index (transceivers, GstWebRTCRTPTransceiver *, 0);
```

on a Ubuntu Linux x86_64 18.04 with gstreamer 1.14.5 it compiles and run
without problems.

*Comparing *.so, *.pc and *.h files on embedded board and linux machine i
don't see differences.*

Searching on google i've found some similar problems related to GNU Make
version. I've 4.2.1 on the board and 4.1 on the Linux PC.

*2) Bridging RTSP stream to webrtc web page*
continuing my experiments on ubuntu x86_64 i've tried to change the
pipeline removing v4l2 source and inserting a videotestsrc with no
problems, it worked.
Now i'm trying to read a RTSP stream from an IP camera but i doesn't work
and i've no errors on console.

this is the pipeline:
```
receiver_entry->pipeline = gst_parse_launch (" rtspsrc location=//" RTSPSRC
" "
"! webrtcbin name=webrtcbin stun-server=stun://" STUN_SERVER " "
"! queue ! rtph264depay ! rtph264pay !
application/x-rtp,media=video,encoding-name=H264,payload=96 ! webrtcbin. ",
&error);
```

Thanks.

Fabio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200410/2b72ef20/attachment.htm>


More information about the gstreamer-devel mailing list