0

I would like to apply some kind of super-resolution (SR) to the keyframes in an H.264 video. The SR process should target the keyframes and upscale them by a factor of 2.

For the past few days, I've been trying to see where can I hold the key frame, in the C src code, in order to scale it. I'm confused whether to apply the scaling in the parsing packet part, or in the decoding part.

I also don't know if upscaling the B & P frames would be enough to not damage the video frames.

I hope you guide me as there are no sufficient documentation about FFmpeg. If you have any suggestions please let me know.

Thank you!

  • 1
    Scaling and other pixel operations operate upon raster data i.e. decoded frames. So you to decode and encode again. I don't think this will turn out as you expect. – Gyan Jan 26 '19 at 5:01
  • I don't actually want to encode again. I want to display the decoded upscaled frames only. – hemoali Jan 26 '19 at 11:21
  • hemoali - I think what gyan is saying is that you have no other option. – Dr Mayhem Feb 7 '19 at 18:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.