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 donghoang22017
Observer
451 Views
Registered: ‎05-02-2019

bandwidth of xlnxscale plugin

Jump to solution

Hi,

I am using ZCU104 board. In the design in FPGA I use VideoFrameBufferRead, VideoFrameBufferWrite and VideoProcessingSubSystem ip cores to convert YUV format to BGR. Those IP are controlled by gstreamer plugin xlnxscale.

The problems is when the output of xlnxscale is large (for example: input frame is 1920x1080 YUV, output frame is also 1920x1080 BGR), the fps is quite low (about 20fps). 

Can someone provide me the bandwidth of VideoProcessingSubSystem or xlnxscale plugin ???

Thanks in advances !!!

0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
283 Views
Registered: ‎11-09-2015

Re: bandwidth of xlnxscale plugin

Jump to solution

Hi @donghoang22017 

Can you add a second VPSS configured as color space convertor to do the color space conversion?

So basically change your pipe from

Video Frame Buffer Read (YUV) -> Video Processing Subsystem (Scaler) ->  Video Frame Buffer Write (BGR8)

to

Video Frame Buffer Read (YUV) -> Video Processing Subsystem (CSC) -> Video Processing Subsystem (Scaler) ->  Video Frame Buffer Write (BGR8)

This is how it is done in our examples as the VCU TRD. Else it might be that the conversion is handled by the OS.

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

7 Replies
Mentor watari
Mentor
409 Views
Registered: ‎06-16-2013

Re: bandwidth of xlnxscale plugin

Jump to solution

Hi @donghoang22017 

 

Would you share your gstreamer pipeple ?

 

Best regards,

0 Kudos
Observer donghoang22017
Observer
394 Views
Registered: ‎05-02-2019

Re: bandwidth of xlnxscale plugin

Jump to solution

"WIDTH=1920
HEIGHT=1080

WOFF=0
HOFF=0

gst-launch-1.0 filesrc location=video/CIST.mp4 ! qtdemux name=demux demux.video_0 ! h264parse ! omxh264dec internal-entropy-buffers=3 ! xlnxscale need-tdm=true ! \
video/x-raw, width=$WIDTH, height=$HEIGHT, format=BGR ! \
fpsdisplaysink video-sink="kmssink plane-id=29 bus-id="a0070000.v_mix" render-rectangle=\"<$WOFF,$HOFF,$WIDTH,$HEIGHT>\"" text-overlay=true sync=false "

Here is my gstreamer pipeline.

0 Kudos
Mentor watari
Mentor
344 Views
Registered: ‎06-16-2013

Re: bandwidth of xlnxscale plugin

Jump to solution

Hi @donghoang22017 

 

Would you share your clock setting on xlnxscale IP ?

It seems clock frequency issue.

 

Best regards,

0 Kudos
Observer donghoang22017
Observer
324 Views
Registered: ‎05-02-2019

Re: bandwidth of xlnxscale plugin

Jump to solution
Hi @watari
In Block Design of FPGA, my xlnxscale IP is using 330MHz clock. I am using the following IPs: Video Frame Buffer Read (YUV), Video Processing Subsystem (Scaler), Video Frame Buffer Write (BGR8).
Best Regards,
0 Kudos
Mentor watari
Mentor
322 Views
Registered: ‎06-16-2013

Re: bandwidth of xlnxscale plugin

Jump to solution

Hi @donghoang22017 

 

How about bus width ?

In this case, you need to consider overhead by CPU.

 

Best regards,

0 Kudos
Moderator
Moderator
284 Views
Registered: ‎11-09-2015

Re: bandwidth of xlnxscale plugin

Jump to solution

Hi @donghoang22017 

Can you add a second VPSS configured as color space convertor to do the color space conversion?

So basically change your pipe from

Video Frame Buffer Read (YUV) -> Video Processing Subsystem (Scaler) ->  Video Frame Buffer Write (BGR8)

to

Video Frame Buffer Read (YUV) -> Video Processing Subsystem (CSC) -> Video Processing Subsystem (Scaler) ->  Video Frame Buffer Write (BGR8)

This is how it is done in our examples as the VCU TRD. Else it might be that the conversion is handled by the OS.

Regards


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**

View solution in original post

Observer donghoang22017
Observer
247 Views
Registered: ‎05-02-2019

Re: bandwidth of xlnxscale plugin

Jump to solution
Hi florentw,
I tried as your suggestions and it improved the performance. Thanks in advances ! :D
0 Kudos