(Must be installed on local machine)
-
- To extract closed caption
-
- Used as message broker for celery
-
- To connect with DynamoDB
-
- To offload task in background
-
- To store the task results in django database
-
- To store files in remote server (AWS S3 in this case)
-
- To make REST API
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
- 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.