Quick Start¶
This document describes how to start django-video-transcoding as a service with demo docker-compose config.
Code checkout¶
git clone git@github.com:just-work/django-video-transcoding.git
cd django-video-transcoding
Run admin, webdav and celery worker¶
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
Transcode something¶
Add
sources.localto hosts filecurl -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¶
Development environment is deployed with docker-compose. It contains several
containers:
rabbitmq- celery task broker containeradmin- django admin containercelery- transcoder worker containersources-WebDAVwrite-enabled server for source files
SQLitedatabase file is used for simplicity, it is shared viadatabasevolume betweenadminandcelerycontainerssourcesvolume is used bysourcescontainer for sources videotmpvolume is used bycelerycontainer for temporary filesresultsvolume is used bycelerycontainer for saving transcoded HLS streams which are then served byadmincontainer for CORS bypass