Hi,
I am having trouble playing .avi HAP files encoded with FFmpeg. Specifically, the line 194 of ofxDSHapVideoPlayer.cpp:
int sz = (*(uint8_t *)ptrBuffer) + ((*((uint8_t *)(ptrBuffer)+1)) << 8) + ((*((uint8_t *)(ptrBuffer)+2)) << 16);
always returns 0.
The FFmpeg command I use to create the file is:
ffmpeg -i source.avi -vcodec hap -format hap output.avi
The frame always looks like this:

If I encode HAP using Adobe then it all works and the aforementioned line returns the right size.
It seems like FFmpeg is not including a size information in the header?
Any ideas anyone?
Hi,
I am having trouble playing .avi HAP files encoded with FFmpeg. Specifically, the line 194 of ofxDSHapVideoPlayer.cpp:
int sz = (*(uint8_t *)ptrBuffer) + ((*((uint8_t *)(ptrBuffer)+1)) << 8) + ((*((uint8_t *)(ptrBuffer)+2)) << 16);always returns 0.
The FFmpeg command I use to create the file is:
ffmpeg -i source.avi -vcodec hap -format hap output.aviThe frame always looks like this:

If I encode HAP using Adobe then it all works and the aforementioned line returns the right size.
It seems like FFmpeg is not including a size information in the header?
Any ideas anyone?