Modified the "check" script in package.json to reference the correct "examples" directory. Updated the README to replace "video editor" with "media compositor" for improved accuracy and restructured some sentences for better readability. Removed outdated documentation files related to assets, CLI, composition, distribution, and getting started, streamlining the documentation for a more focused user experience.
1.6 KiB
dapi media filmstrip <id|path>
Renders a filmstrip of a video to a PNG, written to a file in the system temp directory: a grid of frames sampled at even intervals across the window, each row stamped with a timestamp ruler. Video only; use dapi media waveform to inspect the audio track. Renders locally; no credits. Alias: film.
Tick labels use HH:MM:SS:FF timecode (hours, minutes, seconds, frame within the second) at every zoom level, so labels stay comparable regardless of the window's span. Frames count against the video's frame rate.
Input
<id|path>: a video asset id, or a local video file to preview in place without adding it to the library (required).-s, --start <time>: start of the window to preview, aTimevalue in source/content time (optional; default0).-e, --end <time>: end of the window to preview, aTimevalue (optional; default the asset's duration).-x, --scale <factor>: scale factor for the thumbnails (optional; default1, clamped to0.25-4). The overall canvas size stays fixed, so smaller thumbnails fit more rows and columns (a denser grid sampling more moments) and larger thumbnails fit fewer but show more detail each.-o, --output <path>: write the PNG here instead of a temp file (optional).
Output
One JSON object, the absolute path to the written PNG:
{
path: string, // e.g. "/tmp/3f2c1a8e-....png", or the --output path
}
Errors
Exits non-zero if the id is unknown, the asset isn't a video, --start/--end fall outside the asset or cross (--start >= --end), --scale isn't a positive number, or --output can't be written.