Skip to content

datenanfragen/media

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

media.datenanfragen.de

This repository contains the source code and scripts for media.datenanfragen.de, our site for hosting videos.

Adding a new video

Requirements: You need to download the video2hls script and place it in the repository's folder as video2hls. You also need s3cmd, configured for the Exoscale bucket we are using for this site.

  1. Place the video file in the videos_input directory.

  2. In videos.json, add a new object of the following format to the array (the subtitles property is optional):

    {
        "id": "19700101-my-slug",
        "title": "The video's title",
        "in_file": "197001010-my-slug.mp4",
        "subtitles": [
            {
                "lang": "en",
                "label": "English",
                "src": "https://static.dacdn.de/talks/subtitles/19700101-myslug-en.vtt"
            }
        ]
    }
  3. Run yarn update-site to transcode the video (this will take a while depending on the video length), generate its embed page and deploy the site.

About

Source code and scripts for media.datenanfragen.de, our site for hosting videos.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published