Skip to content

Vis problem : Skipping frame 2 ...49 #15

@ichraf

Description

@ichraf

Dear Vadim
Thank you for sharing your code. I had some problems with make vis. Finally i linked vis.ccp with openCV 3.2 and changed the Makefile INSTALLED_DEPS = -I/usr/local/include -L/usr/local/lib. . make vis worked.
When I run "mkdir -p examples/vis_dump && ./mpegflow examples/mpi_sintel_final_alley_1.avi | ./vis examples/mpi_sintel_final_alley_1.avi examples/vis_dump", the vis doesn't work fine. Actually, It skips all the frames from 2 to 49 but without any errors.
If i used mpegflow with --raw option, it starts skipping from the 3rd frame.

I added a line in the main function of vis.cpp to display flow.second from the function read.flow
inside the loop for
fprintf(stderr,"flow second = %d.\n", int(flow.second));
It always returns -1
I want to say that i received warnings when compiling mpegflow and vis regarding the types, example:
"mpegflow.cpp:293:128: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int64_t {aka long int}’ [-Wformat=]
lld frame_index=%d pict_type=%c output_type=raw shape=%zux4\n", pts, frameIndex, pictType, motionVectors.size()); "

So the problem comes from the https://github.com/vadimkantorov/mpegflow/blob/master/vis.cpp#L72
I tried many types lld ld to match vis and mpegflow but nothing happens
Thank you for your consideration

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions