suraj-ml-projects/video-timeline-reconstruction
0
π¬ 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
- Enter timestamps β paste your Hindi speaking windows (one
HH:MM:SS - HH:MM:SSper line) - Upload English video β click Process English Video to validate
- Upload Hindi video β click Process Hindi Video to validate
- 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:05Technical 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
+faststartfor web playback - Handles videos of any size β processing is fully disk-based
Local Setup
git clone https://huggingface.co/spaces/YOUR_USERNAME/hindi-english-video-merger
cd hindi-english-video-merger
pip install -r requirements.txt
python app.pyRequires FFmpeg: sudo apt-get install ffmpeg / brew install ffmpeg
