openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

Extract motion vectors from h264 stream without actually decoding it.

Open mohammedzakikochargi opened this issue 2 years ago • 3 comments

Hii, Is it possible to just extract the motion vector data from a h264 encoded stream/frame without actually decoding the whole stream/frame.

mohammedzakikochargi avatar Feb 27 '23 12:02 mohammedzakikochargi

Not yet such an API for this. You may do it in the source code according to your requirement.

huili2 avatar Feb 28 '23 00:02 huili2

Not yet such an API for this. You may do it in the source code according to your requirement.

  1. Is it possible to parse the h264 bitstream and get motion vectors from it.
  2. Or is it that to get the motion vectors from h264 bitstream , the bitstream needs to be at least partially decoded first.

mohammedzakikochargi avatar Feb 28 '23 05:02 mohammedzakikochargi

@mohammedzakikochargi sure the decoder should do this and have the detailed data inside, but as traditional ones did, current decoder should do classic one-by-one steps to get the MV, without any shortcuts.

huili2 avatar Feb 28 '23 07:02 huili2