Problems with using obs studio to stream gstreamer streams

Hi @CUIS and @cerealkiller2527,

I made some time today to try this out on a fresh install and it seems to have worked fine with the latest versions. The detailed steps on Windows are as follows:

  1. Install Open Broadcast Studio (OBS)
  2. Download and install gstreamer files:
    • I used version 1.20.1 (latest) with standard .msi files for installing on my 64-bit Intel x86 processor running Windows 10:
      • gstreamer-1.0-mingw-x86_64-1.20.1.msi
      • gstreamer-1.0-devel-mingw-x86_64-1.20.1.msi
    • do “Full” install of both (not “Typical”)
    NOTE: to devs also doing QGC builds

    QGC requires MSVC gstreamer to build with gstreamer support, and obs-gstreamer requires MinGW gstreamer to run. You’ll either need to install and configure both to be ok with each other, or install MSVC gstreamer to build QGC, then remove it and install MinGW gstreamer so obs-gstreamer works)

3. Add gstreamer to the PATH variable
  1. Search (Windows) for “Environment” and press Enter
  2. Click “Environment Variables”
  3. Add the gstreamer \bin folder to Path and click OK
    • need to add %GSTREAMER_VAR%\bin;
4. (Optionally) check that the installation was successful
  1. Search (Windows) for “cmd” and press Enter
  2. Run a simple pipeline
    gst-launch-1.0 videotestsrc ! autovideosink
    
    • press CTRL+C from in the command prompt to stop it
  3. Connect the ROV
  4. Run the actual pipeline of interest
    gst-launch-1.0 udpsrc port=5600 ! application/x-rtp, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink
    
    • if prompted select to allow command-prompt access to both private and public networks
  1. Download the .zip file from the latest obs-gstreamer release
    • I used v0.3.3 (latest available)
  2. Copy the .dll into obi-studio’s plugins folder
    • copy obs-gstreamer\windows\obs-gstreamer.dll from the downloaded .zip
    • into C:\Program Files\obs-studio\obs-plugins\64bit\
  3. Open OBS
    • if asked you can select “optimise for recording”, unless you’re planning to live-stream the footage to somewhere else
  4. Add a new Gstreamer Source
    Add a source
    • set the pipeline as
      udpsrc port=5600 ! application/x-rtp, payload=96 ! rtph264depay ! h264parse ! avdec_h264 ! video.
      
      • if prompted select to allow obs-gstreamer access to both private and public networks
      • can try this pipeline if you want an audio stream, or if the above pipeline doesn’t work
    • Click OK and wait for it to load (might take a few seconds)

@cerealkiller2527 Following up on this, if you re-run the MSVC gstreamer installer files it should give you an option to “Remove” gstreamer, after which you should be able to install the MinGW one :slight_smile:

1 Like