Extracting motion vectors from movie
I know how to use ffplay or ffmpeg to create the motion vectors visualization: ffplay -i myvideo.mp4 -flags2 +export_mvs -vf codecview=mv=pf+bf+bb
How can I do the same in ffmpeg-python? I tried adding .filter(“-flags2”,”+export_mvs”) but this resulted an error.
What is the correct way to add both the flags2 and the codecview?
if I get just get the motion vectors without the image it will even be better.
I am working on a win10 os. thank you .