CoolFace
Apppublic

suraj-ml-projects/video-timeline-reconstruction

sourceHugging Facemitupdated 1d agoView on Hugging Face
0likes
App README

🎬 Hindi–English Video Merger

Seamlessly merge a Hindi dubbed video with an English source so that:

  • β€”Hindi speech segments are taken from the Hindi dubbed video
  • β€”Silent gaps in the Hindi video are filled with the corresponding English video
  • β€”The final output has continuous audio with no gaps or overlaps

How to Use

  1. 1.Enter timestamps β€” paste your Hindi speaking windows (one HH:MM:SS - HH:MM:SS per line)
  2. 2.Upload English video β€” click Process English Video to validate
  3. 3.Upload Hindi video β€” click Process Hindi Video to validate
  4. 4.Generate β€” click Generate Final Video and download the result

Timestamp Format

# Lines starting with # are ignored
00:00:10 - 00:00:25
00:01:05 - 00:01:40
00:03:12 - 00:04:05

Technical Details

  • β€”Uses FFmpeg for all video/audio processing (memory-efficient, streams from disk)
  • β€”Frame-accurate segment extraction with PTS reset (-avoid_negative_ts make_zero)
  • β€”Final output: H.264 + AAC MP4 with +faststart for web playback
  • β€”Handles videos of any size β€” processing is fully disk-based

Local Setup

bash
git clone https://huggingface.co/spaces/YOUR_USERNAME/hindi-english-video-merger
cd hindi-english-video-merger
pip install -r requirements.txt
python app.py

Requires FFmpeg: sudo apt-get install ffmpeg / brew install ffmpeg