Skip to main content

Summary

This cube provides basic media storage, transcoding and streaming features.

Storage

This cube defines two SoundFile and VideoFile entity types. Each entity uses a data attribute to store original raw data and custom data_<fmt> (e.g. data_mp3, data_ogv attributes) to store transcoded data.

BFSS is used to store data on the filesystem. The root directory is specified by the media-dir configuration option.

Transcoding

Modification hooks are responsible for reenconding media files. ffmpeg is used to convert sound and video files to streamable formats.

Encoding uses Celery as an asynchronous task queue manager, see below for installation.

Streaming

jplayer is used to stream media content.

Installation

See Celery for a complete documentation. Here is a quick startup using RabbitMQ as broker for Celery:

apt-get install rabbitmq-server

RabbitMQ requires a minimal setup. For instance (all permissions for user user on vhost vhost):

sudo rabbitmqctl add_user user password
sudo rabbitmqctl add_vhost vhost
sudo rabbitmqctl set_permissions -p vhost user '.*' '.*' '.*'

Configuration

Create a celeryconfig.py file in the same directory as the all-in-one.conf file (namely, the application home), with following content:

BROKER_URL = 'amqp://user:password@localhost:5672/vhost'

See http://docs.celeryproject.org/en/latest/userguide/application.html#configuration for more configuration options.

Execution

Use the command below to run the celery worker handler:

celery -A cubicweb_celery -i <instance_name> worker [ --beat ]

Release files for cubicweb-mediaplayer 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cubicweb-mediaplayer 0.2.2
File Size Uploaded
cubicweb-mediaplayer-0.2.2.tar.gz 224.6 kB Details

Release files / cubicweb-mediaplayer-0.2.2.tar.gz

Download URL cubicweb-mediaplayer-0.2.2.tar.gz
Size 224.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b2e0ccc85e43d597966e72b263dc6137d8e8d7a38718d037a03194847a1149e1
BLAKE2b-256 checksum
How to use checksums
460659d4b76bce2e524f1056275f86631e58cc603fcb083f332e04ca58f190b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page