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.1.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

django_video_encoder-1.0.1-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_video_encoder-1.0.1.tar.gz
  • Upload date:
  • Size: 9.2 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.1.tar.gz
Algorithm Hash digest
SHA256 924b2bae3769da1393428bfe4b54dcad5dfabda3694c336f8712b64e795ddb8b
MD5 f961946da75d5faeee0fb433735727b2
BLAKE2b-256 caaeaf9a33bc4bed3ee5ab498ba2d6e85e09c5e29a59c17f122dc22258f4a44b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_video_encoder-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 13.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 494fe33cc3150b934f7d97017c635c9fbdb341ba932945dcc63a6d3701701e7c
MD5 9b18a18460822f7f76b235ee40267c82
BLAKE2b-256 6390e54df3b759b3f80d9cd22bb5dadd189c65e4c642004b314eea419c5f7961

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