Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openedx/edx-val
https://github.com/openedx/edx-val
Last synced: 8 days 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 (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-05T05:48:44.000Z (9 months ago)
- Last Synced: 2024-04-09T23:10:48.935Z (9 months ago)
- Language: Python
- Size: 1.48 MB
- Stars: 11
- Watchers: 117
- Forks: 26
- Open Issues: 4
-
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/activateTo run tests:
.. code-block:: bash
make test