From ad4eb52a85f8ec0e8d4dbccf9353a845e8d27cfd Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 29 Jul 2020 17:37:55 -0500 Subject: [PATCH 1/4] Update gstreamer plugin README: we support webgl content --- ports/gstplugin/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/gstplugin/README.md b/ports/gstplugin/README.md index 987ec11fd61..833545f001c 100644 --- a/ports/gstplugin/README.md +++ b/ports/gstplugin/README.md @@ -3,7 +3,7 @@ ## Supported platforms * MacOS + CGL -* Linux + Wayland (currently no WebGL content) +* Linux + Wayland ## Build From 5c121bc8d42ccc3c39f2574f88354117f374e551 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 29 Jul 2020 17:38:35 -0500 Subject: [PATCH 2/4] Update gstreamer plugin README: use the -e flag --- ports/gstplugin/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ports/gstplugin/README.md b/ports/gstplugin/README.md index 833545f001c..dd1fa87fea1 100644 --- a/ports/gstplugin/README.md +++ b/ports/gstplugin/README.md @@ -28,7 +28,7 @@ cp target/release/libgstservoplugin.* target/gstplugins To run locally: ``` 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 \ ! glimagesink rotate-method=vertical-flip ``` @@ -36,7 +36,7 @@ GST_PLUGIN_PATH=target/gstplugins \ To stream over the network: ``` 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 \ ! glcolorconvert \ ! gldownload \ @@ -49,7 +49,7 @@ GST_PLUGIN_PATH=target/gstplugins \ To save to a file: ``` 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 \ ! glcolorconvert \ ! gldownload \ From 308aa1606bec73042dd021fa08ca12db55d65fcc Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 29 Jul 2020 17:39:06 -0500 Subject: [PATCH 3/4] Update gstreamer plugin README: use the glvideoflip plugin --- ports/gstplugin/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/gstplugin/README.md b/ports/gstplugin/README.md index dd1fa87fea1..5bac38dfd76 100644 --- a/ports/gstplugin/README.md +++ b/ports/gstplugin/README.md @@ -38,9 +38,9 @@ To stream over the network: GST_PLUGIN_PATH=target/gstplugins \ gst-launch-1.0 -e servowebsrc \ ! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \ + ! glvideoflip video-direction=vert \ ! glcolorconvert \ ! gldownload \ - ! videoflip video-direction=vert \ ! theoraenc \ ! oggmux \ ! tcpserversink host=127.0.0.1 port=8080 @@ -51,9 +51,9 @@ To save to a file: GST_PLUGIN_PATH=target/gstplugins \ gst-launch-1.0 -e servowebsrc \ ! video/x-raw\(memory:GLMemory\),framerate=50/1,width=512,height=256 \ + ! glvideoflip video-direction=vert \ ! glcolorconvert \ ! gldownload \ - ! videoflip video-direction=vert \ ! theoraenc \ ! oggmux \ ! filesink location=test.ogg From 4d4a9c22ef6ba7cc3a02c0d1570fa3fae8f82b59 Mon Sep 17 00:00:00 2001 From: Alan Jeffrey Date: Wed, 29 Jul 2020 17:39:28 -0500 Subject: [PATCH 4/4] Update gstreamer plugin README: directions for streaming to youtube live --- ports/gstplugin/README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/ports/gstplugin/README.md b/ports/gstplugin/README.md index 5bac38dfd76..127c5a41639 100644 --- a/ports/gstplugin/README.md +++ b/ports/gstplugin/README.md @@ -46,6 +46,22 @@ GST_PLUGIN_PATH=target/gstplugins \ ! 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: ``` GST_PLUGIN_PATH=target/gstplugins \