mirror of
https://github.com/servo/servo.git
synced 2025-07-03 13:33:39 +01:00
Update gstreamer plugin README: directions for streaming to youtube live
This commit is contained in:
parent
308aa1606b
commit
4d4a9c22ef
1 changed files with 16 additions and 0 deletions
|
@ -46,6 +46,22 @@ GST_PLUGIN_PATH=target/gstplugins \
|
||||||
! 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 \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue