All posts
Agents Ashutosh Trivedi

How to turn a video into a link with Claude or ChatGPT

Turn a video into a link you can share or embed, from Claude or ChatGPT with VideoDB added. Then get a unique link for any timestamp, or for a moment you describe, such as where pricing is discussed.

Quick answer
To turn a video into a link, put it on a host that gives it a URL. With VideoDB added to Claude or ChatGPT, you paste a video link and ask, "host this video and give me a link." You get back a player page you can share, a stream link and an embed code. You can also ask for a unique link to any timestamp, or to a moment you describe, such as where pricing is discussed. A file on your computer goes up through the VideoDB console first, or straight from Claude Code.
TL;DR
  • The video is already online: paste the YouTube link or direct video URL in Claude or ChatGPT and ask for a link.
  • The video is a file on your computer: upload it at console.videodb.io, then ask your assistant for its link. In Claude Code, the agent uploads the file itself.
  • What you get: a player page to share, an HLS stream link, an iframe embed, and an MP4 when you ask for one.
  • A link for any timestamp: ask for 2:10 to 2:40 and get a unique link that plays only that part.
  • A link for a moment you describe: ask for “where a screen is visible” or “where we are discussing pricing” and the assistant finds it and gives you the link.
  • Cost: new accounts start with $20 of free credits and no credit card. After that you pay per GB.

A video file sits on one device. A link points to a copy on a server that other people can open. Turning a video into a link means uploading it to a host and getting its URL back.

One hosted video gives you several kinds of link. Which one you use depends on where the video is going.

You want toUseWhat you get
Send someone the videoPlayer pageA link that opens a player
Send one part of itLink for a time rangeA link that plays only that part
Send a moment you describeLink for a momentA link to where it happens
Put it on your websiteEmbed codeAn iframe for your page
Play it in your own app or playerStream link (HLS)A link ending in .m3u8
Hand over the fileMP4A download link

How do you set it up?

You add VideoDB to your assistant once. It takes about a minute.

In Claude: open VideoDB in Claude’s directory, click Connect to Claude, sign in to VideoDB and click Authorize. Every screen is shown in our guide to connecting VideoDB to Claude.

In ChatGPT: open VideoDB in ChatGPT, click Install plugin and sign in to VideoDB.

New accounts get $20 of free credits, and no credit card is needed.

Way 1: the video is already online

Use this when your video has a URL already: a YouTube link, or a direct link to the video file.

Host this video and give me a link:
[video link]

What you get: the video in your VideoDB library, with a player page you can send to anyone.

Ask for the other forms when you need them:

Give me the embed code and
the stream link for that video.

The link has to open the video itself without a sign-in. A share page that asks viewers to log in will not work.

Way 2: the video is a file on your computer

In a chat, your assistant sends VideoDB a link. A file on your computer has no link yet, so it goes up through VideoDB first.

  1. Sign in at console.videodb.io and upload the file.
  2. Back in Claude or ChatGPT, ask for it by name.
List my VideoDB videos, then give me
the player link and the embed code
for launch.mp4.

What you get: your library as a list, and the links for the video you named.

Way 3: ask Claude Code, with the file in your folder

Claude Code runs on your computer, so the agent can read the file and upload it. Install the VideoDB plugin inside Claude Code:

/plugin marketplace add video-db/skills
/plugin install videodb@videodb-skills
/videodb setup

Then ask:

Upload ./launch.mp4 to VideoDB.
Give me the player link, the stream
link and the embed code.

The same route works for an app you are building. The agent hosts the video and writes the embed into your page, as shown in add video to an app you built with Cursor.

Way 4: a few lines of Python

Install the SDK with pip install videodb, and set VIDEO_DB_API_KEY to your key from the console.

from videodb import connect

conn = connect()
coll = conn.get_collection()

# a file, or pass url="https://..."
video = coll.upload(file_path="launch.mp4")

print(video.generate_stream())  # stream link (HLS)
print(video.player_url)         # player page
print(video.get_embed_code())   # iframe embed

A link can play one part of a video. Give a start time and an end time, and you get a link that plays only that part.

Give me a link that plays [video name]
from 2:10 to 2:40.

What you get: a unique link for those 30 seconds, with its own player page. The full video keeps its own link.

Every time range gets its own link, so one recording can give you as many as you need: one for the demo at 2:10, another for the pricing answer at 14:05. VideoDB cuts the part from the stored video when you ask, so there is no second file to export or upload.

Two variations work the same way:

  • Start at a point: ask for “from 2:10 to the end.”
  • Several parts in one link: ask for “0:30 to 1:00, then 5:10 to 5:40.” The parts play back to back.

In Python, pass the range in seconds:

# a link that plays only 2:10 to 2:40
part = video.generate_stream(timeline=[(130, 160)])

With an assistant you can skip the timestamp. Describe the moment, and the assistant finds where it happens and gives you the link.

First make the video searchable. This runs once for each video.

Make [video name] searchable,
by what is said and what is on screen.

Then describe what you are looking for.

Give me a link to each moment in
[video name] where a screen is visible.
Find where we are discussing pricing
in [video name]. Give me one link
that plays those moments together.

What you get: the matching moments with their start and end times, and a unique link for each one. Ask for one link and the moments play back to back.

The description can be about what is shown, such as “where a screen is visible”, or about what is said, such as “where we are discussing pricing”.

Here is the kind of reply you get. This is an illustrative example, with the links shortened.

I found 3 moments where pricing is
discussed in sales-call.mp4:

1. 04:12 to 04:58
   https://player.videodb.io/watch?v=...
2. 11:30 to 12:15
   https://player.videodb.io/watch?v=...
3. 27:05 to 27:40
   https://player.videodb.io/watch?v=...

One link that plays all three:
https://player.videodb.io/watch?v=...

Each link comes with its timestamps, so you can check it against the video. More prompts for searching a video are in can Claude and ChatGPT watch videos.

5 things to ask after the video is hosted

Copy one of these and replace the parts in brackets.

1. See your whole library

List everything I have uploaded to
VideoDB, longest first, with the name,
the length and a link for each video.

What you get: your library as a list you can scan.

2. Make a smaller copy

Make a 720p copy of [video link].

What you get: a transcoding job, then a link to the 720p file when it finishes.

3. Get the file back

Give me [video name] as an MP4.

What you get: a download link for the file.

4. Grab a thumbnail

Grab a thumbnail from 0:12
of [video name].

What you get: an image of that frame, for a preview or a poster.

5. Keep a set together

Create a collection called Launch,
then upload these videos into it:
[video links]

What you get: one collection that keeps the videos together, with its own list.

Example: what the reply looks like

Here is the kind of reply you get to the first request. This is an illustrative example, with the links shortened.

Hosted. launch.mp4, 2 minutes 14 seconds.

Player page:
https://player.videodb.io/watch?v=...

Stream (HLS):
a link ending in .m3u8

Embed link:
https://player.videodb.io/embed?v=...

The embed link is the player link with /watch changed to /embed. Put it in an iframe and the player sits on your page:

<iframe
  src="https://player.videodb.io/embed?v=..."
  width="100%" height="405"
  allowfullscreen></iframe>

A free tool is the right pick for some jobs. Here is how the common options compare.

OptionGood forKeep in mind
YouTube, set to unlistedA free link that anyone can watch. The link can start at a time you pickThe video plays on YouTube, in YouTube’s player
Google Drive or Dropbox share linkPassing a file to a few peopleViewers open a file page on that service
VideoDB through Claude or ChatGPTA player page, an embed, a stream link and an MP4 from one request. A unique link for any time range, or for a moment you describeUsage pricing after the free credits

Pick VideoDB when the video is going into your own site or product, or when you need links to the moments inside it.

What does it cost?

New accounts start with $20 of free credits. After that the published rates apply:

  • Uploads: $0.09 per GB
  • Storage: $0.03 per GB a month
  • Streaming: $0.07 per GB
  • Transcoding to another size: $0.009 per minute at 720p and 1080p

At these rates, uploading a 100 MB video costs about 1 cent, and storing it costs about a third of a cent a month. The video hosting page has the full list.

Making a video searchable is billed on its own: transcription is $0.01 per minute, and scene processing is $0.003 per scene, plus tokens. The pricing page has every rate.

Troubleshooting

The assistant says it cannot read the file you attached. In a chat, your assistant sends VideoDB a link. Upload the file at console.videodb.io first, then ask for it by name.

The upload from a link fails. Open the link in a private browser window. If it asks you to sign in, VideoDB cannot reach it either. Use a direct link to the video file, or a YouTube link.

An authorization error appears. Disconnect VideoDB in your connector settings and connect it again. Allow pop-ups if the VideoDB page does not open.

FAQ

Yes, once they have a host to put the video on. Add VideoDB to Claude or ChatGPT, paste a video link and ask for a link. You get a player page to share, a stream link and an embed code.

Yes. Give a start time and an end time, such as 2:10 to 2:40, and you get a link that plays only that part. Every time range gets its own unique link, and the full video keeps its own.

Yes. Make the video searchable, then describe the moment, such as where a screen is visible or where pricing is discussed. The assistant finds the matching moments and gives you a unique link for each, or one link that plays them together.

Upload the file at console.videodb.io, then ask your assistant for its link. In Claude Code the agent can upload the file from your folder. In code, the Python SDK takes a file path and returns the links.

Your library is private to your account. A link you share plays for anyone who has it, so treat it like an unlisted link. Deleting a video removes it in full.

Can I embed the video on my website?

Yes. Every hosted video has a player link. Change /watch to /embed in that link and put it in an iframe, or ask the assistant to write the embed code for you. The stream is HLS, so it also plays in any player that reads HLS.

New VideoDB accounts start with $20 of free credits, and no credit card is needed. After that you pay for what you use: $0.09 per GB uploaded, $0.03 per GB stored a month and $0.07 per GB streamed.

Try it now

Add VideoDB to Claude or ChatGPT, paste a video link and ask for a link back.

Next, try: add video to an app you built with Cursor, or see everything your agent can do on the video hosting page.

All posts

https://videodb.io/blog/turn-video-into-link.mdOpen the file

## Use VideoDB in your agent

VideoDB lets an AI agent watch, search and clip video.

- **Claude**: [Add VideoDB from the plugin directory](https://videodb.io/claude)
- **ChatGPT**: [Add VideoDB from the plugin directory](https://chatgpt.com/plugins/videodb)
- **Claude Code**: `claude mcp add --transport http videodb https://mcp.videodb.io/mcp`
- **Cursor or any MCP client**: Add the remote MCP server and log in once: `https://mcp.videodb.io/mcp`

Free to start: $20 of credits, no credit card. [Steps for every client](https://docs.videodb.io/pages/mcp/connect).