GstWebRTC - PubNub Audio Examples - x86: Difference between revisions
No edit summary |
No edit summary |
||
Line 32: | Line 32: | ||
PEER_CHANNEL=123peer | PEER_CHANNEL=123peer | ||
gst-launch-1.0 webrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | gst-launch-1.0 webrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | ||
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | ||
web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 44: | Line 42: | ||
PEER_CHANNEL=123 | PEER_CHANNEL=123 | ||
gst-launch-1.0 webrtcbin rtcp-mux=true start-call=false signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | gst-launch-1.0 webrtcbin rtcp-mux=true start-call=false signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ | ||
audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ | ||
web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} |
Revision as of 18:01, 20 February 2018
Problems running the pipelines shown on this page? |
← |
⌂ Home |
→ |
This page presents some GstWebRTC audio examples using PubNub.
Opus
Example
In this example we use two webrtcbins, each send an audio stream, and receives each other audio stream.
x264
It seems that browsers do not get along with x264 because of SEI NAL units sent with the stream. As a workaround, we set key-int-max=1 and avoid the SEI insertions.
Send-Receive Pipeline
USER_CHANNEL=123 PEER_CHANNEL=123peer gst-launch-1.0 webrtcbin rtcp-mux=true start-call=true signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink
Send-Receive Pipeline
USER_CHANNEL=123peer PEER_CHANNEL=123 gst-launch-1.0 webrtcbin rtcp-mux=true start-call=false signaler::user-channel=$USER_CHANNEL signaler::peer-channel=$PEER_CHANNEL name=web \ audiotestsrc is-live=true ! opusenc ! rtpopuspay ! web.audio_sink \ web.audio_src ! rtpopusdepay ! opusdec ! autoaudiosink
← |
⌂ Home |
→ |