Code Monkey home page Code Monkey logo

Comments (8)

windyuan avatar windyuan commented on June 17, 2024 1

It's a known issue for a while. There's no bandwidth or resource by now. If I can get your usecase/requirement maybe we can balance priority to support.

from libxcam.

windyuan avatar windyuan commented on June 17, 2024 1

hi, currently stitching based on special parameters and somewhere may have hardcode, e.g. fisheye lens, special input format, resolution and your cameras should aligned or better very close.
capture, you can use gstreamer or other media framework and use libxcam for image processing.
anytime if you have blocks in your trying, you can drop us mail to share your usecase details. we are glad if we can support.

from libxcam.

arpu avatar arpu commented on June 17, 2024

usercase is have 4 usb 3.0 cameras (360 degree) on one usb 3.1
bandwidth for raw video is not possible so we use MJPEG compression

from libxcam.

windyuan avatar windyuan commented on June 17, 2024

capture is a one feature in libxcam. as you may know that there are lots features about image processing and video analysis in libxcam. I'm not sure you want use only capture or more other features.
could you send me a mail about your use case and project details? we can give technical support or better advice.

from libxcam.

arpu avatar arpu commented on June 17, 2024

yes we want use the stitching and image processings from libxam for a live 360 degree streaming video
what exactly infos do you need?

from libxcam.

arpu avatar arpu commented on June 17, 2024

hi again, i tryed some more gstreamer pipes
gst-launch-1.0 v4l2src device=/dev/video0 ! image/jpeg, width=2304, height=1536, interlaced=false, pixel-aspect-ratio=1/1 ! queue ! vaapidecodebin ! vaapipostproc ! videoconvert ! xcamfilter copy-mode=1 ! videoconvert ! ximagesink sync=false -v

but i get some errors on this
most importend part is
CAM WARNING gstxcamfilter.cpp:706: xcamfilter dequeue buffer failed
0:00:03.453440983 27279 0x122f000 WARN basetransform gstbasetransform.c:2145:default_generate_output: could not get buffer from pool: ok

the idea is to use vaapi to decode the image/jpeg and use xcamfilter (opencl) to colorspace to
NV12 -> to BGR for opencv usage

from libxcam.

arpu avatar arpu commented on June 17, 2024

looks like this works
gst-launch-1.0 v4l2src io-mode=dmabuf device=/dev/video0 ! image/jpeg, width=2304, height=1536 ! vaapidecodebin ! xcamfilter copy-mode=1 ! vaapipostproc ! video/x-raw,format=BGRx ! ximagesink sync=false -v

but its vers slow
gstxcamfilter Current fps: 14,25, Total avg fps: 12,26
gstxcamfilter Current fps: 15,52, Total avg fps: 13,19
gstxcamfilter Current fps: 15,43, Total avg fps: 13,68
gstxcamfilter Current fps: 15,64, Total avg fps: 14,03
gstxcamfilter Current fps: 15,70, Total avg fps: 14,29

XCAM WARNING gstxcamfilter.cpp:706: xcamfilter dequeue buffer failed

from libxcam.

windyuan avatar windyuan commented on June 17, 2024

looks good.
BTY, xcamfilter doesn't export color space conversion up to now. sink and src pad only support NV12 format. vaapidecode link to xcamfilter need a copy since xcamfilter support DMA-fd not VASurfaceID.

from libxcam.

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.