Hi,

I've bought a digital camera for my daughter, and she can shoot videos in AVI format (M-Jpeg to be exact).

It has an SD card, so you can easily add videos manually (provided you keep the correct numbering), and play them with the camera.

I have a problem: I recovered a small 3 minute cartoon in MP4 and when I try to convert it to the same AVI (Motion Jpeg) format as a video generated by the device, but the generated video is unplayable.

I've tried hundreds of times to convert with tools like ffmpeg, AviDemux and VLC, but nothing works. Digging through the Hex file of one of the camera's videos I ended up finding the potential tool that the camera uses to encode: Generalplug AviPackerV3

And while searching the net I found this which might correspond to what I'm looking for:
https://github.com/wythe-lin/ZTKVR/tree/master

Could anyone of you help me get it working please? (my remains of C are very far away )