Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在对视频文件进行一些跟踪。首先,我使用 ffmpeg 分离帧,并为每个帧应用掩码,然后执行跟踪算法。
为了使这个过程更快,我正在考虑只阅读我需要的部分。喜欢阅读我应用蒙版的部分,或者比阅读对象先前位置周围的框更好。所以我正在寻找一种方法来解码和读取视频文件中特定帧的特定部分。有没有办法做到这一点?
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.