mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Added a recipe for streaming to twitch
This commit is contained in:
parent
092dcaf2e6
commit
ea0fec6aab
1 changed files with 5 additions and 4 deletions
|
@ -91,7 +91,7 @@ GST_PLUGIN_PATH=target/gstplugins \
|
||||||
This requires the webxr content to support the `sessionavailable` event for launching directly into immersive mode.
|
This requires the webxr content to support the `sessionavailable` event for launching directly into immersive mode.
|
||||||
Values for `webxr` include `none`, `left-right`, `red-cyan`, `cubemap` and `spherical`.
|
Values for `webxr` include `none`, `left-right`, `red-cyan`, `cubemap` and `spherical`.
|
||||||
|
|
||||||
To stream a Hubs room and save to a file (there'll be ~30s black at the beginning while Hubs starts up):
|
To stream a Hubs room to twitch (there'll be ~30s black at the beginning while Hubs starts up):
|
||||||
```
|
```
|
||||||
GST_PLUGIN_PATH=$PWD/target/gstplugins \
|
GST_PLUGIN_PATH=$PWD/target/gstplugins \
|
||||||
gst-launch-1.0 -e servowebsrc \
|
gst-launch-1.0 -e servowebsrc \
|
||||||
|
@ -103,9 +103,10 @@ GST_PLUGIN_PATH=$PWD/target/gstplugins \
|
||||||
! glcolorconvert \
|
! glcolorconvert \
|
||||||
! gldownload \
|
! gldownload \
|
||||||
! queue \
|
! queue \
|
||||||
! x264enc \
|
! x264enc bitrate=4500 \
|
||||||
! mp4mux \
|
! video/x-h264, profile=high \
|
||||||
! filesink location=test.mp4
|
! flvmux streamable=true \
|
||||||
|
! rtmpsink location="rtmp://$ENDPOINT.twitch.tv/app/$STREAM_KEY"
|
||||||
```
|
```
|
||||||
|
|
||||||
*Note*: killing the gstreamer pipeline with control-C sometimes locks up macOS to the point
|
*Note*: killing the gstreamer pipeline with control-C sometimes locks up macOS to the point
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue