Skip to main content
Videos are a core focus of Mem[v]. Upload video files to extract memories from spoken dialogue, visual content, on-screen text, and temporal context.

Why videos matter

Video is the superset of all multimedia:
  • Audio/Transcripts: Spoken language and dialogue
  • Visual Information: Scenes, objects, actions, people
  • Text: Captions, subtitles, on-screen text
  • Temporal Dynamics: How information unfolds over time

Upload videos

from memvai import Memv

client = Memv()

# Upload a video file
with open("meeting_recording.mp4", "rb") as video:
    response = client.upload.batch.create(
        space_id="space_abc123",
        files=[video]
    )

print(f"Batch ID: {response.batch_id}")

Monitor processing

import time

# Upload video
with open("lecture.mp4", "rb") as video:
    response = client.upload.batch.create(
        space_id="space_abc123",
        files=[video]
    )

batch_id = response.batch_id

# Poll for completion
while True:
    status = client.upload.batch.get_status(batch_id=batch_id)

    if status.status == "completed":
        print("Video processing complete!")
        break

    time.sleep(10)  # Check every 10 seconds

List videos

# List all videos
response = client.videos.list(space_id="space_abc123")

for video in response.videos:
    print(f"{video.name}")
    print(f"  Duration: {video.duration_seconds}s")
    print(f"  Size: {video.size_bytes / 1024 / 1024:.2f} MB")

Search video memories

# Search for content in videos
results = client.memories.search(
    space_id="space_abc123",
    query="What did they say about the product roadmap?"
)

for memory in results.memories:
    print(f"Content: {memory.content}")
    print(f"Timestamp: {memory.metadata.get('timestamp')}")

Delete videos

# Delete a video
response = client.videos.delete(
    video_id="video_xyz789",
    space_id="space_abc123"
)

if response.success:
    print("Video deleted successfully")
Deleting a video also removes all memories extracted from it.

Use cases

Extract action items, decisions, and key discussions from team meetings.
Extract knowledge from lectures and tutorials for searchable learning materials.
Analyze support interactions to identify common issues and solutions.
Build searchable knowledge bases from how-to videos.

Next steps

Memories

Search video memories

Knowledge graphs

Build graphs from video content