soroosh.strife
soroosh.strife

Reputation: 1191

Read part of every frame of a video file

I'm doing some tracking on video files. First I separate frames using ffmpeg and the for each frame i apply a mask and then perform the tracking algorithm.

To make this process faster I'm thinking about reading only the parts I need. like reading the part that I apply the mask or better than that reading boxes around the previous positions of objects. So I'm looking for a way to decode and read a specific part of a specific frame from a video file. Is there any way to do that?

Upvotes: 0

Views: 252

Answers (1)

Daniel Mošmondor
Daniel Mošmondor

Reputation: 19956

No. Unless you know how every part of decoder (for the encoding that's used) works.

I would suggest you that you rather use some streaming algorithm - so that you don't have to store whole pictures from ffmpeg.

Upvotes: 1

Related Questions