Giter Site home page Giter Site logo

Comments (9)

zingmars avatar zingmars commented on July 28, 2024

According to https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-videoconvert.html videoconvert doesn't seem to support BGR24

from gst-pylonsrc.

devykrishna avatar devykrishna commented on July 28, 2024

Is there any option for this conversion (Mono8 to BGR24)?

from gst-pylonsrc.

zingmars avatar zingmars commented on July 28, 2024

Supposedly BGR (without the 24) should work as an output format.

from gst-pylonsrc.

devykrishna avatar devykrishna commented on July 28, 2024

I tried BGR conversion as follows.
gst-launch-1.0 -v pylonsrc imageformat=mono8 ! videoconvert ! video/x-raw,format=BGR ! xvimagesink

Result :
Setting pipeline to PAUSED ...
0:00:00.712165719 4190 0x5636fe832100 pylonsrc gstpylonsrc.c:2233:pylonc_print_camera_info: Status: Using camera "acA1920-40gm" (serial number: 0, id: 0). Custom ID: None
0:00:00.721207646 4190 0x5636fe832100 pylonsrc gstpylonsrc.c:1093:gst_pylonsrc_start: Setting resolution to 1920x1200.
0:00:00.730799528 4190 0x5636fe832100 pylonsrc gstpylonsrc.c:1217:gst_pylonsrc_start: Using Mono8 image format.
0:00:00.772921659 4190 0x5636fe832100 pylonsrc gstpylonsrc.c:2040:gst_pylonsrc_start: Initialised successfully.
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstPylonsrc:pylonsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Anything wrong in this command. Kindly help. I am stuck with this error.

from gst-pylonsrc.

devykrishna avatar devykrishna commented on July 28, 2024

Adding to the above comment.

I tried the following also. But the same results.
gst-launch-1.0 -v pylonsrc imageformat=mono8 ! video/x-raw,format=GRAY8 ! videoconvert ! video/x-raw,format=BGR ! xvimagesink

from gst-pylonsrc.

zingmars avatar zingmars commented on July 28, 2024

from gst-pylonsrc.

devykrishna avatar devykrishna commented on July 28, 2024

I tried the below and it worked for me.
gst-launch-1.0 -v pylonsrc imageformat=bgr8 ! videoconvert ! video/x-raw,format=BGR ! videoconvert ! xvimagesink
Actually xvimagesink only support YUV formats, (I didn't know that). By the above command BGR is convert to YV12 and it displays.
In application the below command will work.
gst-launch-1.0 -v pylonsrc imageformat=bgr8 ! videoconvert ! video/x-raw,format=BGR | appsink

from gst-pylonsrc.

devykrishna avatar devykrishna commented on July 28, 2024

Thanks for the support :)

from gst-pylonsrc.

zingmars avatar zingmars commented on July 28, 2024

No problem. Best of luck with your endeavour.

from gst-pylonsrc.

Related Issues (16)

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.