-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Speed and storage reproduce #29
Comments
Hey @lixinghe1999, To answer your questions:
|
To follow up on your second question: Why would the motion vectors be larger than the original frame? Let's assume the original frame is 1280 px * 720 px (720p) and contains three color channels (RGB). If it's an 8 bit image, it would take up 12807203 Bytes = 2700 KiB. If that same frame was stored as a P frame, the associated 3600 motions vectors (each 32 Bytes) of the MPEG4 encoded frame would take up 3600*32 Bytes = 112.5 KiB. So, the motion vectors are 24 times more compact than the frame. (Obviously, this calculation does not account for the keyframe which is needed as reference for the motion vectors to make sense). Let me also cite a section from the book that I recommended:
So, the motion vectors will be even further compressed by the codec. And I am quite sure the codec won't store all the zero-valued motion vectors, which there can be many depending on scene composition. |
Dear author and other people who are interested,
I am interested in ML on compressed video recently, however, after trying few codes on this repo, I have the following concerns.
I am appreciate to any comments or help! thanks in advance.
The text was updated successfully, but these errors were encountered: