Skip to content
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

Decoding a video frame, given the previous frame, current motion vectors, and current residual image. #37

Closed
itoen220 opened this issue Dec 19, 2018 · 3 comments

Comments

@itoen220
Copy link

itoen220 commented Dec 19, 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:
image

This is the result after step (1), for pos_target=3:
image

This is the result after step (2), for pos_target=3:
image

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!

@itoen220 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 itoen220 reopened this Dec 20, 2018
@itoen220 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
@ffmpbgrnn
Copy link

Hi @itoen220 , do you have any updates on better reconstruction?

@AlexSte803
Copy link

@itoen220 Did you solve it? I have the same problem.

@shencuifeng
Copy link

@itoen220 Did you solve it? I have the same problem.

did you reconstruct it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants