Difference between revisions of "GstWebRTC - PubNub Video Examples - TX1/TX2"

From RidgeRun Developer Connection
Jump to: navigation, search
m
m
 
Line 1: Line 1:
{{GstWebRTC Page|
+
{{GstWebRTC/Head|previous=PubNub Audio Examples - TX1/TX2|next=PubNub Audio + Video Examples -TX1/TX2|keywords=signaling,examples}}
[[GstWebRTC - PubNub Audio Examples - TX1/TX2 |Audio - TX1/TX2]]|
 
[[GstWebRTC - PubNub Audio + Video Examples -TX1/TX2|Audio + Video - TX1/TX2]]|
 
  
 
This page presents some GStreamer GstRrWebRTC video examples on TX1/TX2/Xavier platform using PubNub.
 
This page presents some GStreamer GstRrWebRTC video examples on TX1/TX2/Xavier platform using PubNub.
Line 38: Line 36:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
|keywords=signaling,examples}}
+
 
 +
{{GstWebRTC/Foot|previous=PubNub Audio Examples - TX1/TX2|next=PubNub Audio + Video Examples -TX1/TX2}}

Latest revision as of 15:46, 13 April 2020



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