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.

To the video editor
 
 
 
 

 
 

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](https://fluid.klxm.de/media/ncss-gezeiten.m4a)
2. [Morgenrot](https://fluid.klxm.de/media/ncss-morgenrot.m4a)

  

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](https://fluid.klxm.de/media/image_editor_3x4_1280/fluid-video-panel.jpg?buster=9a7a6d6687b4)

 
 
 
 
 

 
 
 

![Dialog „Video optimieren“: Web 1080p, 720p und 480p angekreuzt, darunter „als neue Fassung speichern“ und der Hinweis „3 Aufträge, sie laufen nacheinander“](https://fluid.klxm.de/media/image_editor_3x4_1280/fluid-video-optimieren.jpg?buster=9a7a6d6687b4)

 

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](https://fluid.klxm.de/media/image_editor_3x2_1280/fluid-video-schneiden.jpg?buster=9a7a6d6687b4)

 
 
 
 
 

 
 
 

![Untertitel-Editor: Video mit eingeblendetem Untertitel, daneben die Einträge mit Anfang, Ende und Text](https://fluid.klxm.de/media/image_editor_3x2_1280/fluid-video-untertitel.jpg?buster=9a7a6d6687b4)

 

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

 
 
 
 
 

 

And also

## Poster, fast cut, queue

 

- [!\[Dialog „Poster wählen“ mit dem Video und Knöpfen für eine Sekunde und ein Bild vor und zurück\](https://fluid.klxm.de/media/image_editor_3x2_1280/fluid-video-poster.jpg?buster=9a7a6d6687b4)](https://fluid.klxm.de/media/image_editor_1920/fluid-video-poster.jpg?buster=aed42c9237bb) 
  Pick a poster: exact to the frame with ±1 frame – a new one replaces the old one everywhere
- [!\[Zeitleiste im Modus „Schnell“ mit Markierungen der Schlüsselbilder und einem gelb markierten Vorlauf\](https://fluid.klxm.de/media/image_editor_3x2_1280/fluid-video-schnell.jpg?buster=9a7a6d6687b4)](https://fluid.klxm.de/media/image_editor_1920/fluid-video-schnell.jpg?buster=aed42c9237bb) 
  Fast cut: keyframes on the timeline, in yellow what comes along
- [!\[Medienliste mit dem Hinweis „Video-Editor: ein Auftrag läuft (71 %)“ über den neuen Fassungen des Videos\](https://fluid.klxm.de/media/image_editor_3x2_1280/fluid-video-warteschlange.jpg?buster=9a7a6d6687b4)](https://fluid.klxm.de/media/image_editor_1920/fluid-video-warteschlange.jpg?buster=aed42c9237bb) 
  Media list: open jobs at the top and on the video, updated live

 
 
 

 

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.

 
 
[How editing works](https://fluid.klxm.de/en/fluid/editing/)[See the technology](https://fluid.klxm.de/en/redaxo-6/technology/)


---

Source: https://fluid.klxm.de/en/plus/video/
<style nonce="438e3bd70c3bbe4903bed4ca9f496f9a">.fs-455c15fee1{--ncss-grid-min:13rem !important}</style>