Giter Site home page Giter Site logo

saurzv / subtitle-extractor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 33 KB

Utility to generate subtitles of video inputs

Home Page: http://ec2-65-2-63-22.ap-south-1.compute.amazonaws.com/

Python 70.49% HTML 27.93% CSS 1.58%
bootstrap5 ccextractor django redis subtitles-generator subtitles-parsing

subtitle-extractor's Introduction

Subtitle Extractor

link


Dependencies

Required binaries

(Must be installed on local machine)

  • ccextractor
    • To extract closed caption
  • redis
    • Used as message broker for celery

Required pip modules

  • boto3
    • To connect with DynamoDB
  • celery
    • To offload task in background
  • django
  • djago-celery-results
    • To store the task results in django database
  • django-storages
    • To store files in remote server (AWS S3 in this case)
  • djangorestframework
    • To make REST API

Run on local machine

Install the required binaries Clone the repository and install required pip modules

git clone https://github.com/saurzv/subtitle-extractor.git
cd subtitle-extractor
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Create a .env file with these values :

AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
DJANGO_SECRET_KEY

Make migratations and run server

python3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver

In another terminal with same virtual enivronment, run celery

celery -A server worker -l info

Visit the site at http://127.0.0.1:8000/

commands are written with bash shell in mind


Further scope of improvements

  • Uploading large files can lead to the user being stuck on the homepage for a very long time. POST requests can be offloaded to celery in the background, and a waiting page can be shown with a polling API.
  • Progress bar for file upload.
  • Error pages can be implemented.
  • Option to download the extracted .srt file can be implemented.

subtitle-extractor's People

Contributors

saurzv avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.