Videos#
Frames of a video for a model to look at, drawn by ffmpeg without playing it: at the times named, or a number spread through it, as one labelled sheet or a file each. With --json each frame comes with its time and the subtitle shown then. --text gives a video’s subtitles, with their times: an SRT or WebVTT file named after it beside it, or its own text subtitles.
| Option | Argument | Default | Description |
|---|---|---|---|
--at | string | moments of a video, as 1:23, 83.5 or 1m23s, comma-separated: the frames an export draws, several as one sheet or a file each with –output-dir; the viewer starts at the first | |
--frames | int | export this many frames of a video, 1..16, spread through it: one sheet, or a file each with –output-dir | |
--video-sandbox | play video in a sandboxed helper process (silent, software decoding) |
Examples#
# The frame at 1:23, as a PNG
gloss --at 1:23 --output frame.png clip.mp4
# Nine frames through a video, as one sheet
gloss --frames 9 --output sheet.png clip.mp4
# Frames at three times, a file each, with their subtitles
gloss --at 0:05,0:30,1:00 --output-dir frames --json clip.mp4
# The subtitles, with their times
gloss --text clip.mp4
# Start playing at 1:23
gloss --at 1:23 clip.mp4