Skip to content
An App that handles multimedia files (audio and video files) integrated with Youtube and UOL Mais service
Python Other
Find file
Latest commit bc91618 Apr 14, 2016 @ervilis ervilis Merge pull request #29 from williamroot/viemo_youtube_embed
Fix get embed code on editor from vimeo and youtube
Failed to load latest commit information.
.tx Fix tx config Aug 9, 2013
opps Fix get embed code on editor from vimeo and youtube Apr 11, 2016
.gitignore Add .mo files / remove .mo from gitignore Jan 29, 2014
.travis.yml
Makefile Change make tx and add en_US .po file Aug 8, 2013
README.md update linux dependenci, requer x264 and libvpx Mar 25, 2014
requirements.txt Fix youtube get_info Sep 14, 2015
requirements_test.txt Add travis file / fix pep8 warnings / add makefile and runtests Jul 18, 2013
runtests.py Fix tests / PEP8 fixes Sep 11, 2013
setup.py Fixed pep8 Apr 30, 2014

README.md

opps-multimedias

Build
Status

Multimedia Application for Opps

Requirements

Linux: FFVideo, x264, libvpx

Python: Opps, ffvideo

Installation

Install FFVideo dependencies:

sudo apt-get install python-dev cython libavcodec-dev libavformat-dev libswscale-dev, x264, libvpx

Install Celery dependencies:

sudo apt-get install rabbitmq-server

Install UOL Mais lib:

pip install -e git+git@github.com: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 = 'sergio@tracy.com.br'
YOUTUBE_AUTH_PASSWORD = 'this is my password'
YOUTUBE_DEVELOPER_KEY = 'AI39si4JXaQthEfdVoTjpgJ5hWhK5JFgz-lkaTquXGYl8P-QLKUiwEEFasdiouIKJHDhsjk823KJKsohvBPaYPQ'

UOLMAIS_USERNAME = 'sergio@tracy.com.br'
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

Something went wrong with that request. Please try again.