Demo: Diese Website ist eine Demo für fluid – keine offizielle Website von REDAXO. Operated by KLXM Crossmedia

fluid · Video

Videos that play along

Background video, a player with subtitles and transcript, versions for every screen – and a video editor in the media pool that trims, optimizes and writes subtitles.

Block “Video & Audio”

One kitten, twelve seconds

The block only has the file selected. The video editor brings the rest:

  • Poster – picked in the media pool down to the exact frame
  • Subtitles in German and English – the page language is preselected
  • Text of the video below, from the subtitles – for search and accessibility
  • Versions in 480p, 720p and 1080p plus WebM – the phone loads the small file, the big screen the sharp one

Without the video editor, the block simply plays the original – with the poster and subtitles chosen in the block.

Video transcript

A little kitten discovers its toy. Carefully at first – then with a paw! The mouse rolls under the cushion … … and is fished right back out. Meow!

Video: kitten at play, Pixabay (content license). Subtitles as an example.

Built in

What fluid does with videos

These blocks are part of fluid – the video editor is an addition, not a requirement.

  • YouTube and Vimeo

    With two-click consent: the player only loads after consent, before that just a preview image.

  • Your own files

    MP4 or WebM from the media pool – no third-party service, with poster and aspect ratio.

  • Subtitles and chapters

    WebVTT tracks per language; switched on right away if you like.

  • Text of the video

    The transcript from the subtitles – expandable below the player.

  • Cinema

    Variant “Cinema”: edge to edge on a dark background, title above – like the trailer on the home page.

  • Background video

    In the “Full-bleed” hero: muted and looping, with a pause button; with “reduce motion” the still image stays.

Block “Video & Audio”

Own video with chapters and subtitles

File, subtitles and chapters from the media pool. In the NativeCSS kit with its own player: chapters in the timeline, subtitles in the menu, keyboard and full screen.

Video transcript

Dawn breaks over layered hills. The sun climbs while the clouds drift east. Night again: northern lights ripple above a still lake. Their glow is mirrored in the water. Evening at sea, the sun touching the horizon. Light glitters on the slow swell. Back in the hills, dusk turns to night. The moon rises and the first stars appear.

Short film “Four moods” from the NativeCSS demo (MIT).

Audio

Podcast, interview, music

Two audio files make a playlist; the first one has chapters.

Gezeiten

NativeCSS Ensemble

  1. Gezeiten
  2. Morgenrot
Transcript

Instrumental pieces without speech. “Gezeiten” (Tides): calm, swaying soundscapes in four parts – ebb, current, flood, stillness. “Morgenrot” (Dawn): chords slowly growing brighter.

Music from the NativeCSS demo (MIT).

Video & audio

Video with morphing

In the NativeCSS kit the video loops silently – with a pause button – and moves aside as you scroll. With “reduce motion” the still image stays next to the text.

Addon video_editor

Editing in the media pool

The video editor (FriendsOfREDAXO/video_editor) is a separate addon for REDAXO 6 – the counterpart to the image editor. It hooks into the detail view of every video in the media pool and works with ffmpeg, as jobs in the background.

fluid doesn’t need it. If it is installed, fluid uses its posters, versions and subtitles – and the media field in the sidebar gets “Edit video” for videos.

Analysis

At a glance: is the video fit for the web?

Next to the fields of the medium, the panel shows a preview, the key facts and a score from 0 to 100. Points are deducted for codecs browsers don’t play, oversized resolution or bitrate and videos that only start once fully loaded – each with a matching preset to fix it.

  • Preview with seeking (even without range support on the server)
  • Resolution, codec, bitrate, duration
  • Recommendations with one click
Panel des Video-Editors: Vorschau des Kätzchens, Web-Tauglichkeit 100, Angaben zu Dauer, Auflösung und Codec, darunter die Knöpfe Optimieren, Schneiden und Poster wählen
Dialog „Video optimieren“: Web 1080p, 720p und 480p angekreuzt, darunter „als neue Fassung speichern“ und der Hinweis „3 Aufträge, sie laufen nacheinander“

Optimize

Several versions in one step

Web 1080p, 720p and 480p, WebM, archive, “instant playback”, remove audio, normalize loudness: tick, start. Each preset becomes its own job, the jobs run one after another.

The result is a new, linked version – the original stays. Only those with the permission may replace the original instead, and only with a single preset.

  • Never larger than the original
  • New version or replace the original (own permission)
  • The website picks the version by screen width

Trim

Timeline with thumbnails

Set the playhead, split (S), click a section and remove it – or drag its edges. “Play result” skips the removed parts.

Exact cuts frame-accurately and re-encodes. Fast copies without quality loss but can only start at keyframes – the editor shows them and marks in yellow what comes along.

  • Keyboard: space, ← →, S, I/O, Del, ⌘Z
  • Subtitles are trimmed along
  • Result as a new version
Schnitt-Editor mit Video, Zeitleiste aus Vorschaubildern und einem entfernten, schraffierten Abschnitt
Untertitel-Editor: Video mit eingeblendetem Untertitel, daneben die Einträge mit Anfang, Ende und Text

Subtitles

Writing subtitles – with live preview

Subtitles, captions for the deaf and hard of hearing (with sounds) and chapters, any number of tracks per language. Every change shows up in the video right away.

VTT and SRT files can be loaded, also in UTF-16 or Windows-1252. Saved is sanitized WebVTT in the media pool – no HTML, no style blocks.

  • Entry at the playhead (N)
  • Set start and end with a button
  • Shift everything by a few seconds

Permissions and operation

Who may do what – and how does it run?

  • View

    Preview, analysis, jobs and versions – for everyone with access to the media category.

  • Editing

    With the permission video_editor[]: optimize, trim, poster and subtitles.

  • Replace original

    Only additionally with video_editor[replace] – usages stay intact.

  • Queue

    Only one job at a time, with progress, cancel and retry.

  • Console

    Versions, posters and subtitles also by command – e.g. for many videos at once.

  • Secure

    ffmpeg only with fixed presets and argument lists, no shell; no inline styles in the backend.

For developers

Videos in your own template

A complete <video> with poster, versions and subtitles – or the parts one by one.

Template (PHP) PHP
use Klxm\VideoEditor\VideoEditor;

// fertiges <video>: Poster, Web-Fassungen je Bildschirm, Untertitel in der Sprache der Seite
echo VideoEditor::html('kaetzchen.mp4', ['label' => 'Kätzchen spielt', 'captions' => true]);

// stumm, in Schleife, ohne Bedienelemente – kleinste passende Fassung
echo VideoEditor::html('kaetzchen.mp4', ['background' => true]);

// nur fragen, wenn das AddOn da ist – fluid macht es genauso
if (class_exists(VideoEditor::class)) {
    $poster = VideoEditor::poster('kaetzchen.mp4');   // Media|null
    $sources = VideoEditor::sources('kaetzchen.mp4'); // url, type, media
    $tracks = VideoEditor::tracks('kaetzchen.mp4');   // url (text/vtt), lang, kind, label
}
Terminal
# Fassungen anlegen – laufen nacheinander im Hintergrund
php bin/console video:optimize kaetzchen.mp4 web480,web720,web1080,webm

# Standbild bei 4,6 Sekunden als Poster
php bin/console video:poster kaetzchen.mp4 4.6

# Untertitel aus VTT oder SRT übernehmen (gesäubert, als WebVTT verknüpft)
php bin/console video:subtitles kaetzchen.mp4 untertitel-en.srt --lang=en --label=English

# wartende Aufträge abarbeiten (sonst erledigt das der Cronjob)
php bin/console video:work

The versions appear as <source> with a media query: 480p up to 640 px width, 720p up to 1280 px, above that WebM and 1080p.

Try it

This site is built with REDAXO 6 and fluid.

Sign in, tap “Edit” – and change every text, every image and the whole design right here.