Skip to content

Instantly share code, notes, and snippets.

@esden
Last active January 16, 2020 16:26
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esden/d81737ebe08c8a7e9972bc189115eb85 to your computer and use it in GitHub Desktop.
Save esden/d81737ebe08c8a7e9972bc189115eb85 to your computer and use it in GitHub Desktop.
TNT Video streaming

Example: http://imgur.com/a/YGQRhyN

How to reproduce:

https://github.com/smunaut/icebreaker-temp/tree/master/rgb_panel

you have to change the defines at the beginning of top.v to select 'STREAMING' mode. Then there is a stream.py that as a python class that helps sends frame and a short demo.

ffmpeg -i Rick_Astley_Never_Gonna_Give_You_Up.mp4 -vf "crop=304:304,scale=64:64" -pix_fmt rgb565 -f rawvideo test.raw

Need a wire between the LEDR (which is one side of the red led, easy) and ADBUS5 on the ftdi (which is an unused pad of the QFN ... a bit more tricky).

You can also connect a jumper wire between the ADBUS3 and LEDR. If you do then you need to change on line 8 of the stream.py the cs=2 to cs=0 entry.

The iCEBreaker V1.0c already has a jumper on the back of the board labeled CS that makes the ADBUS3 connection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment