Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basler pylon Gstreamer for python #328

Open
mgabell opened this issue Feb 12, 2021 · 11 comments
Open

Basler pylon Gstreamer for python #328

mgabell opened this issue Feb 12, 2021 · 11 comments

Comments

@mgabell
Copy link

mgabell commented Feb 12, 2021

Hi,

I have seen the library InstantCameraAppSrc library from Imaginghub that can be used to utilize Gstreamer and Basler camera. It does not however consider python. Its all C code. Anyone here who knows about a libs that support pypylon/python and Gstreamer?

br,
Mgabell

@thiesmoeller
Copy link
Collaborator

@mgabell
It works this way:

+------------+        +--------------+     +-------------+
|            |        |              |     |             
|   PYPYLON  +------->+   appsrc     +----->     gst     
|            |        |              |     |     pipeline..
+------------+        +--------------+     +-------------+

see this explanation:
http://lifestyletransfer.com/how-to-use-gstreamer-appsrc-in-python/

@mgabell
Copy link
Author

mgabell commented Feb 23, 2021 via email

@Christina-ko
Copy link

Hi,

Can you provide me a guide on how to do the installation of GStreamer in ubuntu 18.04.
I followed the steps stated in https://github.com/joshdoe/gst-plugins-vision.
However, when I try this command:
gst-launch-1.0 pylonsrc ! autovideoconvert ! autovideosink

I got the error:
WARNING: erroneous pipeline: no element "pylonsrc"

Do you have any ideas what caused this error?

@MagnusGabell
Copy link

MagnusGabell commented Dec 17, 2021

Hi, I dont know exactly. Ensure you have pylon library installed. Also g-streamer, of course. Then for the code attached you also need pypylon. For windows I dont know how to install and get this to work, but in linux it should. not a direct answer to your question but I also struggle with the pipelines.
simple_gstr.zip

@MagnusGabell
Copy link

MagnusGabell commented Dec 17, 2021

Hi,

Can you provide me a guide on how to do the installation of GStreamer in ubuntu 18.04. I followed the steps stated in https://github.com/joshdoe/gst-plugins-vision. However, when I try this command: gst-launch-1.0 pylonsrc ! autovideoconvert ! autovideosink

I got the error: WARNING: erroneous pipeline: no element "pylonsrc"

Do you have any ideas what caused this error?

Try this "gst-inspect-1.0 | grep pylon" (without the quote signs ") to ensure you have the pylon plugins installed properly check also the follow thread on the matter. I had the same problem as you... : joshdoe/gst-plugins-vision#50

@Christina-ko
Copy link

Hi, I dont know exactly. Ensure you have pylon library installed. Also g-streamer, of course. Then for the code attachedyou also need pypylon. For windows I dont know how to install and get this to work, but in linux it should. not a direct answer to your question but I also struggle with the pipelines. simple_gstr.zip

Hi,

Thanks for the reply and sharing.

I have installed the pylon 6.2 in my Ubuntu 18.04 PC.
How can I check whether my g-streamer is successfully installed in my PC?

@MagnusGabell
Copy link

MagnusGabell commented Dec 17, 2021

If gst-launch works responds and gst-inspect you probably have it. More likely the pylon-plugin is not.

//Magnus

@Christina-ko
Copy link

If gst-launch works responds and gst-inspect you probably have it. More likely the pylon-plugin is not.

//Magnus

Thank you
Do you have any document on how to install g-streamer correctly in ubuntu 18.04 ?
Do you think this document is useful (https://gitlab.com/zingmars/gst-pylonsrc)?

@thiesmoeller
Copy link
Collaborator

thiesmoeller commented Dec 17, 2021 via email

@Christina-ko
Copy link

Check that GST_PLUGIN_PATH for local install or for a systemwide install GST_PLUGIN_SYSTEM_PATH is pointing to where you installed pylonsrc Christina-ko @.> schrieb am Fr., 17. Dez. 2021, 08:25:

If gst-launch works responds and gst-inspect you probably have it. More likely the pylon-plugin is not. //Magnus Thank you Do you have any document on how to install g-streamer correctly in ubuntu 18.04 ? Do you think this document is useful ( https://gitlab.com/zingmars/gst-pylonsrc)? — Reply to this email directly, view it on GitHub <#328 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKCYJKYAMS5JQ2JP44JZILURLQVZANCNFSM4XQXIJ2Q . You are receiving this because you commented.Message ID: @.
>

Hi,

I will check it and try it again. Thank you for your help

@mgabell
Copy link
Author

mgabell commented Dec 17, 2021

I found that it was easy to follow the instruction to get gstreamer to work but to get pylon to work was tricky. I think the solution was in the thread I referred to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants