summaryrefslogtreecommitdiff
path: root/forward-obs-stream.sh
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2020-03-27 19:37:34 +0000
committerDavid Blajda <blajda@hotmail.com>2020-03-27 19:37:34 +0000
commit6edfa84af9d163ab8a2af89302a06d9be77bf024 (patch)
treead502cc49c563d82283125bacd0039665d9ec344 /forward-obs-stream.sh
parent0b7240469a5ca43d77d67681271142b5900628d6 (diff)
Modify pipeline and add forward obs scriptHEADmaster
Diffstat (limited to 'forward-obs-stream.sh')
-rwxr-xr-xforward-obs-stream.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/forward-obs-stream.sh b/forward-obs-stream.sh
new file mode 100755
index 0000000..0102694
--- /dev/null
+++ b/forward-obs-stream.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+#Issues:
+# Sometimes the pipeline will not begin prerolling and hangs. If this occurs
+# terminate and try again.
+
+GST_VAAPI_ALL_DRIVERS=1 gst-launch-1.0 -v rtmpsrc location="rtmp://localhost:1935/live/video" ! flvdemux name=demux \
+ demux.audio ! queue ! decodebin ! audioconvert ! fakesink \
+ demux.video ! queue ! decodebin ! videoconvert ! "video/x-raw,format=I420" ! v4l2sink device=/dev/video0