jishnujayakumar / MV-Tractus

A simple tool to extract motion vectors from h264 encoded videos.
108 stars 27 forks source link

It can't be compiled #2

Closed esteban-armas closed 5 years ago

esteban-armas commented 6 years ago

Hi! I'm trying to compile and use your tool but something is wrong with it. There is a lot of wrongs #includes and when you fix that problem and try to compile the script says that can't find all the other needed libraries. There is a new version of your tool? Thanks in advance.

jishnujayakumar commented 5 years ago

@esteban-armas, What exactly is your problem? Can you share the screenshot of compile output?

chelsell commented 5 years ago

@jishnujayakumar I don't know about the original user's problem, but I was seeing this error while trying to compile:

extract_mvs.c:287:5: error: void function 'extract_motion_vectors' should not return a value [-Wreturn-type]
    return ret < 0;
    ^      ~~~~~~~

I had to comment that line out and change -l json to -l json-c to get it to compile, but it still didn't seem to work. However, I realized that I'm not actually sure which MPEG you mean by your description--if you just meant MPEG-1, then of course it's no mystery I can't get this to read an HEVC encoded video.

jishnujayakumar commented 5 years ago

@chelsell, any H264 encoded stream should be fine for this tool. Hope that answers your query.

jishnujayakumar commented 5 years ago

@esteban-armas and @chelsell , I would like you to know that I have updated the README. Please follow the instructions and see whether it is compiling on your system or not. If any problems arises, feel free to drop a message. The output should look like the following. Good luck. screenshot from 2018-10-21 11-35-26

jishnujayakumar commented 5 years ago

I am closing this thread.

jishnujayakumar commented 4 years ago

Please add appropriate permissions to the file and then you are good to go.

On Sun, Feb 16, 2020 at 11:26 PM Aayush Gadia notifications@github.com wrote:

I am getting this error- bash: ./extract_mvs: Permission denied

I have already successfully installed & compiled FFMPEG using this link https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu. Please guide.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/jishnujayakumar/MV-Tractus/issues/2?email_source=notifications&email_token=ACR5RK2FXAWHQY45COFXMETRDF44PA5CNFSM4FBZRDE2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEL4NUIY#issuecomment-586734115, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR5RK2EZXZ332LUEY6BAJDRDF44PANCNFSM4FBZRDEQ .

-- Jishnu P https://goo.gl/RgcxcK, Technical Associate, RBCCPS, IISc Bangalore https://cps.iisc.ac.in/ Contact-Mob: +91-8758599133

jhallard commented 4 years ago

Why are you returning a value from a void function? I'm also getting build errors on extract_mv.c because of the return line.