A Mjpeg like Video Player for the Teensy 4.1 development Boards.
You have to install the Teensy Audio Library,Teensy Audio Codecs Library (My Version),JPEGDEC and ILI9341_t3n (My Version) library.
- First install the Dependencies for your PC
- Then run the create.py script in the scripts folder.
To run the Video Player example:
- Install the Dependencies for the Teensy
- Clone the repo to your Arduino libraries Folder and Go to File -> examples -> MjpegTFT_t4 -> PlayVid.
- Change The
CS_PINTo your SD CS PIN and all the defines for the TFT to your pins - Change
filetoopento the name of your video file
This is a pretty basic Video format it is build up like this:
- The first seven bytes are the header : 0x00,0x00,0x00,0x4A,0x41,0x56,0xFF
- The next two bytes are the fps
- The two following are the amount of frames in the video
- And the next four are the position of the aac audio
Each jpeg has two bytes before it, with the size of the jpeg.
Audio is just an aac file behind the whole video.
- Some kind of API
- Better sync with audio and video
- Using DMA to run in background