Author Topic: Video to pixel converter  (Read 4188 times)

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Video to pixel converter
« on: March 13, 2015, 06:54:47 AM »
If you look at the growth of controllers and software over last few years. Christmas lighting with pixels is in it's infancy. Currently to manage large numbers of pixels, we are synchronizing multiple PI's. This is limited to 16 PI's at 64K channels or about 2048 universes. Yet if you look at the humble PI, it can output full HD at 1080p, which is about 6 million channels or 12K universes. It seems that the natural progression is a video to pixel converter.

A video to pixel converter would also provide an easy path to using video, since you could move up to 60 hertz or faster frame rates. This would allow most video to played without modification. Also, it is pretty much crazy to sequence every pixel, so we are moving to pixel generated sequences. With that in mind a faster frame rate, would provide smoother effects. I know, because I wanted to curtain's last year on my icicles and the effect was too slow for the song.

Looking at the cost for Ethernet components (wire/switches) and the fact that most controllers already support ACN1.31, Ethernet is the natural choice in this progression to distribute the pixel data. Also, the components to build multiple Ethernet ports is inexpensive.

I would propose that we standardize the mapping of pixels to ACN1.31 for multiple video resolutions. Keep in mind as we go up in resolution, we will need more output ports or move eventually to 1G. For the beginning of this transition, I would recommend that we start with 640x480 resolution. So I divided this up a video frame into four columns of 160x480 pixels. Since 100M Ethernet is only fast enough to output a line every other line, two ports can be used for a column, or you can support two modes. Interlaced, where you alternate the output of odd/even lines, or progressive where only the even lines are output.

ooo ooo ooo ooo Even line
xxx xxx xxx xxx Odd line
ooo ooo ooo ooo Even line
xxx xxx xxx xxx Odd line

So, i have built a single port bridge for testing, but it does not make sense to move forward without support of the software community. My intention is to build a DVI to four port converter, using off the shelf modules. The Ethernet ports are $10 each, a $16 FPGA card, and a custom card with the $9 DVI receiver chip. As with all of my designs the boards and firmware would be open sourced on www.diychristmas.org.

https://www.youtube.com/watch?v=c1xbA51amWY

Ron

Offline CaptainMurdoch

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Video to pixel converter
« Reply #1 on: March 13, 2015, 07:38:27 PM »
The number of FPP instances that can be synchronized is actually only limited by the size of your subnet.  If you are on a /16 then you could have over 64,000 Pi's synchronized with only one broadcast sync packet every 16 frames.  I agree though, that is still inefficient for driving lots of channels close together.

I have thought about seeing what it would take to add a Channel Output to FPP to drive your DVI board but haven't got to it yet.  I can see this as a way to get a lot of data off the Pi efficiently especially since the Pi's Ethernet port is attached via USB.  In my testing, it took about 15ms to send 128 universes over E1.31.  When I tested with 256 universes it took double the time.
« Last Edit: March 13, 2015, 07:40:04 PM by CaptainMurdoch »

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video to pixel converter
« Reply #2 on: March 14, 2015, 11:02:30 AM »
A universe of data is about 50uS, so the 128 universes should be around 6.4mS. So the USB to Ethernet is slowing you down. Besides this video method, I could help you drive the SPI port harder. It should go up to 125Mhz clock which is faster than Ethernet.

I understand that your solution works and scales just fine. What I want is something akin to what is used by the professionals. They clone their monitors and output the video to a send unit.

http://www.amazon.com/Linsn-Sending-Card-TS802/dp/B00HNYHQRQ/ref=pd_sim_sbs_op_1?ie=UTF8&refRID=16HG7DHVFYEJKFAMR5T5

This card looks a lot like what I want to do a DVI input chip, FPGA and dual GigE output. The receiving card looks alot like the send card, with dual Ethernet input and an FPGA.

http://www.amazon.com/Linsn-receiving-card-RV901-RV901D/dp/B00GGG4YOU/ref=pd_sim_sbs_e_3?ie=UTF8&refRID=1B2CKJJ2E4JK3ACVP0J6

This is the hardware used to drive the panels. It allows the display to easily be controlled from one computer. What I am proposing is an open standard send unit. Where the protocol is the standard E1.31 Ethernet that everyone is currently using. This allows my whole show to be controlled from one computer, instead of a network of them.

The reason is that I bought some P5 panels 128x96, and I want to use two of them this year. Should be close to photo quality at the street.  ;D
« Last Edit: March 14, 2015, 11:04:50 AM by ronp »

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video to pixel converter
« Reply #3 on: April 04, 2015, 05:43:12 PM »

Offline JerryPlak

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
Re: Video to pixel converter
« Reply #4 on: April 04, 2015, 07:22:36 PM »
Vary Cool Ron.

Offline CaptainMurdoch

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Re: Video to pixel converter
« Reply #5 on: April 04, 2015, 08:48:06 PM »
Nice.

Offline CaptainMurdoch

  • Full Member
  • ***
  • Posts: 124
    • View Profile
Video to pixel converter
« Reply #6 on: April 04, 2015, 08:48:38 PM »
Nice.

Edit: this was a double post by tapatalk
« Last Edit: April 04, 2015, 08:51:13 PM by CaptainMurdoch »

Offline Lights On Fifth

  • Sr. Member
  • ****
  • Posts: 287
    • View Profile
Re: Video to pixel converter
« Reply #7 on: April 05, 2015, 08:11:37 AM »
That is sweet Ron
Don Gillespie
Medicine Hat Ab.

Offline deacon

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Video to pixel converter
« Reply #8 on: April 05, 2015, 10:41:03 PM »
That is really cool, WAY over my head but very cool.

Offline ronp

  • Newbie
  • *
  • Posts: 36
    • View Profile
Re: Video to pixel converter
« Reply #9 on: June 13, 2015, 09:14:54 PM »
Was able to convert the xlights sequence to images and then covert to video. It plays well in Jinx, but not much else. Need a sequence frame rate of 30 hertz (33.33mS) or 40mS for Jinx added for sequencing. VLC video player works well also with the following unchecked.

[ ] Embedded video
[ ] Window decorations

https://www.youtube.com/watch?v=Szx9ZBNjaxk
« Last Edit: June 21, 2015, 05:56:04 PM by ronp »