https://github.com/openedx/edx-val
https://github.com/openedx/edx-val
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/openedx/edx-val
- Owner: openedx
- License: agpl-3.0
- Created: 2014-07-08T20:11:27.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2025-03-21T02:42:25.000Z (about 1 year ago)
- Last Synced: 2025-03-21T18:03:11.769Z (about 1 year ago)
- Language: Python
- Size: 1.59 MB
- Stars: 11
- Watchers: 107
- Forks: 30
- Open Issues: 7
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
edx-val (Video Abstraction Layer)
=================================
edx-val is a django app that creates and retrieves metadata for videos and subtitles. When creating video entries, they can be assigned to preset profiles such as 'high_quality' or 'mobile_only'. When requesting a video, the client does not need to know which profile to retrieve, but only the `edx_video_id` of that video. Since all the different profiles for that particular video is returned, the client can decide which profiles they want to use.
Example:
Retrieve all profiles for a video with `edx_video_id`="example"
.. code-block:: python
>>> get_video_info("example")
{
'url' : '/edxval/videos/example',
'edx_video_id': u'example',
'duration': 111.0,
'client_video_id': u'The example video',
'encoded_videos': [
{
'url': u'http://www.example.com/example_mobile_video.mp4',
'file_size': 25556,
'bitrate': 9600,
'profile': u'mobile'
},
{
'url': u'http://www.example.com/example_desktop_video.mp4',
'file_size': 43096734,
'bitrate': 64000,
'profile': u'desktop'
}
]
}
Developing
----------
First, create a virtual environment:
.. code-block:: bash
virtualenv venvs/val
source venvs/val/bin/activate
To run tests:
.. code-block:: bash
make test