[Libav-user] Possible values of AVMotionVector source field

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Libav-user] Possible values of AVMotionVector source field

lukas
Dear libav users,

I am working on a visual tracker that uses motion vectors extracted from
H.264 and MPEG4 encoded videos. So far, I only observed values +1 and -1
for the "source" field of AVMotionVector struct:
https://www.ffmpeg.org/doxygen/4.1/structAVMotionVector.html#a0cb88b0996a7313be9f91b92b82819b7

Now, I am wondering whether the source value can have an absolute value
larger than 1. The documentation is a bit ambiguous as it contains the
note: 'XXX: set exact relative ref frame reference instead of a +/- 1
"direction"'. Looks like a Todo to me which would imply that currently
only values +1/-1 are used.

Any ideas on how I can force the encoder to produce some vectors with
absolute source values larger than 1? I want to test my algorithm to
ensure it won't brake once it encounters different source values.

Thanks a lot!

Kind regards,

Lukas Bommes

_______________________________________________
Libav-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".