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
Observer bhdschmidt
Observer
2,927 Views
Registered: ‎07-09-2013

ZCU104 with Optical Flow Demo (Revision), does it work?

Hello,

 

I recently received my ZCU104 and tried to get the Revision Demo up and running (in particular, the optical flow demo, see http://www.wiki.xilinx.com/reVISION+Getting+Started+Guide+2017.4+rev2). Unfortunately, I wasn't successful.

 

My hardware setup is the ZCU104 with the e-con webcam as video source and a HDMI monitor as sink.

 

I tried execute every command as described on the wiki page. In the end, I executed the following line:

 

gst-launch-1.0 v4l2src device=/dev/video4 io-mode=dmabuf ! "video/x-raw, width=1920, height=1080, format=UYVY" ! sdxopticalflow filter-mode=1 ! queue ! kmssink driver-name=xilinx_drm_mixer plane-id=26 sync=false

 

Then I got stucked with that output:

 

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.8.3/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.031051191
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

 

The monitor shows a "blue screen", but there are some reactions here and then.

 

If anyone can help, I really would be very grateful.

 

Regards,

Bernhard

0 Kudos
11 Replies
Visitor pauldirac
Visitor
2,852 Views
Registered: ‎05-21-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

same with me. Exact same error:

```

New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.8.3/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)

```

0 Kudos
Visitor pauldirac
Visitor
2,799 Views
Registered: ‎05-21-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

sdxopticalflow is the reason for the fault. Both modes (SW&HW) are broken.

if i try videoconvert instead of sdxopticalflow, it works.

soren, could U plz help us out ?

0 Kudos
Visitor pauldirac
Visitor
2,787 Views
Registered: ‎05-21-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

all right, it works (kinda)

ssh into it.

1st shell: 

video_cmd -d 1 -o 1920x1080-60Hz@AR24
ERROR: Query DV timings failed: Link has been severed

 

Ignore the error message. As you don't need to exit the command, no reconfiguration of the sink takes place.

 

2nd shell: 

video_cmd -s 1 -i 1920x1080@UYVY -X

gst-launch-1.0 v4l2src device=/dev/video4 io-mode=dmabuf ! "video/x-raw, width=1920, height=1080, format=UYVY" ! sdxopticalflow filter-mode=1 ! queue ! kmssink driver-name=xilinx_drm_mixer plane-id=28 sync=false

 

this works in hw mode only. The manual states that sw mode is not available. So we are all set.

0 Kudos
Observer bhdschmidt
Observer
2,588 Views
Registered: ‎07-09-2013

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

Hi paudirac,

 

sorry for my late response. Unfortunately, I wasn't able to run the demo with commands you suggested. Instead I got this error message:

 

(gst-plugin-scanner:2798): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstsdxbase                                              .so': /usr/lib/gstreamer-1.0/libgstsdxbase.so: undefined symbol: gst_sdx_allocator_new

(gst-plugin-scanner:2798): GStreamer-WARNING **: Failed to load plugin '/usr/lib/gstreamer-1.0/libgstomx.so'                                              : /usr/lib/gstreamer-1.0/libgstomx.so: undefined symbol: gst_omx_h265_enc_get_type
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.8.3/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/G                                              stV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.019741217
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

 

 

Does that make sense for your? I completely lost :(

 

Regards,

Bernhard

0 Kudos
2,522 Views
Registered: ‎04-15-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

Have you solved your problem, I have this error too.

HDMI as output port. 

0 Kudos
Moderator
Moderator
2,487 Views
Registered: ‎11-09-2015

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

HI junning.wu@ia.ac.cn,

 

There errors happen if the linux does not find the HDMI monitor


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Visitor pauldirac
Visitor
2,391 Views
Registered: ‎05-21-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

hi bhd, may be You have already tried the new version (with/for SDx 2018.2). 

As junning.wu pointed out in https://forums.xilinx.com/t5/Video/ZCU104-OpticalFlow-Could-not-open-DRM-module-xilinx-drm-mixer/m-p/871416/highlight/false#M20870

one has to specify the bus id explicitly, together with plane-id 31:

```

 

video_cmd -d 1 -s 1 -i 1920x1080@UYVY -X
gst-launch-1.0 v4l2src device=/dev/video4 io-mode=dmabuf ! "video/x-raw, width=1920, height=1080, format=UYVY" ! sdxopticalflow filter-mode=1 ! queue ! kmssink driver-name=xilinx_drm_mixer bus-id=b00c0000.v_mix plane-id=31 sync=false

```

(my config: SeeCam & HDMI Monitor)

I did compile it all by myself , coz I run in troubles with the precompiled SD folder content. (Donno why anymore though...)

Hope this hlps...

Adventurer
Adventurer
2,163 Views
Registered: ‎04-24-2012

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

Hi all,

Does anybody really had this working?

From the prebuilt binaries:

Step 1

cp lib/libopticalflow.so /usr/lib
cp gstreamer-1.0/libgstsdxopticalflow.so /usr/lib/gstreamer-1.0
cp lib/libgstsdxbase.so /usr/lib/gstreamer-1.0
cp lib/libgstsdxallocator.so /usr/lib/gstreamer-1.0

Step 2 (set see3cam video)

video_cmd -s 1 -i 1920x1080@UYVY -X

Step 3 (display port output)

video_cmd -d 0 -o 1920x1080@UYVY&

Step 4 (launch pipe)

gst-launch-1.0 v4l2src device=/dev/video4 io-mode=dmabuf ! "video/x-raw, width=1920, height=1080, format=YUY2" ! sdxopticalflow filter-mode=1 ! queue ! kmssink bus-id=fd4a0000.zynqmp-display plane-id=34 sync=false fullscreen-overlay=true

 

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/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/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.121183398
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

 

It doesn't matter what config I try, it is always the same...

/* Don't forget to give kudos and/or accept as a solution */
0 Kudos
Observer lucc1
Observer
946 Views
Registered: ‎01-23-2019

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

Trying to find this: "video_cmd" from the zcu104-rv-ss-2018-3 image.

 

Is this something that get installed separately.

How can I get this "video_cmd" command on the board?

Luc

--
Luc Chouinard
FPGA Architect & AI Specialist
Teledyne Imaging
Teledyne Lumenera
0 Kudos
Visitor overfit
Visitor
669 Views
Registered: ‎03-24-2019

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

Has your problem been solved?
0 Kudos
Participant yan0110
Participant
414 Views
Registered: ‎09-12-2018

Re: ZCU104 with Optical Flow Demo (Revision), does it work?

I got the same problem. Have you solved it?

 

0 Kudos