Skip to main content

Simple integration of a Django model with a FileField to encoding backends

Project description

https://img.shields.io/pypi/v/django-video-encoder.svg https://img.shields.io/pypi/pyversions/django-video-encoder.svg PyPI - Django Version

Simple integration with video encoding backends.

For now only the remote zencoder.com is supported.

Upload videos and asynchronously store the encoded videos.

Requirements

Django 2.2+ and Celery to asynchronously run the encoding tasks.

Usage

You will need to add the following to your django settings:

  • Add django_video_encoder to INSTALLED_APPS

  • Set the DJANGO_VIDEO_ENCODER_THUMBNAIL_INTERVAL

  • Add the desired formats, for example

    DJANGO_VIDEO_ENCODER_FORMATS = [
        {'label': 'H.264 (HD)', 'codec': 'h264'},
        {'label': 'H.264', 'codec': 'h264', 'width': 720, 'height': 404},
        {'label': 'VP9 (HD)', 'codec': 'VP9'},
        {'label': 'VP9', 'codec': 'VP9', 'width': 720, 'height': 404},
    ]

And specific settings using the zencoder backend:

  • Add ZENCODER_API_KEY and ZENCODER_NOTIFICATION_SECRET

  • You may also specify ZENCODER_REGION (default: europe) to the most suitable for you

Tests

Run tests with tox

Misc

To not be confused with the archived theonion/django-zencoder which is installed as zencoder

See also similar project escaped/django-video-encoding

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_video_encoder-1.0.0.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

django_video_encoder-1.0.0-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file django_video_encoder-1.0.0.tar.gz.

File metadata

  • Download URL: django_video_encoder-1.0.0.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for django_video_encoder-1.0.0.tar.gz
Algorithm Hash digest
SHA256 54f6816f6c13632b70a9c5df669e0e553008c6241a103b16304b388ce2c2e9d1
MD5 fd67f2d26eedf86360e2ad469600d779
BLAKE2b-256 10d1a8ed89ebe50b9e345e56a53191257bfb86dd42ae0e68b2e2d65423f37a53

See more details on using hashes here.

File details

Details for the file django_video_encoder-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: django_video_encoder-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.0

File hashes

Hashes for django_video_encoder-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d0709c96fd6f3aa90a7ace6fe0fccbbfce069ecebe6ea37df5f18f198c52b98d
MD5 36861af6518fcc0b7e29538bd0e2df46
BLAKE2b-256 18713aea3df464c3ae3bcbe22df0c2e13d76c0d45a17c38f9ebd3418557ca8e9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page