Quick upload video to AIOZ Stream API. Create video objects with default or custom encoding configurations, upload the file, complete the upload, then return the video link to the user.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install video-upload-aioz-stream或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install video-upload-aioz-stream⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/video-upload-aioz-stream/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: aioz-stream-video-upload description: Quick upload video to AIOZ Stream API. Create video objects with default or custom encoding configurations, upload the file, complete the upload, then return the video link to the user. metadata: openclaw: emoji: "🎬" requires: bins: - curl - jq - md5sum ---
Upload videos to AIOZ Stream API quickly with API key authentication. The full upload flow requires 3 API calls: Create → Upload Part → Complete.
This skill uses API key authentication. The user must provide:
stream-public-key: their AIOZ Stream public keystream-secret-key: their AIOZ Stream secret keyAsk the user for these keys if not provided. They will be sent as HTTP headers on ALL API calls.
When the user wants to upload video, ask them to choose:
Creates a video object with minimal config — just a title. Then uploads the file.
Example user prompt: > "Upload video file /path/to/video.mp4 with title My Video"
Creates a video object with full encoding configuration including quality presets (240p, 360p, 480p, 720p, 1080p, 1440p, 2160p, 4320p), codecs (h264, h265), bitrates, container types, tags, metadata, etc. Then uploads the file.
Example user prompt: > "Upload video with custom config: title My Tutorial, qualities 720p and 1080p, h264 codec, tags tutorial,education"
Default:
curl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \
-H 'stream-public-key: PUBLIC_KEY' \
-H 'stream-secret-key: SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"title": "VIDEO_TITLE"
}'
Custom (with encoding config):
curl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \
-H 'stream-public-key: PUBLIC_KEY' \
-H 'stream-secret-key: SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"title": "VIDEO_TITLE",
"description": "DESCRIPTION",
"is_public": true,
"tags": ["tag1", "tag2"],
"metadata": [
{"key": "KEY", "value": "VALUE"}
],
"qualities": [
{
"resolution": "1080p",
"type": "hls",
"container_type": "mpegts",
"video_config": {
"codec": "h264",
"bitrate": 5000000,
"index": 0
},
"audio_config": {
"codec": "aac",
"bitrate": 192000,
"channels": "2",
"sample_rate": 48000,
"language": "en",
"index": 0
}
},
{
"resolution": "720p",
"type": "hls",
"container_type": "mpegts",
"video_config": {
"codec": "h264",
"bitrate": 3000000,
"index": 0
},
"audio_config": {
"codec": "aac",
"bitrate": 128000,
"channels": "2",
"sample_rate": 44100,
"language": "en",
"index": 0
}
}
]
}'
Response: Extract data.id — this is the VIDEO_ID used in the next steps.
Upload the actual video file binary to the created video object.
First, get the file size and compute the MD5 hash:
# Get file size (cross-platform compatible)
FILE_SIZE=$(stat -f%z /path/to/video.mp4 2>/dev/null || stat -c%s /path/to/video.mp4)
END_POS=$((FILE_SIZE - 1))
# Compute MD5 hash
HASH=$(md5sum /path/to/video.mp4 | awk '{print $1}')
Then upload via multipart form-data with the Content-Range header:
curl -s -X POST "https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/part" \
-H 'stream-public-key: PUBLIC_KEY' \
-H 'stream-secret-key: SECRET_KEY' \
-H "Content-Range: bytes 0-$END_POS/$FILE_SIZE" \
-F "file=@/path/to/video.mp4" \
-F "index=0" \
-F "hash=$HASH"
Important: The Content-Range header is required for the upload to succeed. Format: bytes {start}-{end}/{total_size} where:
start=0, end=file_size-1, total_size=file_sizeForm-data fields:
file: the video file binary (use @/path/to/file)index: 0 (for single-part upload, increment for multi-part)hash: MD5 hash of the file partAfter the file part is uploaded, call the complete endpoint to finalize:
curl -s -X GET "https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/complete" \
-H 'accept: application/json' \
-H 'stream-public-key: PUBLIC_KEY' \
-H 'stream-secret-key: SECRET_KEY'
This triggers transcoding. The upload is now considered successful.
After completing the upload, fetch the video detail to get the streaming URL:
curl -s 'https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID' \
-H 'stream-public-key: PUBLIC_KEY' \
-H 'stream-secret-key: SECRET_KEY'
Parse the response to find the HLS/DASH URLs from the assets or hls field and return it to the user.
240p — 426 × 240 (max bitrate: 700,000 bps)360p — 640 × 360 (max bitrate: 1,200,000 bps)480p — 854 × 480 (max bitrate: 2,000,000 bps)720p — 1280 × 720 HD (max bitrate: 4,000,000 bps)1080p — 1920 × 1080 Full HD (max bitrate: 6,000,000 bps)1440p — 2560 × 1440 2K/QHD (max bitrate: 12,000,000 bps)2160p — 3840 × 2160 4K/UHD (max bitrate: 30,000,000 bps)4320p — 7680 × 4320 8K/UHD-2 (max bitrate: 60,000,000 bps)type field):hls — HTTP Live Streaming (container: mpegts or mp4)dash — Dynamic Adaptive Streaming (container: fmp4)mpegts or mp4fmp4Apple HLS Compatibility:
mp4 container (fMP4/CMAF segments)mpegts is NOT supported on Apple platformsmpegts and mp4 containerscodec: h264 (max 4K) or h265 (max 8K)bitrate: integer in bits/sec (see resolution table for max values)index: 0 (default video track)codec: aac (only supported codec)bitrate: 128000 - 256000 bps recommendedchannels: "2" (stereo)sample_rate: 8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000language: BCP 47 code (e.g., en, vi)index: 0 (default audio track)Specify only video_config without audio_config:
{
"resolution": "720p",
"type": "hls",
"container_type": "mpegts",
"video_config": {
"codec": "h264",
"bitrate": 3000000,
"index": 0
}
}
Specify only audio_config without video_config:
{
"resolution": "audio",
"type": "hls",
"container_type": "mpegts",
"audio_config": {
"codec": "aac",
"bitrate": 192000,
"channels": "2",
"sample_rate": 48000,
"language": "en",
"index": 0
}
}
data.id...
安装 Upload video to AIOZ Stream 后,可以对 AI 说这些话来触发它
Help me get started with Upload video to AIOZ Stream
Explains what Upload video to AIOZ Stream does, walks through the setup, and runs a quick demo based on your current project
Use Upload video to AIOZ Stream to quick upload video to AIOZ Stream API
Invokes Upload video to AIOZ Stream with the right parameters and returns the result directly in the conversation
What can I do with Upload video to AIOZ Stream in my marketing & growth workflow?
Lists the top use cases for Upload video to AIOZ Stream, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/video-upload-aioz-stream/ 目录(个人级,所有项目可用),或 .claude/skills/video-upload-aioz-stream/(项目级)。重启 AI 客户端后,用 /video-upload-aioz-stream 主动调用,或让 AI 根据上下文自动发现并使用。
Upload video to AIOZ Stream 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Upload video to AIOZ Stream 可免费安装使用。请查阅仓库了解许可证信息。
Quick upload video to AIOZ Stream API. Create video objects with default or custom encoding configurations, upload the file, complete the upload, then return the video link to the user.
Automate my marketing & growth tasks using Upload video to AIOZ Stream
Identifies repetitive steps in your workflow and sets up Upload video to AIOZ Stream to handle them automatically
Upload video to AIOZ Stream 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。