{
"count": 5,
"items": [
{
"type": "frame",
"videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
"frameIndex": 0,
"timestampSec": 0.625,
"timecode": "00:00:00.625",
"imageUrl": "https://2-29-135-242.sslip.io/m/f/VxrfPUV2ZRQ9L0c3t/1-001.jpg",
"key": "1-001.jpg",
"width": 640,
"height": 360,
"sceneScore": null,
"mode": "count",
"durationSec": 10,
"fps": 30,
"videoWidth": 640,
"videoHeight": 360,
"extractedAt": "2026-11-12T03:21:59Z"
},
{
"type": "frame",
"videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
"frameIndex": 1,
"timestampSec": 1.875,
"timecode": "00:00:01.875",
"imageUrl": "https://2-29-135-242.sslip.io/m/f/VxrfPUV2ZRQ9L0c3t/1-002.jpg",
"key": "1-002.jpg",
"width": 640,
"height": 360,
"sceneScore": null,
"mode": "count",
"durationSec": 10,
"fps": 30,
"videoWidth": 640,
"videoHeight": 360,
"extractedAt": "2026-11-12T03:21:59Z"
},
{
"type": "frame",
"videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
"frameIndex": 2,
"timestampSec": 3.125,
"timecode": "00:00:03.125",
"imageUrl": "https://2-29-135-242.sslip.io/m/f/VxrfPUV2ZRQ9L0c3t/1-003.jpg",
"key": "1-003.jpg",
"width": 640,
"height": 360,
"sceneScore": null,
"mode": "count",
"durationSec": 10,
"fps": 30,
"videoWidth": 640,
"videoHeight": 360,
"extractedAt": "2026-11-12T03:21:59Z"
},
{
"type": "frame",
"videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
"frameIndex": 3,
"timestampSec": 4.375,
"timecode": "00:00:04.375",
"imageUrl": "https://2-29-135-242.sslip.io/m/f/VxrfPUV2ZRQ9L0c3t/1-004.jpg",
"key": "1-004.jpg",
"width": 640,
"height": 360,
"sceneScore": null,
"mode": "count",
"durationSec": 10,
"fps": 30,
"videoWidth": 640,
"videoHeight": 360,
"extractedAt": "2026-11-12T03:22:00Z"
},
{
"type": "frame",
"videoUrl": "https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4",
"frameIndex": 4,
"timestampSec": 5.625,
"timecode": "00:00:05.625",
"imageUrl": "https://2-29-135-242.sslip.io/m/f/VxrfPUV2ZRQ9L0c3t/1-005.jpg",
"key": "1-005.jpg",
"width": 640,
"height": 360,
"sceneScore": null,
"mode": "count",
"durationSec": 10,
"fps": 30,
"videoWidth": 640,
"videoHeight": 360,
"extractedAt": "2026-11-12T03:22:00Z"
}
]
}
curl --location --request GET 'https://zylalabs.com/api/14854/extract+frames+from+video+api/38670/video+frame+extractor?videoUrls=https://test-videos.co.uk/vids/bigbuckbunny/mp4/h264/360/Big_Buck_Bunny_360_10s_1MB.mp4&mode=count&frameCount=8&everySeconds=10&sceneThreshold=0.3&maxFramesPerVideo=30&format=jpg&width=1280&quality=85&contactSheet=true&maxVideoMinutes=30' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 从视频中提取帧 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
视频帧提取器:来自直接视频文件 URL(mp4 mov webm mkv m4v)的静态帧。场景变化检测,每 N 秒,N 个均匀间隔的帧或确切时间戳
每个请求最多返回100个结果,具体取决于端点
每个请求从公共来源收集实时数据 相同的请求可以从缓存中提供长达6小时
列表参数可以接受多个用逗号分隔的值,例如:伦敦,巴黎
终端接受这些查询参数,均为可选:videoUrls,mode,frameCount,everySeconds,timestamps,sceneThreshold,maxFramesPerVideo,format,width,quality,contactSheet,maxVideoMinutes。VideoUrls:视频文件(mp4,mov,webm,mkv,m4v)的直接链接或存储文件的URL。链接必须是公开的并且直接指向文件。不支持YouTube、TikTok、Instagram和Facebook页面链接,这些链接会被跳过。多个值:用逗号分隔。模式:场景=每个场景变化时的一帧(ffmpeg场景检测)。间隔=每N秒一帧。计数=N个均匀分布的帧。时间戳=你列出的确切时间。
视频帧提取器端点返回从视频文件中提取的静态帧,包括时间戳、帧索引和图像URL等详细信息。每个响应包括关于视频的元数据,例如其尺寸和帧率
响应中的关键字段包括 `videoUrl` `frameIndex` `timestampSec` `imageUrl` `width` `height` 和 `sceneScore` 这些字段提供了关于每个提取帧和源视频的基本信息
响应数据采用 JSON 格式结构,其中包含帧的 `count` 和一个 `items` 数组。每个项表示一个提取的帧及其相关元数据,便于解析和利用
该端点提供有关提取帧的信息,包括它们的时间戳、尺寸和场景检测分数 用户还可以根据特定参数如间隔或场景变化检索帧
用户可以通过使用参数如`videoUrls`、`mode`、`frameCount`和`everySeconds`来定制请求 例如,将`mode`设置为“场景”将提取每个场景变化时的帧,而`everySeconds`允许在指定的时间间隔提取帧
接受的参数值包括直接视频文件URL(mp4 mov webm mkv m4v) `frameCount` 和 `everySeconds` 的数字值以及特定时间戳 可以组合参数以进行定制提取
典型的用例包括为视频生成缩略图 分析场景变化以进行编辑 以及为社交媒体创建视觉内容 该API对需要进行帧提取以用于各种应用的开发者非常有用
用户可以通过访问 `imageUrl` 来显示帧,使用 `timestampSec` 进行同步,以及分析 `sceneScore` 来获取场景检测的洞察,从而利用返回的数据。这允许动态视频内容管理