mariocesar / wagtailvideos

Videos for Wagtail CMS, including transcoding

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wagtailvideos

Based on wagtailimages. The aim was to have feature parity with images but for html5 videos. Includes the ability to transcode videos to a html5 compliant codec using ffmpeg.

Requirements

Installing

Install using pypi

Using

On a page model:

Implement as a ForeignKey relation, same as wagtailimages.

In template:

The video template tag takes one required postitional argument, a video field. All extra attributes are added to the surrounding <video> tag. The original video and all extra transcodes are added as <source> tags.

{% load wagtailvideos_tags %}
{% video self.header_video autoplay controls width=256 %}

How to transcode using ffmpeg:

Using the video collection manager from the left hand menu. In the video editing section you can see the available transcodes and a form that can be used to create new transcodes. It is assumed that your compiled version of ffmpeg has the matching codec libraries required for the transcode.

Future features

  • Richtext embed
  • Streamfield block
  • Transcoding via amazon service rather than ffmpeg
  • Wagtail homescreen video count

About

Videos for Wagtail CMS, including transcoding

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Python 73.6%Language:HTML 18.2%Language:JavaScript 8.2%Language:CSS 0.1%