Assume we have _postarget=t, a reference frame at _postarget=t-1, and the motion vectors and residual image for the given _postarget=t. However, assume we don't have the original video file.
Given these constraints, I would like to reconstruct the frame at _postarget=t, as described in Equation 1 of your paper.
So far, I've tried decoding the frame at _postarget=t by: (1) creating a reference frame, which is just a copy of the t-1 frame; (2) performing motion compensation by copying 16x16 pixel blocks from the t-1 frame to the reference frame, based on the motion vectors; (3) adding the residual image to the motion-compensated reference frame.
This is the reference frame at _postarget=2:
This is the result after step (1), for _postarget=3:
This is the result after step (2), for _postarget=3:
The final result seems to have some compression artifacts, so I guess I'm not reconstructing the frame correctly. Is there a better way to do this (particularly, using ffmpeg)? Thanks!
Assume we have _postarget=t, a reference frame at _postarget=t-1, and the motion vectors and residual image for the given _postarget=t. However, assume we don't have the original video file.
Given these constraints, I would like to reconstruct the frame at _postarget=t, as described in Equation 1 of your paper.
So far, I've tried decoding the frame at _postarget=t by: (1) creating a reference frame, which is just a copy of the t-1 frame; (2) performing motion compensation by copying 16x16 pixel blocks from the t-1 frame to the reference frame, based on the motion vectors; (3) adding the residual image to the motion-compensated reference frame.
This is the reference frame at _postarget=2:
This is the result after step (1), for _postarget=3:
This is the result after step (2), for _postarget=3:
The final result seems to have some compression artifacts, so I guess I'm not reconstructing the frame correctly. Is there a better way to do this (particularly, using ffmpeg)? Thanks!