2023-06-29 21:14:57 +00:00
|
|
|
## Video Parser
|
2023-08-12 05:10:31 +00:00
|
|
|
This takes a visual media input (photo / video / etc) and uses ffmpeg to read the rgb values then writes them to `stdout` as raw data.
|
|
|
|
This can the be piped to [/dev/ttyACMx](https://github.com/Rushmore75/led_matrix) which will display them.
|
2023-06-29 21:14:57 +00:00
|
|
|
To find the arduino you can run:
|
|
|
|
```
|
|
|
|
ls /dev/serial/by-id/ | grep arduino | xargs -I{} readlink /dev/serial/by-id/{}
|
|
|
|
```
|
|
|
|
which will output `../../ttyACMX` or simmilar. Then `/dev/ttyACMX` (for example) is your arduino.
|
2023-06-29 21:16:32 +00:00
|
|
|
From which you can run `cargo run > /dev/ttyACMX` to pipe the parsed video into it.
|