Weave automatically logs videos usingDocumentation Index
Fetch the complete documentation index at: https://wb-21fd5541-john-wbdocs-2044-rename-serverless-products.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
moviepy. This allows you to pass video inputs and outputs to traced functions, and Weave will automatically handle uploading and storing video data.
Video support is currently only available in Python.
Usage prerequisites
- Install
weaveandmoviepy==1.0.3. - Create a W&B account.
Supported video types
Weave recognizesmoviepy video clip objects, such as:
- A
VideoFileCliploaded from a video file - In-memory clips like
ImageClip,ColorClip, andTextClip
Direct upload of file-based clips
If your clip is aVideoFileClip and has a valid filename with a supported extension, Weave will upload the file directly.
Supported file extensions:
.mp4.webm.gif
In-memory clip support
If the video object is in memory (no file on disk), Weave will encode it as an.mp4 file and handle the upload automatically. This applies to clips of the following type:
ImageClipColorClipTextClip
Example: Trace a video function
The following code sample demonstrates how to trace a video processing function in Weave. The code sample:- Initializes a Weave project
video-test. - Defines a
get_videofunction tracked as aweave.opthat extracts a 1 second subclip of the loadedVideoFileClipas aVideoClip. - Uploads and tracks the clip in Weave.
- Automatically generates a dummy MP4 video if none is found.

