Parsing out a video file into the RGB components
Oliver Atkinson
37ce43cbde
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 30s
|
||
---|---|---|
.gitea/workflows | ||
src | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
README.md | ||
rgb.png |
Video Parser
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 which will display them.
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.
From which you can run cargo run > /dev/ttyACMX
to pipe the parsed video into it.