GstWebRTC - Vp8 Examples: Difference between revisions
Jcaballero (talk | contribs) No edit summary |
Jcaballero (talk | contribs) No edit summary |
||
Line 2: | Line 2: | ||
[[GstWebRTC - GstWebRTC Basics|GstWebRTC Basics]]| | [[GstWebRTC - GstWebRTC Basics|GstWebRTC Basics]]| | ||
[[GstWebRTC - GstWebRTC Pipelines |GstWebRTC Pipelines]]| | [[GstWebRTC - GstWebRTC Pipelines |GstWebRTC Pipelines]]| | ||
This page presents the GstWebRTC Vp8 video examples with the OpenWebRTC signaler. | |||
==Unidirectional== | ==Unidirectional== |
Revision as of 01:37, 12 July 2017
← |
⌂ Home |
→ |
This page presents the GstWebRTC Vp8 video examples with the OpenWebRTC signaler.
Unidirectional
Example
In this example we use webrtcsink to send a video stream and webrtcsrc to receive the video stream.
The following pipeline will send a color bars vp8 video stream:
gst-launch-1.0 webrtcsink start-call=true signaler::server_url=http://webrtc.ridgerun.com:8080 \ signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ vp8enc ! rtpvp8pay ! queue ! identity ! web.video
The following pipeline will receive the video stream and display it:
gst-launch-1.0 webrtcsrc start-call=false signaler::server_url=http://webrtc.ridgerun.com:8080 \ signaler::session_id=1234ridgerun name=web web.video ! rtpvp8depay ! vp8dec ! videoconvert ! \ ximagesink async=true
You should be able to see a video pattern similar to Fig.1.
Bidirectional
Example
In this example we use two webrtcbin elements, each sends a video stream and receives each other video stream.
The following pipeline starts the call:
gst-launch-1.0 webrtcbin start-call=true signaler::server_url=http://webrtc.ridgerun.com:8080 \ signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ vp8enc ! rtpvp8pay ! queue ! identity silent=false ! web.video_sink web.video_src ! rtpvp8depay ! \ vp8dec ! videoconvert ! ximagesink async=true
The following pipeline joins the call:
gst-launch-1.0 webrtcbin start-call=false signaler::server_url=http://webrtc.ridgerun.com:8080 \ signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ vp8enc ! rtpvp8pay ! queue ! identity silent=false ! web.video_sink web.video_src ! rtpvp8depay \ ! vp8dec ! videoconvert ! ximagesink async=true
You should be able to see two windows with a video pattern similar to Fig.1.
← |
⌂ Home |
→ |