2024-03-23 22:08:14 +00:00
|
|
|
convert video
|
|
|
|
|
|
|
|
```
|
2024-05-17 18:40:58 +00:00
|
|
|
ffmpeg -i ../badapple.webm -vf "fps=30,scale=40:40:force_original_aspect_ratio=increase,crop=40:40,format=gray" gfx/frame_%04d.png
|
2024-03-23 22:08:14 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
move to `gfx` folder, then:
|
|
|
|
|
|
|
|
```
|
2024-05-17 18:40:58 +00:00
|
|
|
# old method
|
|
|
|
# python3 scripts/gfx_convert.py
|
|
|
|
python3 scripts/gfx_to_blob.py
|
2024-03-23 22:08:14 +00:00
|
|
|
```
|
2024-05-16 11:47:49 +00:00
|
|
|
|
|
|
|
convert audio
|
|
|
|
|
|
|
|
```
|
2024-05-17 18:40:58 +00:00
|
|
|
ffmpeg -i ../badapple.webm -ar 44000 audio/output.wav
|
2024-05-16 11:47:49 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
move to `audio` folder, then:
|
|
|
|
|
|
|
|
```
|
|
|
|
python3 scripts/audio_convert.py
|
|
|
|
```
|
2024-05-17 18:40:58 +00:00
|
|
|
|
|
|
|
on the SD card, create a folder named `badapple` and inside, add `audio.bin` from `audio` and `gfx.bin` and `gfx_len.bin` from `gfx_output`.
|