GithubHelp home page GithubHelp logo

Gstreamer pipeline about obs-gstreamer HOT 9 CLOSED

tsuna6 avatar tsuna6 commented on June 25, 2024
Gstreamer pipeline

from obs-gstreamer.

Comments (9)

fzwoch avatar fzwoch commented on June 25, 2024

The README of the project list some RTSP examples. The used URLs may be down by now though.

One common caveat is that rtspsrc uses user-id and user-pw properties for authentication - That is because the URI itself may be important for the server to select a stream, so havem them in the URI scheme may break things.

Are you sure you have hardware that uses an OMX decoder?

from obs-gstreamer.

tsuna6 avatar tsuna6 commented on June 25, 2024

I'm just using :

  • 1 CCTV Hikvision
  • 1 PC
  • 1 Switch Hub

just a simple connection. any idea ?

from obs-gstreamer.

fzwoch avatar fzwoch commented on June 25, 2024

Use gst-launch-1.0 from a command line to test things. They may give some better idea what may be wrong.

But these are more setup or general GStreamer related things..

from obs-gstreamer.

tsuna6 avatar tsuna6 commented on June 25, 2024

you mean command prompt?

i text it, and the result is :

ERROR: pipeline could not be constructed: empty pipeline not allowed.

from obs-gstreamer.

tsuna6 avatar tsuna6 commented on June 25, 2024

also when i text gst-launch-1.0 --version in cmd, the result is

gst-launch-1.0 version 1.22.5
GStreamer 1.22.5
Unknown package origin

from obs-gstreamer.

fzwoch avatar fzwoch commented on June 25, 2024

It feels like you want to read up on GStreamer and it pipelines. Without that knowledge you will go nowhere with this plugin. You should be able to create pipelines and playback the camera with the gst-launch-1.0 tool before you adapt the pipeline for this plugin to make it work with OBS.

from obs-gstreamer.

tsuna6 avatar tsuna6 commented on June 25, 2024

Hi, i try again with this code in cmd, and it works

gst-launch-1.0 rtspsrc location="rtsp://admin:*****@IPAddress:554" latency=10 ! rtph264depay ! h264parse ! decodebin ! autovideosink

but why when i try this on gstreamer OBS, it's not working ? please advice me about this.
Thanks.

from obs-gstreamer.

fzwoch avatar fzwoch commented on June 25, 2024

Replacing autovideosink with video. (note the dot) should do it.

from obs-gstreamer.

kamalmostafa avatar kamalmostafa commented on June 25, 2024

Important note: Be sure that you are NOT including the "gst-launch-1.0" command itself in the obs-gstreamer plugin pipeline field -- that's just for command-line testing! But since you've got it working on the command line with gst-launch-1.0, it should certainly be possible to get it working within the obs-gstreamer plugin as well.

I have had great success using the obs-gstreamer plugin with my HikVision camera (including its audio feed) with the following pipeline:

rtspsrc latency=1600 location=rtsp://admin:*****@192.168.1.***/Streaming/Channels/101  name=bin
  bin. ! parsebin ! nvh264sldec ! videoconvert ! video.
  bin. ! parsebin ! decodebin ! audioconvert ! audio.

And a simpler ("video-only, no audio") version of my obs-gstreamer plugin pipeline might look like this:

rtspsrc latency=1600 location=rtsp://admin:*****@192.168.1.***/Streaming/Channels/101   ! parsebin ! nvh264sldec ! videoconvert ! video.

A similar pipeline to might work for you. (Be sure to notice the terminating "video." in both examples, just as was mentioned by @fzwoch).

Good luck!

from obs-gstreamer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.