Skip to content

codeldorado/video-caption-search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Caption Search App

Project Description

This project is an application that allows users to upload videos, extract subtitles, and search through subtitles to find relevant video frames based on natural language queries. The backend is built with Django and Django REST framework, and the frontend is built with React.

Features

  • Upload videos (less than 3 minutes)
  • Extract subtitles from uploaded videos
  • Search subtitles using natural language queries
  • Display video frame based on search results

Tech Stack

  • Backend: Django, Django REST framework
  • Frontend: React, Axios
  • Database: SQLite (can be swapped with any other database)
  • Other Tools: Docker, ffmpeg (for subtitle extraction)

Setup Instructions

Backend

  1. Clone the repository:

    git clone https://github.com/codeldorado/video-caption-search.git
    cd video-caption-search/backend
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the dependencies:

    pip install -r requirements.txt
  4. Apply migrations:

    python manage.py migrate
  5. Run the development server:

    python manage.py runserver

Frontend

  1. Navigate to the frontend directory:

    cd ../frontend
  2. Install the dependencies:

    npm install
  3. Start the development server:

    npm start

Using Docker

  1. Build and run the Docker containers:

    docker-compose up --build

Usage

  1. Upload a Video:

    • Go to the frontend, and use the upload component to upload a video file.
  2. Search Subtitles:

    • Enter a natural language query in the search bar to find relevant video frames.

API Endpoints

  • Video Upload: POST /api/videos/
  • Search Subtitles: POST /api/videos/<video_id>/search/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published