You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assume we have pos_target=t, a reference frame at pos_target=t-1, and the motion vectors and residual image for the given pos_target=t. However, assume we don't have the original video file.
Given these constraints, I would like to reconstruct the frame at pos_target=t, as described in Equation 1 of your paper.
So far, I've tried decoding the frame at pos_target=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 pos_target=2:
This is the result after step (1), for pos_target=3:
This is the result after step (2), for pos_target=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!
The text was updated successfully, but these errors were encountered:
itoen220
changed the title
Decoding the video frame from I-frame, motion vectors, and residual image.
Decoding a specific video frame, using only the corresponding I-frame, motion vectors, and residual image.
Dec 19, 2018
itoen220
changed the title
Decoding a specific video frame, using only the corresponding I-frame, motion vectors, and residual image.
Decoding a video frame, given the previous frame, current motion vectors, and current residual image.
Dec 20, 2018
Assume we have pos_target=t, a reference frame at pos_target=t-1, and the motion vectors and residual image for the given pos_target=t. However, assume we don't have the original video file.
Given these constraints, I would like to reconstruct the frame at pos_target=t, as described in Equation 1 of your paper.
So far, I've tried decoding the frame at pos_target=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 pos_target=2:
This is the result after step (1), for pos_target=3:
This is the result after step (2), for pos_target=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!
The text was updated successfully, but these errors were encountered: