jishnujayakumar / MV-Tractus

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

Vectors at different levels #23

Closed sak25 closed 3 years ago

sak25 commented 3 years ago

Is it possible to extract motion vectors at 8x8 or 4x4 level as well. Currently its at 16x16 level.

jishnujayakumar commented 3 years ago

It's possible. But I think it depends on the encoder. Since mv-tractus decodes the stream, it has no control over the block size. Once the motion-vec info is obtained only then it can be inferred. I hope that this answered your query.

sak25 commented 3 years ago

It's possible. But I think it depends on the encoder. Since mv-tractus decodes the stream, it has no control over the block size. Once the motion-vec info is obtained only it can be inferred. I hope that this answered your query.

Thanks a lot.Exactly, but since you mention for h.264 encoded format, which has 16x16 pixel level, I was a bit confused. It would work for hevc encoded video formats as well then right?

jishnujayakumar commented 3 years ago

I haven't tried MVT that way. So I am afraid I can't help in that context.