Code Monkey home page Code Monkey logo

Comments (5)

pmliquify avatar pmliquify commented on August 26, 2024 1

Hi hobbeshunter,
guvcview and nvgstcapture-1.0 are not tested and therefore not supported.
Please use gst-launch-1.0 to use gstreamer:

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),framerate=20/1' ! autovideosink

I can't see any errors in your device tree file.

from vc_mipi_nvidia.

pmliquify avatar pmliquify commented on August 26, 2024 1

Hi @hobbeshunter I am very busy currently. I try to support you from the 14th.

from vc_mipi_nvidia.

hobbeshunter avatar hobbeshunter commented on August 26, 2024

Thank you very much. That worked!

Follow up newby question: How do I use this with opencv?

I've tried

import cv2
import sys

gst_str = "nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),framerate=20/1' ! appsink"

cap = cv2.VideoCapture(gst_str, cv2.CAP_GSTREAMER)
if not cap.isOpened():
    print('Failed to open camera!')
    sys.exit()
while(True):
    _, img = cap.read()
    cv2.imshow("cam", img)
    key = cv2.waitKey(10)

without luck. OpenCV version is 3.2.0.

Thanks in advance!

from vc_mipi_nvidia.

hobbeshunter avatar hobbeshunter commented on August 26, 2024

Any tipp on how to do it?

from vc_mipi_nvidia.

hobbeshunter avatar hobbeshunter commented on August 26, 2024

Some more results from experiments:

When I try

gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),framerate=20/1,format=NV12,width=1280,height=800' ! nvvidconv ! 'video/x-raw, format=GRAY8' ! autovideosink

I get following error:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
GST_ARGUS: Creating output stream
CONSUMER: Waiting until producer is connected...
GST_ARGUS: Available Sensor modes :
GST_ARGUS: 1280 x 800 FR = 120,599999 fps Duration = 8291874 ; Analog Gain range min 0,000000, max 12,000000; Exposure Range min 1000, max 1000000000;

GST_ARGUS: Running with following settings:
   Camera index = 0 
   Camera mode  = 0 
   Output Stream W = 1280 H = 800 
   seconds to Run    = 0 
   Frame Rate = 120,599999 
GST_ARGUS: Setup Complete, Starting captures for 0 seconds
GST_ARGUS: Starting repeat capture requests.
CONSUMER: Producer has connected; continuing.
ERROR: from element /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstNvArgusCameraSrc:nvarguscamerasrc0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.507162580
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
GST_ARGUS: Cleaning up
CONSUMER: Done Success
GST_ARGUS: Done Success
Setting pipeline to NULL ...
Freeing pipeline ...

from vc_mipi_nvidia.

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.