Coder Social home page Coder Social logo

Comments (12)

fischer avatar fischer commented on May 23, 2024

A python client binding was recently added - https://github.com/RidgeRun/gstd-1.x/tree/master/libgstc/pygstc. Looks like the documentation for using python is not yet in place - https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon. Hopefully you can see the pattern on how to create and control pipes and then transfer that knowledge to enable you to use the python GSTD client binding.

from gstd-1.x.

rrcarlosrodriguez avatar rrcarlosrodriguez commented on May 23, 2024

@DeveloperRachit you can find the PyGstc documentation here: https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon_-_Python_Client

We released GstD v0.9.0 yesterday, including this feature, so it is pretty new and the documentation is a work in progress. We would be happy to hear your feedback!

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

can i get example using pygstc with python

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

how to create pipeline by using pipeline_create these kind of example

from gstd-1.x.

rrcarlosrodriguez avatar rrcarlosrodriguez commented on May 23, 2024

You can check out the examples in our wiki page: https://developer.ridgerun.com/wiki/index.php?title=GStreamer_Daemon_-_Python_API#Examples

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

i want to switch two source dyanamically using gstd with python have you any solution?

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

File "/home/rachit/gstd-1.x/libgstc/pygstc/gstc.py", line 222, in _send_cmd_line result = json.loads(jresult) File "/usr/lib/python3.6/json/__init__.py", line 348, in loads 'not {!r}'.format(s.__class__.__name__)) TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' Traceback (most recent call last): File "/home/rachit/gstd-1.x/libgstc/pygstc/gstc.py", line 222, in _send_cmd_line result = json.loads(jresult) File "/usr/lib/python3.6/json/__init__.py", line 348, in loads 'not {!r}'.format(s.__class__.__name__)) TypeError: the JSON object must be str, bytes or bytearray, not 'NoneType' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "switching_testsrc.py", line 27, in <module> gstd_client.element_set('p_4_sink','interpipesrc1','listen-to','src_2') File "/home/rachit/gstd-1.x/libgstc/pygstc/gstc.py", line 554, in element_set self._send_cmd_line(['element_set'] + parameters) File "/home/rachit/gstd-1.x/libgstc/pygstc/gstc.py", line 227, in _send_cmd_line raise GstcError(type(exception).__name__) pygstc.gstcerror.GstcError: TypeError

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

i am getting that error when running my code because in element_set i set listen-to property

from gstd-1.x.

jafet-chaves avatar jafet-chaves commented on May 23, 2024

Hi @DeveloperRachit, we have a demo available that uses these Python bindings. It's based on interpipes + deepstream, you can check it here: https://developer.ridgerun.com/wiki/index.php?title=NVIDIA_GTC_2020:_How_to_build_a_multi-camera_Media_Server_for_AI_processing_on_Jetson

from gstd-1.x.

jafet-chaves avatar jafet-chaves commented on May 23, 2024

About the issue, it seems you're receiving a empty JSON (this is happening because an error generated when setting the listen-to property). Please check you're defining properly your pipelines. You can look at the demo provided above. Also if you can provide code it would be helpful to try to replicate and provide a more precise feedback.

from gstd-1.x.

DeveloperRachit avatar DeveloperRachit commented on May 23, 2024

Dear do you hve any kind of switching example between two source using gstd with but should be seamless when I would use live rtmp source

from gstd-1.x.

Abrahamon avatar Abrahamon commented on May 23, 2024

Hi @DeveloperRachit, the next Gstd Release v0.11 will improve the error handling for the python GSTD client.

i am getting that error when running my code because in element_set i set listen-to property

from gstd-1.x.

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.