GstWebRTC - Video Examples - TX1/TX2

From RidgeRun Developer Wiki




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




This page presents video examples on TX1/TX2/Xavier platform using OpenWebRTC.

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


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