Enables upload of single videos using resumable.js. Videos will be converted and video info will be saved in provided YAML file.
The API provides one route: /upload
(POST)
It expects the following POST parameters (in addition to parameters provided by the resumable.js library).
title = 'video title',
abstract = 'video abstract',
description = 'video description',
category = 'video category',
thumbnail = 'time stamp for thumbnail creation (hh:mm:ss)',
[email] = 'email address to send mail to on completion (optional)'
Install dependencies via composer install
, then serve via php -S localhost:8000 -t public
.
For a resumable.js example see test.html
.
The video will be converted using ffmpeg
which has to be installed on your system.
Copy .env.example
to .env
and edit:
VIDEO_CONFIG_FILE
: Path to YAML config file.VIDEO_SRC_DIRECTORY
: Path to directory where videos will be saved.