docs: update (#5747)
This commit is contained in:
@@ -22,4 +22,4 @@ Be aware that not all browsers can read any codec, check [Codec support in brows
|
||||
|
||||
Depending on the network it may be difficult to establish a connection between server and clients, read [Solving WebRTC connectivity issues](../2-features/26-webrtc-specific-features.md#solving-webrtc-connectivity-issues).
|
||||
|
||||
Some clients that can read with WebRTC and WHEP are [FFmpeg](06-ffmpeg.md), [GStreamer](07-gstreamer.md), [Unity](12-unity.md) and [web browsers](13-web-browsers.md).
|
||||
Some clients that can read with WebRTC and WHEP are [GStreamer](07-gstreamer.md), [Unity](12-unity.md) and [web browsers](13-web-browsers.md).
|
||||
|
||||
@@ -8,11 +8,24 @@ GStreamer can read a stream from the server in several ways. The recommended one
|
||||
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/mystream latency=0 ! decodebin ! autovideosink
|
||||
```
|
||||
|
||||
For advanced options, read [RTSP-specific features](../2-features/27-rtsp-specific-features.md).
|
||||
## GStreamer and RTMP
|
||||
|
||||
GStreamer supports reading streams with the RTMP protocol, but the path must be composed by at least two elements, for instance `mypath/mysubpath`:
|
||||
|
||||
```sh
|
||||
gst-launch-1.0 rtmpsrc location=rtmp://localhost/mypath/mysubpath ! flvdemux name=d \
|
||||
d.video ! queue ! decodebin ! autovideosink
|
||||
```
|
||||
|
||||
## GStreamer and SRT
|
||||
|
||||
```sh
|
||||
gst-launch-1.0 srtsrc uri="srt://localhost:8890?streamid=read:mystream" ! tsdemux ! decodebin ! autovideosink
|
||||
```
|
||||
|
||||
## GStreamer and WebRTC
|
||||
|
||||
GStreamer also supports reading streams with WebRTC/WHEP, although track codecs must be specified in advance through the `video-caps` and `audio-caps` parameters. Furthermore, if audio is not present, `audio-caps` must be set anyway and must point to a PCMU codec. For instance, the command for reading a video-only H264 stream is:
|
||||
GStreamer supports reading streams with WebRTC/WHEP, although track codecs must be specified in advance through the `video-caps` and `audio-caps` parameters. Furthermore, if audio is not present, `audio-caps` must be set anyway and must point to a PCMU codec. For instance, the command for reading a video-only H264 stream is:
|
||||
|
||||
```sh
|
||||
gst-launch-1.0 whepsrc whep-endpoint=http://127.0.0.1:8889/stream/whep use-link-headers=true \
|
||||
|
||||
Reference in New Issue
Block a user