1
0
Fork 0
radmatrix/firmware
radex 72045008f8
use new sd lib
2024-06-02 15:31:43 +02:00
..
.vscode tweak config 2024-05-18 10:15:18 +02:00
include dump rp2040 firmware experiments 2024-03-18 22:53:04 +01:00
lib add no-OS-FatFS-SD-SDIO-SPI-RPi-Pico-main (wonderful name ain't it) 2024-06-01 12:54:07 +02:00
scripts convert video 2024-05-25 12:45:54 +02:00
src use new sd lib 2024-06-02 15:31:43 +02:00
test dump rp2040 firmware experiments 2024-03-18 22:53:04 +01:00
.gitignore convert video 2024-05-25 12:45:54 +02:00
README.md auto playlist (badly) 2024-05-25 15:26:55 +02:00
platformio.ini switch to another arduino core? 2024-06-01 12:47:54 +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