Difference between revisions of "GstWebRTC - PubNub Video Examples - TX1/TX2"
m |
m |
||
Line 1: | Line 1: | ||
− | {{GstWebRTC | + | {{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. | This page presents some GStreamer GstRrWebRTC video examples on TX1/TX2/Xavier platform using PubNub. | ||
Line 38: | Line 36: | ||
</syntaxhighlight> | </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
![]() |
GstWebRTC | ||||||||
---|---|---|---|---|---|---|---|---|
![]() | ||||||||
WebRTC Fundamentals | ||||||||
GstWebRTC Basics | ||||||||
|
||||||||
Evaluating GstWebRTC | ||||||||
Getting the code | ||||||||
Building GstWebRTC | ||||||||
Examples | ||||||||
|
||||||||
MCU Demo Application | ||||||||
Contact Us |
This page presents some GStreamer GstRrWebRTC video examples on TX1/TX2/Xavier platform using PubNub.
Contents
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