Code Monkey home page Code Monkey logo

opps-multimedias's Introduction

opps-multimedias

Multimedia Application for Opps

Requirements

Linux: FFVideo

Python: Opps, ffvideo

Installation

Install FFVideo dependencies:

sudo apt-get install python-dev cython libavcodec-dev libavformat-dev libswscale-dev

Install Celery dependencies:

sudo apt-get install rabbitmq-server

Install UOL Mais lib:

pip install -e [email protected]:YACOWS/Multimedia-UOLMais.git#egg=uolmais-api

Install the opps-multimedias lib:

python setup.py install

or

pip install opps-multimedias

Configuration

Include opps.multimedias and djcelery on your django settings

INSTALLED_APPS += (
    'opps.multimedias',
    'djcelery',
)

Add celery configuration

import djcelery
djcelery.setup_loader()
BROKER_URL = 'amqp://guest@localhost:5672'

Add TemporaryFileUploadHandler as the default upload file handler

FILE_UPLOAD_HANDLERS = (
    'django.core.files.uploadhandler.TemporaryFileUploadHandler',
)

Add Youtube and UOL Mais credentials:

YOUTUBE_AUTH_EMAIL = '[email protected]'
YOUTUBE_AUTH_PASSWORD = 'this is my password'
YOUTUBE_DEVELOPER_KEY = 'AI39si4JXaQthEfdVoTjpgJ5hWhK5JFgz-lkaTquXGYl8P-QLKUiwEEFasdiouIKJHDhsjk823KJKsohvBPaYPQ'

UOLMAIS_USERNAME = '[email protected]'
UOLMAIS_PASSWORD = 'this is my password'

Create DB tables:

python manage.py syncdb

Final Notes

This Django App fully relies on Django Celery tasks. To get all it's features working properly make sure celery is running with events and beat activated.

To start it use the following command:

python src/manage.py celery worker --loglevel=error --events --beat

To get tasks information on Django Admin UI you will also need to activate celerycam.

python src/manage.py celerycam

To avoid memory leaks ensure that settings.DEBUG is set to False.

License

Copyright 2013 YACOWS <http://yacows.com.br/>_. and other contributors

opps-multimedias's People

Contributors

arloc avatar avelino avatar rochacbruno avatar seocam avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.