Giter VIP home page Giter VIP logo

signbank-video's Introduction

signbank-video

https://badge.fury.io/py/signbank-video.png https://travis-ci.org/Signbank/signbank-video.png?branch=master

A Django application to handle video storage, designed to support the Signbank sign language dictionary application. This basically provides a video store where videos can be associated with a category and a tag - both string values. The category is intended to be something like the name of the model that you want to associate the video with (eg. Gloss), the tag is a unique identifier (eg. the sign IDgloss). Videos can be referenced by the combination of category and tag labels.

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:

signbank-video's People

Contributors

josh-signbank avatar stevecassidy avatar

Watchers

Henri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.