Subtitling Dutch videos

PeerTube is a powerful open source platform that allows institutions to quickly set up a feature rich portal to grant users access to their video collections. For video content containing spoken audio, accessibility can be further enhanced with the use of subtitles or closed captions:

  • Making spoken audio accessible to viewers who are hearing impaired
  • Making spoken audio accessible to viewers who aren’t native in the spoken language
  • Extracting keywords and annotations can help to find videos, based on the words mentioned within
More …

Updating videos with the API

After bulk importing videos into a channel you might realize that you have forgotten to set something for all videos or that you made a mistake in setting something. With the help with some Python scripting and the PeerTube API it’s possible to bulk update your videos and this article shows how that can be achieved.

More …

Importing videos with the API

To upload or import a video with the API to your PeerTube instance, it only requires 3 pieces of data:

  • a video source file (either by file upload or by target URL import)
  • a title for the video (between 3 and 120 characters)
  • a channel ID that will contain the video (number 1 or higher)

There are a lot of other optional data fields you can set and in this article we will show how we imported videos in bulk with their metadata.

More …

Using the PeerTube API with Python

The PeerTube API is built on HTTP(S) and is RESTful. You can use your favorite HTTP/REST library for your programming language to use PeerTube. See the REST API quick start for a few examples of using the PeerTube API. For the sake of simplicity we are using Python and this article is a short introduction to some of the basic concepts of our Python tools/scripts.

More …

Migrating 7000 videos

As part of this project we bulk imported around 7000 videos to our PeerTube instance. We succesfully achieved this by using a Python script that uses the PeerTube API. Before we get into the technical details of this script, we will share some general conclusions and recommendations first.

More …