mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #27449 - asajeffrey:gst-plugin-readme-edits, r=jdm
Gstreamer plugin README edits <!-- Please describe your changes on the following line: --> Updated docs to the gstreamer plugin, now with a recipe for streaming to youtube live! --- <!-- 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 READMEs <!-- 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. -->
This commit is contained in:
commit
b1bd409047
1 changed files with 22 additions and 6 deletions
|
@ -3,7 +3,7 @@
|
||||||
## Supported platforms
|
## Supported platforms
|
||||||
|
|
||||||
* MacOS + CGL
|
* MacOS + CGL
|
||||||
* Linux + Wayland (currently no WebGL content)
|
* Linux + Wayland
|
||||||
|
|
||||||
## Build
|
## Build
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ cp target/release/libgstservoplugin.* target/gstplugins
|
||||||
To run locally:
|
To run locally:
|
||||||
```
|
```
|
||||||
GST_PLUGIN_PATH=target/gstplugins \
|
GST_PLUGIN_PATH=target/gstplugins \
|
||||||
gst-launch-1.0 servowebsrc \
|
gst-launch-1.0 -e servowebsrc \
|
||||||
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=1920,height=1080,format=RGBA \
|
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=1920,height=1080,format=RGBA \
|
||||||
! glimagesink rotate-method=vertical-flip
|
! glimagesink rotate-method=vertical-flip
|
||||||
```
|
```
|
||||||
|
@ -36,24 +36,40 @@ GST_PLUGIN_PATH=target/gstplugins \
|
||||||
To stream over the network:
|
To stream over the network:
|
||||||
```
|
```
|
||||||
GST_PLUGIN_PATH=target/gstplugins \
|
GST_PLUGIN_PATH=target/gstplugins \
|
||||||
gst-launch-1.0 servowebsrc \
|
gst-launch-1.0 -e servowebsrc \
|
||||||
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \
|
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \
|
||||||
|
! glvideoflip video-direction=vert \
|
||||||
! glcolorconvert \
|
! glcolorconvert \
|
||||||
! gldownload \
|
! gldownload \
|
||||||
! videoflip video-direction=vert \
|
|
||||||
! theoraenc \
|
! theoraenc \
|
||||||
! oggmux \
|
! oggmux \
|
||||||
! tcpserversink host=127.0.0.1 port=8080
|
! tcpserversink host=127.0.0.1 port=8080
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To stream to youtube live, first go to youtube studio and create a new live stream, with its token, then:
|
||||||
|
```
|
||||||
|
GST_PLUGIN_PATH=target/gstplugins \
|
||||||
|
gst-launch-1.0 -e servowebsrc \
|
||||||
|
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=1960,height=1080 \
|
||||||
|
! glvideoflip video-direction=vert \
|
||||||
|
! glcolorconvert \
|
||||||
|
! gldownload \
|
||||||
|
! x264enc bitrate=6000 \
|
||||||
|
! flvmux name=mux \
|
||||||
|
! rtmpsink location="rtmp://a.rtmp.youtube.com/live2/x/$TOKEN" \
|
||||||
|
audiotestsrc wave=silence \
|
||||||
|
! voaacenc bitrate=128000 \
|
||||||
|
! mux.
|
||||||
|
```
|
||||||
|
|
||||||
To save to a file:
|
To save to a file:
|
||||||
```
|
```
|
||||||
GST_PLUGIN_PATH=target/gstplugins \
|
GST_PLUGIN_PATH=target/gstplugins \
|
||||||
gst-launch-1.0 servowebsrc \
|
gst-launch-1.0 -e servowebsrc \
|
||||||
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \
|
! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \
|
||||||
|
! glvideoflip video-direction=vert \
|
||||||
! glcolorconvert \
|
! glcolorconvert \
|
||||||
! gldownload \
|
! gldownload \
|
||||||
! videoflip video-direction=vert \
|
|
||||||
! theoraenc \
|
! theoraenc \
|
||||||
! oggmux \
|
! oggmux \
|
||||||
! filesink location=test.ogg
|
! filesink location=test.ogg
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue