Skip to main content

The video component of the Signbank app

Project description

https://badge.fury.io/py/signbank-video.png https://travis-ci.org/hujosh/signbank-video.png?branch=master https://codecov.io/gh/hujosh/signbank-video/branch/master/graph/badge.svg

The video component of the Signbank app

Documentation

The full documentation is at https://signbank-video.readthedocs.org.

Quickstart

Install signbank-video:

pip install signbank-video

Then use it in a project:

import video

You must define the following variables in settings.py:

  • FFMPEG_PROGRAM = "/usr/bin/ffmpeg
  • FFMPEG_TIMEOUT = 60
  • FFMPEG_OPTIONS = ["-vcodec", "h264", "-an"]
  • VIDEO_ASPECT_RATIO = 3.0/4.0

These variables control ffmpeg, a program that the video app requires and uses for extracting a frame from a video (a frame is a thumbnail). You can download it here: https://www.ffmpeg.org/download.html. The value of FFMPEG_PROGRAM on my system is /usr/bin/ffmpeg, but on your system it might be different; it all depends on where the installer puts the ffmpeg executable.

Your must also define these following variables in settings.py:

  • VIDEO_UPLOAD_LOCATION = "upload"
  • GLOSS_VIDEO_DIRECTORY = "video"
  • MEDIA_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), media)

MEDIA_ROOT is the root directory for your media, so for the video app it’s the root directory for all of the videos. VIDEO_UPLOAD_LOCATION, and GLOSS_VIDEO_DIRECTORY are directories inside of MEDIA_ROOT that contain user uploaded videos, and videos of each sign, respectively.

You must also define these following variables in settings.py:

  • LANGUAGE_NAME = "Auslan"
  • COUNTRY_NAME = "Australia"
  • SITE_TITLE = "Signbank"

Finally, you must also add video to the INSTALLED_APPS variable of settings.py.

Features

  • TODO

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install -r requirements_test.txt
(myenv) $ python runtests.py

Credits

Tools used in rendering this package:

History

1.10 (2016-09-20)

  • First release on PyPI.

Project details


Release history Release notifications

This version

1.10

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page