Skip to content

thelastoutpostworkshop/esp32-2432S028_video_player

Repository files navigation

Cheap Yellow Display Video Player (ESP32-2432S028)

Buy Me A Coffee

Youtube Tutorial

⚠️ Make sure you have the board model ESP32-2432S028 with the ILI9341 Display controller — not the ST7789 (parallel) controller, which isn't supported by the graphic library GFX Library for Arduino

Notes

Some model of Cheap Yellow Display works only at speed of 40Mhz, change the DISPLAY_SPI_SPEED to 40000000L:

#define DISPLAY_SPI_SPEED 40000000L // 40MHz 

🎬 How to Use These FFmpeg Commands

Each of the following commands generates a .mjpeg file — a Motion JPEG video format — from an input .mp4 or .mov video, optimized for use in frame-by-frame playback with an SD card reader.

Make sure you have FFmpeg installed and accessible from your terminal or command prompt.


Convert video of 16:9 (horizontal) to aspect ratio to 4:3

ffmpeg -y -i input.mp4 -pix_fmt yuvj420p -q:v 7 -vf "transpose=1,fps=24,scale=-1:320:flags=lanczos" output.mjpeg

Convert video of 9:16 (vertical) to aspect ratio to 3:4

ffmpeg -y -i input.mp4 -pix_fmt yuvj420p -q:v 7 -vf "fps=24,scale=-1:320:flags=lanczos" output.mjpeg

Command for a horizontal video already of aspect ratio 4:3

ffmpeg -y -i cropped_4x3.mp4 -pix_fmt yuvj420p -q:v 7 -vf "transpose=1,fps=24,scale=240:320:flags=lanczos" final_240x320.mjpeg

Command for a vertical video already of aspect ratio 3:4

ffmpeg -y -i cropped.mp4 -pix_fmt yuvj420p -q:v 7 -vf "fps=24,scale=240:320:flags=lanczos" scaled.mjpeg

Example To reduce brightness of the output video (helps with bright colors)

see issue 7

ffmpeg -y -i "input.mp4" -q:v 6 -filter:v "scale=-1:ih/2,eq=brightness=-0.05" -c:v mjpeg -an "output.mjpeg"

Options explained

  • -pix_fmt yuvj420p: Ensures JPEG-compatible pixel format
  • -q:v 7: Controls image quality (lower is better; 1 = best, 31 = worst)
  • -vf: Specifies the video filters:
  • fps=24: Extracts 24 frames per second
  • scale: Resizes the video
  • transpose=1: Rotates the video 90° clockwise
  • eq: Applies an equalizer filter to slightly darken the video. Values range from -1.0 to 1.0.
  • .mjpeg: Output format used when streaming or storing a series of JPEG frames as a video

About

Cheap Yellow Display Video Player (ESP32-2432S028)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages