Author Topic: FPGA for video processing...?  (Read 1061 times)

0 Members and 1 Guest are viewing this topic.

Offline JacksterTopic starter

  • Frequent Contributor
  • **
  • Posts: 463
  • Country: gb
    • PCBA.UK
FPGA for video processing...?
« on: June 19, 2018, 05:17:22 pm »
I got a product idea and I am looking at coming up with a prototype to demo it to potential users of the device.

It processes video and displays information about that video feed though overlaying data such as how bright a pixel is, edge detection and changing the colour of a pixel based off a 3D LUT file. Very similar to how SmallHD monitors work. https://www.smallhd.com/

I am looking at farming out the prototype programming work so just after knowing if something like the Digilent Arty Z7 would be a good dev board for something like this?
Not that knowledgeable on FPGA. I know how they sort of work but would not know where to start if you gave me one.

The spec I need is HDMI in and out with enough processing speed and RAM to work with 1920x1080 video frames.


Thanks
Jack


Offline Berni

  • Super Contributor
  • ***
  • Posts: 4946
  • Country: si
Re: FPGA for video processing...?
« Reply #1 on: June 19, 2018, 07:15:14 pm »
Yep this is the exact application that FPGAs are good at.

How big of an FPGA you need depends a lot on the exact details of what you are doing. Memory is expensive inside FPGAs (but incredibly fast) so you usually try to avoid buffering entire frames of video if possible, a lot of the time buffering just a few lines is enough. But if you do need to buffer entire frames then external DDR memory might be needed. Due to the parallel nature and precise timing of FPGAs its often possible to process things on the fly as data passes trough without even buffering it at all. Your application sounds like it doesn't need to hold entire frames in memory, so you could just pipe video trough it while introducing near zero time lag (Probably about 1/200th of a frame)

Also if you want to do HDMI directly into the FPGA you need a chip that supports such high speed IO lines, Alternative is to use external chips to convert HDMI to parallel RGB and back again.

The dev board you have suggested is indeed a good choice. It gives you the ports you want and has plenty of resources. The included ARM processor is also very useful for doing any UI stuff.
 
The following users thanked this post: Jackster

Offline rstofer

  • Super Contributor
  • ***
  • Posts: 9889
  • Country: us
Re: FPGA for video processing...?
« Reply #2 on: June 19, 2018, 07:41:05 pm »
If you run out of horsepower on the Arty board, Digilent makes a board more oriented toward A/V:
https://store.digilentinc.com/nexys-video-artix-7-fpga-trainer-board-for-multimedia-applications/

It use a MUCH larger chip which brings along more logic, more memory, more IO lines and so on.

And, yes, it costs a LOT more money.
 
The following users thanked this post: Jackster

Offline hamster_nz

  • Super Contributor
  • ***
  • Posts: 2803
  • Country: nz
Re: FPGA for video processing...?
« Reply #3 on: June 19, 2018, 10:29:01 pm »
Development of the prototype's firmware to 'feature demo' status will be the bulk of the product development work. The PCB design will be mostly moving the DevBoard's electronics to a new PCB, and adding missing features (e.g. power mgmt, user interface).

It is close to impossible to develop a feature-rich 'demo' video pipeline that isn't nearly a production ready video pipeline, unless you make it using resource-hungry (and maybe expensive) IP blocks.

Odds are that an IP-based pipeline won't fit in the target device that meets your price point, so you will need to throw it all away and then perform a complete lightweight re-implementation - starting from nothing again.
« Last Edit: June 19, 2018, 10:33:49 pm by hamster_nz »
Gaze not into the abyss, lest you become recognized as an abyss domain expert, and they expect you keep gazing into the damn thing.
 
The following users thanked this post: Jackster


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf