How to perform motion compensation on two jpeg pictures?

95 Views Asked by At

Now I have several JPEG images taken in a burst, and I want to use motion compensation technology on them to reduce the difference between them.Is there any ready-made code that can be used, preferably C++ or python.

1

There are 1 best solutions below

2
Markus Schumann On

I don't want to re-invent the wheel.

  1. Decompress your JPEG still images
  2. Re-compress your JPEGs into AVC (H.264) or HEVC (H.265)
  3. Stick the resulting stream into a MP4 or MOV container

You can do this with FFMPEG on the command line, use FFMPEG's C-API, find a FFMPEG Python wrapper.

Or you could use libJPEG (C-API) to decompress than use x264 (C-API) to make AVC.