# Movie2Serial on Raspberry Pi (LED array)

**URL:** https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036
**Category:** Processing for Pi
**Created:** [December 31, 2018, 1:53am UTC](https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036 "2018-12-31T01:53:37Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![BuffaloFan32](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@BuffaloFan32](https://discourse.processing.org/u/BuffaloFan32)
#### Post date: [December 31, 2018, 1:53am UTC](https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036/1 "2018-12-31T01:53:38Z")

</div>

I am new to the Raspberry Pi so I apologize in advance if I am missing something totally obvious.

I am trying to play video on my LED WS2812 array. Currently, the array has 89 pixels per strip and 64 strips. In the past, I have used an old laptop to run this display using Paul Stoffregen’s Movie2Serial script.

That laptop was so old that I decided to try it on a Raspberry Pi and got a smaller array working with this version of Paul’s script:

[https://forum.processing.org/two/discussion/26295/movie2serial-video-format-problem-i-think](https://forum.processing.org/two/discussion/26295/movie2serial-video-format-problem-i-think)

My problem is that I can get my array to work if the script thinks there are only 48 rows, but as soon as I increase to 56 (or 64), it freezes up before it can display anything on the array. 48 rows is 4,272 LEDs, am I hitting some type of limit on the capabilities of the Pi?

Here is the console error I sometimes get when it freezes:

```auto
Serial Ports List:
/dev/serial1 /dev/ttyACM0 /dev/ttyAMA0
/home/pi/Desktop/movie2serial2/data/transit.mov
Final caps: video/x-raw(memory:GLMemory), width=(int)640, height=(int)360, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30000/1001, format=(string)RGBA, texture-target=(string)2D, colorimetry=(string)2:1:5:4
RunnableTask.run(): A caught exception occured on thread main-Display-.x11_:0.0-2-EDT-1: RunnableTask[enqueued true[executed false, flushed false], tTotal 1 ms, tExec 0 ms, tQueue 1 ms, attachment null, throwable java.lang.RuntimeException: Waited 5000ms for: <11a9cf0, 15e00ca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-Display-.x11_:0.0-2-EDT-1>]
java.lang.RuntimeException: Waited 5000ms for: <11a9cf0, 15e00ca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-Display-.x11_:0.0-2-EDT-1>
	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
	at jogamp.newt.WindowImpl.getLocationOnScreen(WindowImpl.java:1159)
	at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:141)
	at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4386)
	at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)
	at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4558)
	at jogamp.newt.WindowImpl.sizePosMaxInsetsVisibleChanged(WindowImpl.java:4865)
	at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)
	at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4449)
	at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4443)
	at jogamp.newt.WindowImpl.createNative(WindowImpl.java:777)
	at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1248)
	at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1318)
	at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:127)
	at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:375)
DefaultEDT.run(): Caught exception occured on thread main-Display-.x11_:0.0-2-EDT-1: RunnableTask[enqueued false[executed true, flushed false], tTotal 6340 ms, tExec 6339 ms, tQueue 1 ms, attachment null, throwable java.lang.RuntimeException: Waited 5000ms for: <11a9cf0, 15e00ca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-Display-.x11_:0.0-2-EDT-1>]
java.lang.RuntimeException: Waited 5000ms for: <11a9cf0, 15e00ca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>] - <main-Display-.x11_:0.0-2-EDT-1>
	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:198)
	at jogamp.newt.WindowImpl.getLocationOnScreen(WindowImpl.java:1159)
	at jogamp.newt.driver.x11.X11UnderlayTracker.windowMoved(X11UnderlayTracker.java:141)
	at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:4386)
	at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:4317)
	at jogamp.newt.WindowImpl.positionChanged(WindowImpl.java:4558)
	at jogamp.newt.WindowImpl.sizePosMaxInsetsVisibleChanged(WindowImpl.java:4865)
	at jogamp.newt.driver.x11.DisplayDriver.DispatchMessages0(Native Method)
	at jogamp.newt.driver.x11.DisplayDriver.dispatchMessagesNative(DisplayDriver.java:112)
	at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4449)
	at jogamp.newt.WindowImpl.waitForVisible(WindowImpl.java:4443)
	at jogamp.newt.WindowImpl.createNative(WindowImpl.java:777)
	at jogamp.newt.WindowImpl.setVisibleActionImpl(WindowImpl.java:1248)
	at jogamp.newt.WindowImpl$VisibleAction.run(WindowImpl.java:1318)
	at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:127)
	at jogamp.newt.DefaultEDTUtil$NEDT.run(DefaultEDTUtil.java:375)

```

---

<div class="post-metadata">

### Author: ![BuffaloFan32](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@BuffaloFan32](https://discourse.processing.org/u/BuffaloFan32)
#### Post date: [January 7, 2019, 9:07pm UTC](https://discourse.processing.org/t/movie2serial-on-raspberry-pi-led-array/7036/2 "2019-01-07T21:07:53Z")

</div>

Is anybody out there? Has anyone else tried this?
