UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Contributor
Contributor
311 Views
Registered: ‎05-03-2016

USB Camera interfacing problem in opticalflow sample of reVISION stack 2018.3

Jump to solution

Hello,

I am using ZCU102 version 1.1 board and reVISION stack 2018.3 and trying to run opticalflow sample as indicated in 

reVISION Getting Started Guide 2018.3 (UG1265) . Using video_source = usb camera and video_sink = display port.

when running gst-launch utility -

gst-launch-1.0 \
                xlnxvideosrc src-type="usbcam" ! \
               "video/x-raw, width=1920, height=1080, format=YUY2" ! \
               sdxopticalflow filter-mode=1 ! queue ! \
               xlnxvideosink sink-type="dp" sync=false fullscreen-overlay=true

got this on terminal

root@xilinx:/media/card# gst-launch-1.0 \
> xlnxvideosrc src-type="usbcam" ! \
> "video/x-raw, width=1920, height=1080, format=YUY2" ! \
> sdxopticalflow filter-mode=1 ! queue ! \
> xlnxvideosink sink-type="hdmi" sync=false fullscreen-overlay=true
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
ERROR: from element /GstPipeline:pipeline0/GstXlnxVideoSrc:xlnxvideosrc0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../../../../gstreamer-1.12.2/libs/gst/base/gstbasesrc.c(2939): gst_base_src_loop (): /GstPipeline:pipeline0/GstXlnxVideoSrc:xlnxvideosrc0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:10.960039777
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root@xilinx:/media/card#

I am confirm that my display port is working because when use src-type="vivid"  it shows something in monitor.

I am using LOGiTECH QUiCK CAM PRO 9000 WEBCAM as usb camera. May be its a camera issue.

On the wiki page it says:

Dense Optical Flow - requires LI-IMX274MIPI-FMC or HDMI source or See3CAM_CU30 USB camera

Is one of  these components must to run Dense Optical Flow sample or can I use other USB Camera ?

Have seen similar post  Getting started with reVISION - needed equipment but not clear with answer's last portion.

Please advice me how can I solve this problem.

Thanks in advance ...

0 Kudos
1 Solution

Accepted Solutions
Contributor
Contributor
262 Views
Registered: ‎05-03-2016

Re: USB Camera interfacing problem in opticalflow sample of reVISION stack 2018.3

Jump to solution

Solved "Internal data stream error" using these command

gst-launch-1.0 \
xlnxvideosrc src-type="usbcam" ! \
"video/x-raw, width=1280, height=720" ! \
sdxopticalflow filter-mode=1 ! queue ! \
xlnxvideosink sink-type="dp" sync=false fullscreen-overlay=true

deleting format=YUY2 option and changing width and height values for this camera

Currect this values after testing gstreamer in ubuntu16.4 but don't know clearly why..

2 Replies
Contributor
Contributor
263 Views
Registered: ‎05-03-2016

Re: USB Camera interfacing problem in opticalflow sample of reVISION stack 2018.3

Jump to solution

Solved "Internal data stream error" using these command

gst-launch-1.0 \
xlnxvideosrc src-type="usbcam" ! \
"video/x-raw, width=1280, height=720" ! \
sdxopticalflow filter-mode=1 ! queue ! \
xlnxvideosink sink-type="dp" sync=false fullscreen-overlay=true

deleting format=YUY2 option and changing width and height values for this camera

Currect this values after testing gstreamer in ubuntu16.4 but don't know clearly why..

Explorer
Explorer
246 Views
Registered: ‎10-21-2015

Re: USB Camera interfacing problem in opticalflow sample of reVISION stack 2018.3

Jump to solution

 Hi

You can check the pixel format of your camera using v4l2-ctl command like this

$ v4l2-ctl --list-formats-ext -d /dev/video0
ioctl: VIDIOC_ENUM_FMT
	Index       : 0
	Type        : Video Capture
	Pixel Format: 'MJPG' (compressed)
	Name        : Motion-JPEG
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 176x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)

	Index       : 1
	Type        : Video Capture
	Pixel Format: 'YUYV'
	Name        : YUYV 4:2:2
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 176x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.100s (10.000 fps)

I think your camera can support YUY2(YUYV)

0 Kudos