Skip to content

nikolas-tgk/VideoCompressionByMotionEstimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Video Compression and Motion Compensation Toolkit

MATLAB Toolbox

Advanced video processing techniques implemented in MATLAB, featuring frame prediction, motion compensation and object removal.

Features

Video Preprocessing

  • Format Conversion: MP4 → Uncompressed AVI (optional)
  • Frame Rate Adjustment: 60fps → 30fps (optional)
  • Resolution Handling: Default 640x640 (configurable)
  • Color Support: RGB & Grayscale

Compression Techniques

Basic Frame Prediction

  • I-frames & P-frames sequence
  • Error frame visualization
  • Lossless RLE encoding
  • Frame differencing

Advanced Motion Compensation

  • Hierarchical motion estimation (64x64 blocks)
  • 32px search radius
  • MAD cost function
  • Multi-level pyramid refinement

Object Removal

  • Motion-compensated inpainting
  • Restricted block matching
  • 16x16 macroblocks
  • Background preservation

Implementation

Core Functions

File Purpose
transformVideo.m Video preprocessing
calcErrorImageSequence.m Frame differencing
motionCompensation.m Motion estimation
deleteObject.m Object removal
blockmatching_search.m Block matching algorithm

Getting Started

  1. Add source video (source.mp4) to project directory
  2. Run main script:
    >> main
    

Screenshots

image image image image

About

Video compression techniques using motion estimation and compensation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages