Skip to content

Playback of ffmpeg encoded files #13

@ghost

Description

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:
ffmpeghaperror

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions