Difference between revisions of "GstWebRTC - Video Examples - TX1/TX2"
m |
(→VP8) |
||
Line 39: | Line 39: | ||
omxvp8dec ! videoconvert ! ximagesink async=true | omxvp8dec ! videoconvert ! ximagesink async=true | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | |||
− | |||
− | |||
{{GstWebRTC/Foot|previous=Audio Examples - TX1/TX2|next=Audio + Video Examples - TX1/TX2}} | {{GstWebRTC/Foot|previous=Audio Examples - TX1/TX2|next=Audio + Video Examples - TX1/TX2}} |
Revision as of 17:28, 4 May 2021
GstWebRTC | ||||||||
---|---|---|---|---|---|---|---|---|
WebRTC Fundamentals | ||||||||
GstWebRTC Basics | ||||||||
|
||||||||
Evaluating GstWebRTC | ||||||||
Getting the code | ||||||||
Building GstWebRTC | ||||||||
Examples | ||||||||
|
||||||||
MCU Demo Application | ||||||||
Contact Us |
This page presents video examples on TX1/TX2/Xavier platform using OpenWebRTC.
Contents
H264
Unidirectional Elements
Example
In this example we use rrwebrtcbin to send a video stream.
Send Pipeline
The following pipeline will send a color bars h264 video stream:
gst-launch-1.0 rrwebrtcbin start-call=true signaler=GstOwrSignaler signaler::server_url=https://webrtc.ridgerun.com:8443 \
signaler::session_id=testid1 name=web videotestsrc is-live=true ! queue ! nvvidconv ! \
omxh264enc insert-sps-pps=true ! h264parse ! rtph264pay ! \
capssetter caps="application/x-rtp,profile-level-id=(string)42c01f" ! queue ! web.video_sink
VP8
Bidirectional Element
Example
In this example we use two rrwebrtcbin elements, each sends a video stream and receives each other video stream.
Send-Receive Pipeline
The following pipeline starts the call:
rrwebrtcbin start-call=true signaler=GstOwrSignaler signaler::server_url=https://webrtc.ridgerun.com:8443 \
signaler::session_id=testid1 name=web nvcamerasrc sensor-id=0 ! nvvidconv ! \
omxvp8enc ! rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! \
omxvp8dec ! videoconvert ! ximagesink async=true
Send-Receive Pipeline
The following pipeline joins the call:
rrwebrtcbin start-call=false signaler=GstOwrSignaler signaler::server_url=https://webrtc.ridgerun.com:8443 \
signaler::session_id=testid1 name=web nvcamerasrc sensor-id=0 ! nvvidconv ! \
omxvp8enc ! rtpvp8pay ! web.video_sink web.video_src ! rtpvp8depay ! \
omxvp8dec ! videoconvert ! ximagesink async=true