An automated AI pipeline that finds the exact timestamp and extracts the video frame where a spoken dialogue quote occurs in a video.
If you have a long video (such as a 54-minute episode or YouTube clip) and you want to find the exact moment someone says a specific line:
- You provide: A public video URL (or local video file) and the spoken quote (e.g., "my mind rebels at stagnation").
- The system automatically:
- Downloads/extracts the audio track from the video.
- Runs a fast coarse search across the entire video to quickly locate the approximate timestamp.
- Runs a precise fine search on just that short ~20-second time window to get exact word-level timing.
- Uses FFmpeg to seek to the exact timestamp and capture the video frame image.
- You receive: The exact timestamp (
00:05:24.970), frame number (#7791), confidence score (100%), execution latency (0.43s), and the extracted video frame image.
Repeated searches on the same video use on-disk caching to return results in under 0.25 seconds.
The system uses a V2 Coarse-to-Fine ASR Pipeline designed for high accuracy and fast CPU performance:
Select your video source (URL or uploaded file) and enter the target spoken dialogue quote:
The system locates the quote, calculates the exact timestamp, displays match details, and renders the extracted frame:
All full design documents, architecture explanations, benchmarks, and LLM development prompts are organized under the docs/ directory:
- 📄 System Design & Engineering Approach — Detailed technical design, pipeline stages, trade-off decisions, and benchmark matrices.
- 📝 Development & Code Generation Prompts — Consolidated history of implementation prompts and research queries used during development.
- 📂 Explore Docs Directory — Browse all project documentation files.
Every search query processed by the system is automatically logged with 14 execution metrics (timestamps, confidence score, frame resolution, latency, etc.):
Clone the repository and install the dependencies:
git clone https://github.com/abinayaa0/Quest1.git
cd Quest1
pip install -r requirements.txtNote: Ensure FFmpeg is installed and available in your system PATH.
streamlit run app.pypython cli_v2.py --url "https://ok.ru/video/248244667877" --query "my mind rebels at stagnation"To run the unit test suite:
pytest tests/test_unit.py tests/test_audio_unit.py tests/test_asr_unit.py -v

