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

From RidgeRun Developer Connection
Jump to: navigation, search
(Created page with " ***This wiki page is under construction***")
 
m
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
    ***This wiki page is under construction***
+
{{GstWebRTC/Head|previous=PubNub Audio Examples - TX1/TX2|next=PubNub Audio + Video Examples -TX1/TX2|keywords=signaling,examples}}
 +
 
 +
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 ====
 +
 
 +
<syntaxhighlight lang=bash>
 +
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
 +
</syntaxhighlight>
 +
 
 +
== 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 ====
 +
 
 +
<syntaxhighlight lang=bash>
 +
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
 +
</syntaxhighlight>
 +
 
 +
 
 +
{{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