Comments (12)
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.
@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.
can i get example using pygstc with python
from gstd-1.x.
how to create pipeline by using pipeline_create these kind of example
from gstd-1.x.
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.
i want to switch two source dyanamically using gstd with python have you any solution?
from gstd-1.x.
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.
i am getting that error when running my code because in element_set i set listen-to property
from gstd-1.x.
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.
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.
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.
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)
- libgstd.c initial declarations are only allowed in C99 mode HOT 2
- Unable to use hlssink2 with gstd HOT 2
- gstd does not create log files gstd.log and gst.log HOT 3
- gstd becoming unresponsive HOT 1
- gstd hangs on shutdown if pipelines are running HOT 1
- HTTP API returning erroneous response when an action is emitted
- gstd segfaults HOT 14
- Q: Able to run gstd more faster? HOT 1
- Problem with nvivafilter HOT 5
- gstd adding and removing elements HOT 6
- Could gstd handle up to 1000 pipelines simultaneously? HOT 4
- Inconsistent response json structure for element_get HOT 7
- add original create command to internal pipeline data
- Help with the JavaScript Example. HOT 1
- Segmentation fault after closing GL window
- Pip error when make install on a Jetson Xavier NX
- Is ping_gstd thread safe ? HOT 1
- Non debug version of gstd
- RTSP camera not working with interpipe and gstd HOT 4
- simple-gapless-playback.sh is not playing gapless
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gstd-1.x.