Skip to content

Commit 6499367

Browse files
authored
Auto merge of #27470 - asajeffrey:gst-plugin-readme-twitch, r=jdm
Added a recipe for streaming to twitch <!-- Please describe your changes on the following line: --> All the cool kids are doing it. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because we don't test docs <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2 parents 6aeadce + ea0fec6 commit 6499367

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

ports/gstplugin/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ GST_PLUGIN_PATH=target/gstplugins \
9191
This requires the webxr content to support the `sessionavailable` event for launching directly into immersive mode.
9292
Values for `webxr` include `none`, `left-right`, `red-cyan`, `cubemap` and `spherical`.
9393

94-
To stream a Hubs room and save to a file (there'll be ~30s black at the beginning while Hubs starts up):
94+
To stream a Hubs room to twitch (there'll be ~30s black at the beginning while Hubs starts up):
9595
```
9696
GST_PLUGIN_PATH=$PWD/target/gstplugins \
9797
gst-launch-1.0 -e servowebsrc \
@@ -103,9 +103,10 @@ GST_PLUGIN_PATH=$PWD/target/gstplugins \
103103
! glcolorconvert \
104104
! gldownload \
105105
! queue \
106-
! x264enc \
107-
! mp4mux \
108-
! filesink location=test.mp4
106+
! x264enc bitrate=4500 \
107+
! video/x-h264, profile=high \
108+
! flvmux streamable=true \
109+
! rtmpsink location="rtmp://$ENDPOINT.twitch.tv/app/$STREAM_KEY"
109110
```
110111

111112
*Note*: killing the gstreamer pipeline with control-C sometimes locks up macOS to the point

0 commit comments

Comments
 (0)