Skip to content

ormsbee/edx-val

This branch is 1 commit ahead of, 7 commits behind openedx/edx-val:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c81b003 · Jan 21, 2025
Nov 1, 2024
Jan 21, 2025
Jan 17, 2025
Nov 1, 2018
Nov 9, 2021
Aug 4, 2014
Dec 6, 2019
Jun 24, 2022
Jun 27, 2019
Sep 13, 2022
Apr 14, 2021
Oct 1, 2019
Nov 1, 2024
Feb 14, 2023
Nov 8, 2021
Nov 1, 2024
Sep 10, 2024
Feb 16, 2022

Repository files navigation

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"

>>> 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:

virtualenv venvs/val
source venvs/val/bin/activate

To run tests:

make test

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.1%
  • Makefile 0.9%