intel / libxcam

libXCam is a project for extended camera(not limited in camera) features and focus on image quality improvement and video analysis. There are lots features supported in image pre-processing, image post-processing and smart analysis. This library makes GPU/CPU/ISP working together to improve image quality. OpenCL is used to improve performance in different platforms.
Other
589 stars 229 forks source link

How to add 2 inputs to gstreamer's xcamfilter plugin for stitch #816

Closed derekoutdu closed 1 year ago

derekoutdu commented 1 year ago

Hi,

Can anyone tell me how to pass two input files for stitching two source using gstreamer plugin xcamfilter? The provided test command is not explained for adding multiple filesrc given command: gst-launch-1.0 filesrc location=input.nv12 ! videoparse width=1920 height=1080 format=nv12 ! xcamfilter copy-mode=1 enable-stitch=true stitch-scale=local stitch-fisheye-map=true stitch-lsc=true stitch-fm-ocl=true stitch-res-mode=1080p ! video/x-raw, foramt=NV12, width=1920, height=960 ! queue ! vaapiencode_h264 rate-control=cbr ! qtmux ! filesink location=test.mp4

as per this given command, the file source is only input.nv12. What is it stitching if there's only 1 input?

brmarkus commented 1 year ago

Is this topic still open?

derekoutdu commented 1 year ago

I haven't gotten any response on the issue I'm facing in. So yes, the topic is still open.

zongwave commented 1 year ago

sorry libxcam gstream plugin "xcamfilter" does not support input multiple images. we have ffmpeg filter that support input 3 or 4 images stitching.

zongwave commented 1 year ago

Hi,

Can anyone tell me how to pass two input files for stitching two source using gstreamer plugin xcamfilter? The provided test command is not explained for adding multiple filesrc given command: gst-launch-1.0 filesrc location=input.nv12 ! videoparse width=1920 height=1080 format=nv12 ! xcamfilter copy-mode=1 enable-stitch=true stitch-scale=local stitch-fisheye-map=true stitch-lsc=true stitch-fm-ocl=true stitch-res-mode=1080p ! video/x-raw, foramt=NV12, width=1920, height=960 ! queue ! vaapiencode_h264 rate-control=cbr ! qtmux ! filesink location=test.mp4

as per this given command, the file source is only input.nv12. What is it stitching if there's only 1 input?

In this case the 360 camera we used combined the front and rear view images into one frame, please check the 2 cameras stitching process flow at https://github.com/intel/libxcam/wiki#libxcam-stitch-processing-flow