GstWebRTC - PubNub Video Examples - TX1/TX2

From RidgeRun Developer Wiki




Previous: PubNub Audio Examples - TX1/TX2 Index Next: PubNub Audio + Video Examples -TX1/TX2




This page presents some GStreamer GstRrWebRTC video examples on TX1/TX2/Xavier platform using PubNub.

H264

Unidirectional elements

Example

In this example, we use rrwebrtcbin to send a video stream.

Send Pipeline

Set the USER_CHANNEL and PEER_CHANNEL
gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL \
signaler::peer-channel=$PEER_CHANNEL name=web videotestsrc  ! nvvidconv ! omxh264enc insert-sps-pps=true ! \
h264parse ! rtph264pay ! capssetter caps="application/x-rtp,profile-level-id=(string)42c01f" ! queue ! web.video_sink

VP8

Bidirectional elements

Example

In this example we use two rrwebrtcbins, each send a video stream, and receives each other video stream.

Send-Receive Pipeline

Set the USER_CHANNEL and PEER_CHANNEL
gst-launch-1.0 rrwebrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL \
signaler::peer-channel=$PEER_CHANNEL name=web nvcamerasrc sensor-id=0  ! nvvidconv ! omxvp8enc ! \
rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! omxvp8dec ! videoconvert ! autovideosink



Previous: PubNub Audio Examples - TX1/TX2 Index Next: PubNub Audio + Video Examples -TX1/TX2