Displaying video on st7789 with esp32

hello, im using the tft_espi library with an esp-wroom-32 development board (dual core) wired to a 240x240 ips st7789 tft. my required guidance is completely coding based, as my hardware has been working fine. im trying to display a 15 second mp3 video on my tft. so far, ive managed to display rgb565 images on the display, and also managed to refresh the image faster than my eye can see :hugs: i do this by drawing the image, cutting power to the display, then powering up the display and then drawing the image again. this is a far faster way of clearing the display than filling the display with black.

the main issue is, what sort of software could i use to take my mp3 video, break it down into frames, then convert each one of those frames into an array of rgb565 data. after that its as easy as getting the esp to cycle through each rgb565 frame array, applying the unusual clearing method between frames. im free to supply any extra information

#include <TFT_eSPI.h>                 // Include the graphics library (this includes the sprite functions)


TFT_eSPI tft = TFT_eSPI();         // Declare object "tft"


#include "myimage"

void setup(){
  Serial.begin(115200);
  Serial.println();
tft.begin();     // i
  // Initialise the TFT registers
  tft.init();

  // Optionally set colour depth to 8 or 16 bits, default is 16 if not spedified
  // spr.setColorDepth(8)
   tft.setSwapBytes(true); // Swap the byte order for pushImage() - corrects endianness
pinMode(25,OUTPUT);
}





void loop(void)
{

  digitalWrite(25,HIGH);
  tft.pushImage(0,0,240,240,background);//"background" is the rgb565 image data stored in the "myimage" file
    digitalWrite(25,LOW);

  }


the rgb565 array image file i use:
text.zip (18.5 KB)

update: ive found a pretty basic online webtool that takes a video and converts it into loads of jpegs(200 to be exact) heres what it looks like:
ezgif-1-1cab334cb1-jpg.zip (644.5 KB)
i haven't managed to find a program that can convert more than 10 images to rgb565 progmem arrays at a time

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.