Skip to main content
Visitor II
April 15, 2024
Question

How can I implement the VideoDataReader class? I want to read AVI files from an SD card

  • April 15, 2024
  • 1 reply
  • 839 views

I want to implement reading large AVI files from an SD card for playback. When using VideoDataReader, I couldn't find a specific demo program. So, I added a MyReader class based on the official documentation. However, when executing the HardwareMJPEGDecoder::readData(uint32_t offset, uint32_t length) function, I found that aviBufferLength is less than the length passed in, preventing it from proceeding normally. What should I do?0000.jpg1122.jpg

This topic has been closed for replies.

1 reply

ST Employee
April 16, 2024

Hello @chel,
First welcome to the TouchGFX community !

For your issue, did you try to initialize the aviBuffer ? Try to call setAviBuffer() in TouchGFXGeneratedHAL.cpp, in the initialize() function.

 

Regards,