GstWebRTC - Vp8 Examples: Difference between revisions
Jcaballero (talk | contribs) No edit summary |
Jcaballero (talk | contribs) No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{GstWebRTC Page| | {{GstWebRTC Page| | ||
[[GstWebRTC - | [[GstWebRTC - H264 Examples|H264]]| | ||
[[GstWebRTC - | [[GstWebRTC - Audio + Video Examples |Audio + Video]]| | ||
This page presents the GstWebRTC Vp8 video examples with the OpenWebRTC signaler. | This page presents the GstWebRTC Vp8 video examples with the OpenWebRTC signaler. | ||
Line 11: | Line 11: | ||
The following pipeline will send a color bars vp8 video stream: | The following pipeline will send a color bars vp8 video stream: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
gst-launch-1.0 webrtcsink start-call=true signaler::server_url=http://webrtc.ridgerun.com:8080 \ | gst-launch-1.0 webrtcsink start-call=true signaler=GstOwrSignaler signaler::server_url=http://webrtc.ridgerun.com:8080 \ | ||
signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ | signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ | ||
vp8enc ! rtpvp8pay ! queue ! identity ! web.video | vp8enc ! rtpvp8pay ! queue ! identity ! web.video | ||
Line 18: | Line 18: | ||
The following pipeline will receive the video stream and display it: | The following pipeline will receive the video stream and display it: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
gst-launch-1.0 webrtcsrc start-call=false signaler::server_url=http://webrtc.ridgerun.com:8080 \ | gst-launch-1.0 webrtcsrc start-call=false signaler=GstOwrSignaler signaler::server_url=http://webrtc.ridgerun.com:8080 \ | ||
signaler::session_id=1234ridgerun name=web web.video ! rtpvp8depay ! vp8dec ! videoconvert ! \ | signaler::session_id=1234ridgerun name=web web.video ! rtpvp8depay ! vp8dec ! videoconvert ! \ | ||
ximagesink async=true | ximagesink async=true | ||
Line 32: | Line 32: | ||
The following pipeline starts the call: | The following pipeline starts the call: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
gst-launch-1.0 webrtcbin start-call=true signaler::server_url=http://webrtc.ridgerun.com:8080 \ | gst-launch-1.0 webrtcbin start-call=true signaler=GstOwrSignaler signaler::server_url=http://webrtc.ridgerun.com:8080 \ | ||
signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ | 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 ! \ | vp8enc ! rtpvp8pay ! queue ! identity silent=false ! web.video_sink web.video_src ! rtpvp8depay ! \ | ||
Line 41: | Line 41: | ||
The following pipeline joins the call: | The following pipeline joins the call: | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
gst-launch-1.0 webrtcbin start-call=false signaler::server_url=http://webrtc.ridgerun.com:8080 \ | gst-launch-1.0 webrtcbin start-call=false signaler=GstOwrSignaler signaler::server_url=http://webrtc.ridgerun.com:8080 \ | ||
signaler::session_id=1234ridgerun name=web videotestsrc is-live=true ! queue ! videoconvert ! \ | 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 \ | vp8enc ! rtpvp8pay ! queue ! identity silent=false ! web.video_sink web.video_src ! rtpvp8depay \ |
Latest revision as of 15:36, 8 August 2017
← |
⌂ Home |
→ |
This page presents the GstWebRTC Vp8 video examples with the OpenWebRTC signaler.
Unidirectional Elements
Example
In this example we use webrtcsink to send a video stream and webrtcsrc to receive the video stream.
Send Pipeline
The following pipeline will send a color bars vp8 video stream:
gst-launch-1.0 webrtcsink start-call=true signaler=GstOwrSignaler 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
Receive Pipeline
The following pipeline will receive the video stream and display it:
gst-launch-1.0 webrtcsrc start-call=false signaler=GstOwrSignaler 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 Element
Example
In this example we use two webrtcbin elements, each sends a video stream and receives each other video stream.
Send-Receive Pipeline
The following pipeline starts the call:
gst-launch-1.0 webrtcbin start-call=true signaler=GstOwrSignaler 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
Send-Receive Pipeline
The following pipeline joins the call:
gst-launch-1.0 webrtcbin start-call=false signaler=GstOwrSignaler 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 |
→ |