Difference between revisions of "OBS Gstreamer plugin"

From Cosmostreamer Wiki
Jump to navigation Jump to search
Line 22: Line 22:


== From Cosmostreamer to OBS ==
== From Cosmostreamer to OBS ==
=== UDP Raw H264 ===
Enable UDP Raw H264 streaming in Cosmostreamer device settings. <strong>192.168.1.67</strong> it's my laptop IP, in your case use proper IP
Enable UDP Raw H264 streaming in Cosmostreamer device settings. <strong>192.168.1.67</strong> it's my laptop IP, in your case use proper IP
[[File:Obs-gst3.jpg|500px|none]]
[[File:Obs-gst3.jpg|500px|none]]
Line 29: Line 31:
<pre>udpsrc port=3000 buffer-size=600000000 ! h264parse ! avdec_h264  ! video.</pre>
<pre>udpsrc port=3000 buffer-size=600000000 ! h264parse ! avdec_h264  ! video.</pre>
[[File:Obs-gst4.jpg|500px|none]]
[[File:Obs-gst4.jpg|500px|none]]
=== TCP Raw H264 ===
=== UDP MPEG-TS ===
=== RTSP ===
=== RTP ===

Revision as of 17:19, 28 March 2022

For Windows

  1. Download and install OBS https://obsproject.com/download
  2. Download and install Gstreamer https://gstreamer.freedesktop.org/download/ (MinGW 64-bit runtime installer, use Full installation)
    • IMPORTANT! Add gstreamer bin directory into PATH environment variable (System preferenses > Additional system params > Environment variables). Default bin directory location is C:\gstreamer\1.0\mingw_x86_64\bin
  3. Download OBS Gstreamer plugin https://github.com/fzwoch/obs-gstreamer/releases (latest release, obs-gstreamer.zip file)
    • Extract obs-gstreamer.dll file from obs-gstreamer.zip
    • Copy obs-gstreamer.dll into C:\Program Files\obs-studio\obs-plugins\64bit directory (if OBS installed into default destination)
  4. Run OBS, open "add source" menu, you'll see GStreamer Source
Obs-gst1.jpg

With default pipeline you must see default GStreamer test video

videotestsrc is-live=true ! video/x-raw, framerate=30/1, width=960, height=540 ! video. audiotestsrc wave=ticks is-live=true ! audio/x-raw, channels=2, rate=44100 ! audio.
Obs-gst2.jpg



For Mac



For Linux



From Cosmostreamer to OBS

UDP Raw H264

Enable UDP Raw H264 streaming in Cosmostreamer device settings. 192.168.1.67 it's my laptop IP, in your case use proper IP

Obs-gst3.jpg



And use this pipeline for GStreamer source

udpsrc port=3000 buffer-size=600000000 ! h264parse ! avdec_h264  ! video.
Obs-gst4.jpg

TCP Raw H264

UDP MPEG-TS

RTSP

RTP