Skip to main content

Build Status Coverage Status

Django + AWS Elastic Transcoder

Install

First, install dj_elastictranscode with pip

$ pip install django-elastic-transcoder

Then, add dj_elastictranscoder to INSTALLED_APPS

INSTALLED_APPS = (
    ...
    'dj_elastictranscoder',
    ...
)

Bind urls.py

urlpatterns = patterns('',
    ...
    url(r'^dj_elastictranscoder/', include('dj_elastictranscoder.urls')),
    ...
)

Migrate

$ ./manage.py migrate

Setting up AWS Elastic Transcoder

  1. Create a new Pipeline in AWS Elastic Transcoder.

  2. Hookup every Notification.

  3. Subscribe SNS Notification through HTTP

  4. You are ready to encode!

Usage

For instance, encode an mp3

from dj_elastictranscoder.transcoder import Transcoder

input = {
    'Key': 'path/to/input.mp3',
}

outputs = [{
    'Key': 'path/to/output.mp3',
    'PresetId': '1351620000001-300040' # for example: 128k mp3 audio preset
}]

pipeline_id = '<pipeline_id>'

transcoder = Transcoder(pipeline_id, 'ap-southeast-1')
transcoder.encode(input, outputs)

Release files for django-elastic-transcoder 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-elastic-transcoder 0.2
File Size Uploaded
django-elastic-transcoder-0.2.tar.gz 4.6 kB Details

Release files / django-elastic-transcoder-0.2.tar.gz

Download URL django-elastic-transcoder-0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7c089035193657da5b256140572288bf66fe3a8ebdffd820f7e89e524aa93d8d
BLAKE2b-256 checksum
How to use checksums
c963a1214523bb291e23b69a9877817df2ed9ec79a188bfd0539417748247453
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.9.6

1 release file

0.9.5

1 release file

0.9.4

1 release file

0.9.3

1 release file

0.9.2

1 release file

0.9.1

1 release file

0.9

1 release file

0.8

1 release file

0.7

1 release file

0.6

1 release file

0.5

1 release file

0.4

1 release file

This release

0.2 This release

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page