A Python utility to convert a video into a C array for the ESP32.
This is a Python based utility to convert a video into a C array for the ESP32. The video is converted into a 1bit np array that is delta encoded and RLE compressed. The output is a C char array that can be used in the ESP32 code, to display the video on a composite video output.
-
a C compiler (gcc, clang, etc.) as Cython requires a C compiler to build the extension
-
ffmpeg for video processing (optional)
-
Arduino IDE for ESP32 development
- download the repository:
git clone https://github.com/02loveslollipop/BadAppleESP32CodeMaker.git- go to the repository folder:
cd BadAppleESP32CodeMaker- (Windows) execute setup.ps1 script:
.\setup.ps1- (Linux) execute setup.sh script:
./setup.sh- execute the utility:
python main.py --helpafer the code (byteStream.h) is generated, you can use the following code to display the video on a composite video output:
- add the byteStream.h file to the Arduino project folder
- open eps32badApple.ino
- upload the code to the ESP32
the composite video output is connected to the GPIO 25 pin of the ESP32