🎞️ 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.
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
- Extracts audio from a video (
video_with_audio.mp4) - Reduces background noise using the
noisereducelibrary - Saves both original and denoised audio files
🎧 Output:
audio_extracted.wavaudio_denoised.wav
- 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.mp4video_even_interlaced.mp4video_flicker_effect.mp4extreme_zoom_interlaced_frame_comparison.png
cv2(OpenCV) – for video processing and image analysismatplotlib– for visualizationnumpy– for numerical operationsmoviepy– for audio extraction from videonoisereduce– for audio denoisingsoundfile– for reading/writing audio filesshutil,os– for file handling and zipping directoriesgoogle.colab– for file uploads/downloads in Colab environment