Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Ali-Tharwat/Video-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎞️ Video-Analysis : Motion-Based hidden letter detection, audio extraction, and interlaced video simulation

This project implements a multi-phase pipeline to analyze video content by detecting hidden letters through motion filtering, extracting and denoising audio, and simulating interlaced video scanning with enhancement effects.


📽️ Project Phases

Phase 1: Hidden Letter Detection (Motion-Based)

  • Reads a video (video_with_letters.mp4)
  • Converts frames to grayscale and applies frame differencing
  • Filters out noisy frames with high motion
  • Saves only meaningful binary motion masks revealing hidden content

📁 Output: motion_frames/mask_###.png
🕵️ Hidden Message Revealed: Hello From Colab


Phase 2: Audio Extraction & Denoising

  • Extracts audio from a video (video_with_audio.mp4)
  • Reduces background noise using the noisereduce library
  • Saves both original and denoised audio files

🎧 Output:

  • audio_extracted.wav
  • audio_denoised.wav

Phase 3: Interlaced Video Simulation + Bonus Effects

  • Simulates odd/even field interlacing by manipulating scanlines
  • Applies a zoom effect for emphasis on regions
  • Creates a flicker effect by alternating interlaced frames
  • Saves final video outputs and a comparison image

📹 Output:

  • video_odd_interlaced.mp4
  • video_even_interlaced.mp4
  • video_flicker_effect.mp4
  • extreme_zoom_interlaced_frame_comparison.png

🧰 Tech Stack

Python OpenCV Matplotlib NumPy NoiseReduce SoundFile shutil and os Google Colab

🐍 Python Libraries Used:

  • cv2 (OpenCV) – for video processing and image analysis
  • matplotlib – for visualization
  • numpy – for numerical operations
  • moviepy – for audio extraction from video
  • noisereduce – for audio denoising
  • soundfile – for reading/writing audio files
  • shutil, os – for file handling and zipping directories
  • google.colab – for file uploads/downloads in Colab environment

About

Motion-Based hidden letter detection, Audio extraction & Interlaced video simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published