This document describes how to start django-video-transcoding as a service with demo docker-compose config.
git clone [email protected]:just-work/django-video-transcoding.git
cd django-video-transcoding
docker-compose up
- http://localhost:8000/admin/ - Django admin (credentials are
admin:admin
) - http://localhost:8000/media/ - Transcoded HLS streams served by Django
- http://sources.local/ - WebDAV for sources
- Add
sources.local
to hosts file curl -T cat.mp4 http://sources.local/
- Create new video with link above
- Wait till video will change status to DONE.
- On video change form admin page there is a sample video player.
Development environment is deployed with docker-compose
. It contains several
containers:
rabbitmq
- celery task broker containeradmin
- django admin containercelery
- transcoder worker containersources
-WebDAV
write-enabled server for source files
SQLite
database file is used for simplicity, it is shared viadatabase
volume betweenadmin
andcelery
containerssources
volume is used bysources
container for sources videotmp
volume is used bycelery
container for temporary filesresults
volume is used bycelery
container for saving transcoded HLS streams which are then served byadmin
container for CORS bypass