1
0
Fork 0
mirror of https://github.com/radex/radmatrix.git synced 2024-10-26 23:14:50 +00:00
radmatrix/firmware
2024-10-06 19:53:45 +02:00
..
.vscode
include
lib add bitmap font rendering (untested) 2024-06-20 17:40:49 +02:00
scripts some improvements... 2024-06-03 23:22:07 +02:00
src remove while trues 2024-10-06 19:53:45 +02:00
test
.gitignore
platformio.ini platformio: upload by usb by default 2024-06-30 12:00:49 +02:00
README.md

convert video

automatically:

scripts/convert.sh ../badapple.webm

the output is in video_output

or manually:

ffmpeg -i ../badapple.webm -vf "fps=30,scale=40:40:force_original_aspect_ratio=increase,crop=40:40,format=gray" gfx/frame_%04d.png

move to gfx folder, then:

# old method
# python3 scripts/gfx_convert.py
python3 scripts/gfx_to_blob.py

convert audio

ffmpeg -i ../badapple.webm -ar 44000 audio/output.wav

move to audio folder, then:

python3 scripts/audio_convert.py

play videos on device

create video/YOURNAME/ folder, with files:

(where files are audio.bin, gfx.bin, gfx_len.bin)

NOTE: yourname MUST be at most 8 characters long

also video/playlist.txt with names of videos in order