raspberrypi / picamera2

New libcamera based python library
BSD 2-Clause "Simplified" License
891 stars 188 forks source link

[HOW-TO] Recording motion vector data #994

Closed Tuxliri closed 6 months ago

Tuxliri commented 7 months ago

In Picamera 1.x.x existed a class PiMotionArray that output the motion vectors of the camera stream as obtained from the h264 encoder. I couldn't find this class anymore in PiCamera2, is there an equivalent in the library or another option to obtain the motion vector from the h264 encoder, without having to explicitly compute them on the CPU?

davidplowman commented 7 months ago

We've been moving over to using standard Linux (V4L2) APIs for things like video encoders, camera devices, and so on. Unfortunately there are no standard V4L2 APIs to access motion vector data so far as I know, so this feature is no longer available.

Tuxliri commented 6 months ago

I see, that's unfortunate, it was a useful feature.