I'm not an advanced electronics person. I'm trying to make a model of a street in Tokyo and I want to put a screen on one of the buildings to play advertising video etc.
So far, I have an arduino Nano connected up to a 2.2 inch ILI9341 TFT screen. I have run the Adafruit test program and it works.
I'm trying to find instructions for playing a short mp4 file. Does anyone know where I can find a sketch that I could use?
With that hardware in Arduino and the basic libraries, it is not possible to get what you want.
An R-Pi 4 kit with a 3.5 "TFT might be a good choice.
If you are still going by the side of the arduino IDE, you will have to convert the video into an avi file and then use a library that allows you to read sequences of jpg images, this is called in some cases as motion-JPEG, given the number of pixels that must be used, the display must have its own dedicated processor, leaving the basic work to the MCU.
This is possible to achieve in certain types of TFTs classified as HMIs.
An example that can play avi video streams even with audio stored on a microSD card would be: teensy 4 or 4.1 with a TFT FT813 / BT815 / BT817