{
  "schemaVersion": "1.0",
  "item": {
    "slug": "video-upload-aioz-stream",
    "name": "Upload video to AIOZ Stream",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/vinhbui3004/video-upload-aioz-stream",
    "canonicalUrl": "https://clawhub.ai/vinhbui3004/video-upload-aioz-stream",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/video-upload-aioz-stream",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=video-upload-aioz-stream",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "_meta.json",
      "README.md",
      "scripts/upload_video_file.sh",
      "scripts/create_video_custom.sh",
      "scripts/calculate_cost.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-07T17:22:31.273Z",
      "expiresAt": "2026-05-14T17:22:31.273Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=afrexai-annual-report",
        "contentDisposition": "attachment; filename=\"afrexai-annual-report-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/video-upload-aioz-stream"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/video-upload-aioz-stream",
    "agentPageUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent",
    "manifestUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "AIOZ Stream Video Upload",
        "body": "Upload videos to AIOZ Stream API quickly with API key authentication. The full upload flow requires 3 API calls: Create → Upload Part → Complete."
      },
      {
        "title": "When to use this skill",
        "body": "User wants to upload or create a video on AIOZ Stream\nUser mentions \"upload video\", \"create video\", \"aioz stream video\"\nUser wants to get an HLS/DASH streaming link for their video"
      },
      {
        "title": "Authentication",
        "body": "This skill uses API key authentication. The user must provide:\n\nstream-public-key: their AIOZ Stream public key\nstream-secret-key: their AIOZ Stream secret key\n\nAsk the user for these keys if not provided. They will be sent as HTTP headers on ALL API calls."
      },
      {
        "title": "Usage Options",
        "body": "When the user wants to upload video, ask them to choose:"
      },
      {
        "title": "Option 1: Default Upload (Quick)",
        "body": "Creates a video object with minimal config — just a title. Then uploads the file.\n\nExample user prompt:\n\n\"Upload video file /path/to/video.mp4 with title My Video\""
      },
      {
        "title": "Option 2: Custom Upload (Advanced)",
        "body": "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.\n\nExample user prompt:\n\n\"Upload video with custom config: title My Tutorial, qualities 720p and 1080p, h264 codec, tags tutorial,education\""
      },
      {
        "title": "Step 1: Create Video Object",
        "body": "Default:\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"VIDEO_TITLE\"\n  }'\n\nCustom (with encoding config):\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"VIDEO_TITLE\",\n    \"description\": \"DESCRIPTION\",\n    \"is_public\": true,\n    \"tags\": [\"tag1\", \"tag2\"],\n    \"metadata\": [\n      {\"key\": \"KEY\", \"value\": \"VALUE\"}\n    ],\n    \"qualities\": [\n      {\n        \"resolution\": \"1080p\",\n        \"type\": \"hls\",\n        \"container_type\": \"mpegts\",\n        \"video_config\": {\n          \"codec\": \"h264\",\n          \"bitrate\": 5000000,\n          \"index\": 0\n        },\n        \"audio_config\": {\n          \"codec\": \"aac\",\n          \"bitrate\": 192000,\n          \"channels\": \"2\",\n          \"sample_rate\": 48000,\n          \"language\": \"en\",\n          \"index\": 0\n        }\n      },\n      {\n        \"resolution\": \"720p\",\n        \"type\": \"hls\",\n        \"container_type\": \"mpegts\",\n        \"video_config\": {\n          \"codec\": \"h264\",\n          \"bitrate\": 3000000,\n          \"index\": 0\n        },\n        \"audio_config\": {\n          \"codec\": \"aac\",\n          \"bitrate\": 128000,\n          \"channels\": \"2\",\n          \"sample_rate\": 44100,\n          \"language\": \"en\",\n          \"index\": 0\n        }\n      }\n    ]\n  }'\n\nResponse: Extract data.id — this is the VIDEO_ID used in the next steps."
      },
      {
        "title": "Step 2: Upload File Part",
        "body": "Upload the actual video file binary to the created video object.\n\nFirst, get the file size and compute the MD5 hash:\n\n# Get file size (cross-platform compatible)\nFILE_SIZE=$(stat -f%z /path/to/video.mp4 2>/dev/null || stat -c%s /path/to/video.mp4)\nEND_POS=$((FILE_SIZE - 1))\n\n# Compute MD5 hash\nHASH=$(md5sum /path/to/video.mp4 | awk '{print $1}')\n\nThen upload via multipart form-data with the Content-Range header:\n\ncurl -s -X POST \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/part\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H \"Content-Range: bytes 0-$END_POS/$FILE_SIZE\" \\\n  -F \"file=@/path/to/video.mp4\" \\\n  -F \"index=0\" \\\n  -F \"hash=$HASH\"\n\nImportant: The Content-Range header is required for the upload to succeed. Format: bytes {start}-{end}/{total_size} where:\n\nFor single-part uploads: start=0, end=file_size-1, total_size=file_size\nFor multi-part uploads (files > 50MB): adjust start/end positions for each chunk (chunk size: 50MB - 200MB)\n\nForm-data fields:\n\nfile: the video file binary (use @/path/to/file)\nindex: 0 (for single-part upload, increment for multi-part)\nhash: MD5 hash of the file part"
      },
      {
        "title": "Step 3: Complete Upload",
        "body": "After the file part is uploaded, call the complete endpoint to finalize:\n\ncurl -s -X GET \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/complete\" \\\n  -H 'accept: application/json' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'\n\nThis triggers transcoding. The upload is now considered successful."
      },
      {
        "title": "After Upload — Get Video Link",
        "body": "After completing the upload, fetch the video detail to get the streaming URL:\n\ncurl -s 'https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'\n\nParse the response to find the HLS/DASH URLs from the assets or hls field and return it to the user."
      },
      {
        "title": "Supported Resolutions:",
        "body": "240p — 426 × 240 (max bitrate: 700,000 bps)\n360p — 640 × 360 (max bitrate: 1,200,000 bps)\n480p — 854 × 480 (max bitrate: 2,000,000 bps)\n720p — 1280 × 720 HD (max bitrate: 4,000,000 bps)\n1080p — 1920 × 1080 Full HD (max bitrate: 6,000,000 bps)\n1440p — 2560 × 1440 2K/QHD (max bitrate: 12,000,000 bps)\n2160p — 3840 × 2160 4K/UHD (max bitrate: 30,000,000 bps)\n4320p — 7680 × 4320 8K/UHD-2 (max bitrate: 60,000,000 bps)"
      },
      {
        "title": "Streaming Formats (type field):",
        "body": "hls — HTTP Live Streaming (container: mpegts or mp4)\ndash — Dynamic Adaptive Streaming (container: fmp4)"
      },
      {
        "title": "Container Types:",
        "body": "For HLS: mpegts or mp4\nFor DASH: fmp4\n\nApple HLS Compatibility:\n\nH.265/HEVC is only supported in HLS with mp4 container (fMP4/CMAF segments)\nH.265 with mpegts is NOT supported on Apple platforms\nH.264 works with both mpegts and mp4 containers"
      },
      {
        "title": "Video Config:",
        "body": "codec: h264 (max 4K) or h265 (max 8K)\nbitrate: integer in bits/sec (see resolution table for max values)\nindex: 0 (default video track)"
      },
      {
        "title": "Audio Config:",
        "body": "codec: aac (only supported codec)\nbitrate: 128000 - 256000 bps recommended\nchannels: \"2\" (stereo)\nsample_rate: 8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000\nlanguage: BCP 47 code (e.g., en, vi)\nindex: 0 (default audio track)"
      },
      {
        "title": "Recommended Audio Bitrates:",
        "body": "Standard: 128,000 – 192,000 bps\nHigh Quality: 192,000 – 256,000 bps"
      },
      {
        "title": "Recommended Sample Rates:",
        "body": "Voice: 22050 or 32000\nMusic/Video: 44100 or 48000"
      },
      {
        "title": "Video-Only Output",
        "body": "Specify only video_config without audio_config:\n\n{\n  \"resolution\": \"720p\",\n  \"type\": \"hls\",\n  \"container_type\": \"mpegts\",\n  \"video_config\": {\n    \"codec\": \"h264\",\n    \"bitrate\": 3000000,\n    \"index\": 0\n  }\n}"
      },
      {
        "title": "Audio-Only Output",
        "body": "Specify only audio_config without video_config:\n\n{\n  \"resolution\": \"audio\",\n  \"type\": \"hls\",\n  \"container_type\": \"mpegts\",\n  \"audio_config\": {\n    \"codec\": \"aac\",\n    \"bitrate\": 192000,\n    \"channels\": \"2\",\n    \"sample_rate\": 48000,\n    \"language\": \"en\",\n    \"index\": 0\n  }\n}"
      },
      {
        "title": "Response Handling",
        "body": "Parse the JSON response from the create call → extract data.id\nCompute MD5 hash of the video file\nUpload the file part with the hash\nCall complete endpoint\nFetch video detail to get streaming URL\nReturn the video link to the user\nIf the video is still transcoding (status: transcoding), inform the user and suggest checking back later"
      },
      {
        "title": "Error Handling",
        "body": "401: Invalid API keys — ask user to verify their public and secret keys\n400: Bad request — check the request body format, ensure resolutions don't exceed source resolution\n500: Server error — suggest retrying"
      },
      {
        "title": "Example Interaction Flow",
        "body": "User: \"Upload my video to AIOZ Stream\"\nAsk for API keys (public + secret) if not known\nAsk for the video file path\nAsk: \"Default upload (quick) or custom config?\"\n\nIf default: ask for title only\nIf custom: ask for title, qualities (e.g., 720p, 1080p), codec preference, tags, etc.\n\n\nStep 1: Create video object → get VIDEO_ID\nStep 2: Compute file hash, upload file part\nStep 3: Call complete endpoint\nFetch video detail → return streaming URL to user"
      },
      {
        "title": "Calculate Transcode Price",
        "body": "Before uploading, estimate the transcoding cost:\n\ncurl -s 'https://api-w3stream.attoaioz.cyou/api/videos/cost?duration=60&qualities=360p,1080p' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'"
      },
      {
        "title": "Upload Thumbnail",
        "body": "After creating a video, upload a custom thumbnail:\n\ncurl -s -X POST \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/thumbnail\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -F 'file=@/path/to/thumbnail.jpg'\n\nSupported formats: .png, .jpg"
      },
      {
        "title": "Update Video Object",
        "body": "Modify video metadata after creation:\n\ncurl -s -X PATCH \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"Updated Title\",\n    \"description\": \"Updated description\",\n    \"tags\": [\"new\", \"tags\"],\n    \"is_public\": true\n  }'"
      },
      {
        "title": "List All Videos",
        "body": "Retrieve all videos with filtering:\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"limit\": 10,\n    \"offset\": 0,\n    \"sort_by\": \"created_at\",\n    \"order_by\": \"desc\",\n    \"status\": \"done\"\n  }'"
      },
      {
        "title": "Delete Video",
        "body": "Remove a video:\n\ncurl -s -X DELETE \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'"
      }
    ],
    "body": "AIOZ Stream Video Upload\n\nUpload videos to AIOZ Stream API quickly with API key authentication. The full upload flow requires 3 API calls: Create → Upload Part → Complete.\n\nWhen to use this skill\nUser wants to upload or create a video on AIOZ Stream\nUser mentions \"upload video\", \"create video\", \"aioz stream video\"\nUser wants to get an HLS/DASH streaming link for their video\nAuthentication\n\nThis skill uses API key authentication. The user must provide:\n\nstream-public-key: their AIOZ Stream public key\nstream-secret-key: their AIOZ Stream secret key\n\nAsk the user for these keys if not provided. They will be sent as HTTP headers on ALL API calls.\n\nUsage Options\n\nWhen the user wants to upload video, ask them to choose:\n\nOption 1: Default Upload (Quick)\n\nCreates a video object with minimal config — just a title. Then uploads the file.\n\nExample user prompt:\n\n\"Upload video file /path/to/video.mp4 with title My Video\"\n\nOption 2: Custom Upload (Advanced)\n\nCreates 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.\n\nExample user prompt:\n\n\"Upload video with custom config: title My Tutorial, qualities 720p and 1080p, h264 codec, tags tutorial,education\"\n\nFull Upload Flow (3 Steps)\nStep 1: Create Video Object\n\nDefault:\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"VIDEO_TITLE\"\n  }'\n\n\nCustom (with encoding config):\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos/create' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"VIDEO_TITLE\",\n    \"description\": \"DESCRIPTION\",\n    \"is_public\": true,\n    \"tags\": [\"tag1\", \"tag2\"],\n    \"metadata\": [\n      {\"key\": \"KEY\", \"value\": \"VALUE\"}\n    ],\n    \"qualities\": [\n      {\n        \"resolution\": \"1080p\",\n        \"type\": \"hls\",\n        \"container_type\": \"mpegts\",\n        \"video_config\": {\n          \"codec\": \"h264\",\n          \"bitrate\": 5000000,\n          \"index\": 0\n        },\n        \"audio_config\": {\n          \"codec\": \"aac\",\n          \"bitrate\": 192000,\n          \"channels\": \"2\",\n          \"sample_rate\": 48000,\n          \"language\": \"en\",\n          \"index\": 0\n        }\n      },\n      {\n        \"resolution\": \"720p\",\n        \"type\": \"hls\",\n        \"container_type\": \"mpegts\",\n        \"video_config\": {\n          \"codec\": \"h264\",\n          \"bitrate\": 3000000,\n          \"index\": 0\n        },\n        \"audio_config\": {\n          \"codec\": \"aac\",\n          \"bitrate\": 128000,\n          \"channels\": \"2\",\n          \"sample_rate\": 44100,\n          \"language\": \"en\",\n          \"index\": 0\n        }\n      }\n    ]\n  }'\n\n\nResponse: Extract data.id — this is the VIDEO_ID used in the next steps.\n\nStep 2: Upload File Part\n\nUpload the actual video file binary to the created video object.\n\nFirst, get the file size and compute the MD5 hash:\n\n# Get file size (cross-platform compatible)\nFILE_SIZE=$(stat -f%z /path/to/video.mp4 2>/dev/null || stat -c%s /path/to/video.mp4)\nEND_POS=$((FILE_SIZE - 1))\n\n# Compute MD5 hash\nHASH=$(md5sum /path/to/video.mp4 | awk '{print $1}')\n\n\nThen upload via multipart form-data with the Content-Range header:\n\ncurl -s -X POST \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/part\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H \"Content-Range: bytes 0-$END_POS/$FILE_SIZE\" \\\n  -F \"file=@/path/to/video.mp4\" \\\n  -F \"index=0\" \\\n  -F \"hash=$HASH\"\n\n\nImportant: The Content-Range header is required for the upload to succeed. Format: bytes {start}-{end}/{total_size} where:\n\nFor single-part uploads: start=0, end=file_size-1, total_size=file_size\nFor multi-part uploads (files > 50MB): adjust start/end positions for each chunk (chunk size: 50MB - 200MB)\n\nForm-data fields:\n\nfile: the video file binary (use @/path/to/file)\nindex: 0 (for single-part upload, increment for multi-part)\nhash: MD5 hash of the file part\nStep 3: Complete Upload\n\nAfter the file part is uploaded, call the complete endpoint to finalize:\n\ncurl -s -X GET \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/complete\" \\\n  -H 'accept: application/json' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'\n\n\nThis triggers transcoding. The upload is now considered successful.\n\nAfter Upload — Get Video Link\n\nAfter completing the upload, fetch the video detail to get the streaming URL:\n\ncurl -s 'https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'\n\n\nParse the response to find the HLS/DASH URLs from the assets or hls field and return it to the user.\n\nCustom Upload Config Reference\nSupported Resolutions:\n240p — 426 × 240 (max bitrate: 700,000 bps)\n360p — 640 × 360 (max bitrate: 1,200,000 bps)\n480p — 854 × 480 (max bitrate: 2,000,000 bps)\n720p — 1280 × 720 HD (max bitrate: 4,000,000 bps)\n1080p — 1920 × 1080 Full HD (max bitrate: 6,000,000 bps)\n1440p — 2560 × 1440 2K/QHD (max bitrate: 12,000,000 bps)\n2160p — 3840 × 2160 4K/UHD (max bitrate: 30,000,000 bps)\n4320p — 7680 × 4320 8K/UHD-2 (max bitrate: 60,000,000 bps)\nStreaming Formats (type field):\nhls — HTTP Live Streaming (container: mpegts or mp4)\ndash — Dynamic Adaptive Streaming (container: fmp4)\nContainer Types:\nFor HLS: mpegts or mp4\nFor DASH: fmp4\n\nApple HLS Compatibility:\n\nH.265/HEVC is only supported in HLS with mp4 container (fMP4/CMAF segments)\nH.265 with mpegts is NOT supported on Apple platforms\nH.264 works with both mpegts and mp4 containers\nVideo Config:\ncodec: h264 (max 4K) or h265 (max 8K)\nbitrate: integer in bits/sec (see resolution table for max values)\nindex: 0 (default video track)\nAudio Config:\ncodec: aac (only supported codec)\nbitrate: 128000 - 256000 bps recommended\nchannels: \"2\" (stereo)\nsample_rate: 8000, 11025, 16000, 22050, 32000, 44100, 48000, 88200, 96000\nlanguage: BCP 47 code (e.g., en, vi)\nindex: 0 (default audio track)\nRecommended Audio Bitrates:\nStandard: 128,000 – 192,000 bps\nHigh Quality: 192,000 – 256,000 bps\nRecommended Sample Rates:\nVoice: 22050 or 32000\nMusic/Video: 44100 or 48000\nAdvanced Configurations\nVideo-Only Output\n\nSpecify only video_config without audio_config:\n\n{\n  \"resolution\": \"720p\",\n  \"type\": \"hls\",\n  \"container_type\": \"mpegts\",\n  \"video_config\": {\n    \"codec\": \"h264\",\n    \"bitrate\": 3000000,\n    \"index\": 0\n  }\n}\n\nAudio-Only Output\n\nSpecify only audio_config without video_config:\n\n{\n  \"resolution\": \"audio\",\n  \"type\": \"hls\",\n  \"container_type\": \"mpegts\",\n  \"audio_config\": {\n    \"codec\": \"aac\",\n    \"bitrate\": 192000,\n    \"channels\": \"2\",\n    \"sample_rate\": 48000,\n    \"language\": \"en\",\n    \"index\": 0\n  }\n}\n\nResponse Handling\nParse the JSON response from the create call → extract data.id\nCompute MD5 hash of the video file\nUpload the file part with the hash\nCall complete endpoint\nFetch video detail to get streaming URL\nReturn the video link to the user\nIf the video is still transcoding (status: transcoding), inform the user and suggest checking back later\nError Handling\n401: Invalid API keys — ask user to verify their public and secret keys\n400: Bad request — check the request body format, ensure resolutions don't exceed source resolution\n500: Server error — suggest retrying\nExample Interaction Flow\nUser: \"Upload my video to AIOZ Stream\"\nAsk for API keys (public + secret) if not known\nAsk for the video file path\nAsk: \"Default upload (quick) or custom config?\"\nIf default: ask for title only\nIf custom: ask for title, qualities (e.g., 720p, 1080p), codec preference, tags, etc.\nStep 1: Create video object → get VIDEO_ID\nStep 2: Compute file hash, upload file part\nStep 3: Call complete endpoint\nFetch video detail → return streaming URL to user\nAdditional Features\nCalculate Transcode Price\n\nBefore uploading, estimate the transcoding cost:\n\ncurl -s 'https://api-w3stream.attoaioz.cyou/api/videos/cost?duration=60&qualities=360p,1080p' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'\n\nUpload Thumbnail\n\nAfter creating a video, upload a custom thumbnail:\n\ncurl -s -X POST \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID/thumbnail\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -F 'file=@/path/to/thumbnail.jpg'\n\n\nSupported formats: .png, .jpg\n\nUpdate Video Object\n\nModify video metadata after creation:\n\ncurl -s -X PATCH \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"title\": \"Updated Title\",\n    \"description\": \"Updated description\",\n    \"tags\": [\"new\", \"tags\"],\n    \"is_public\": true\n  }'\n\nList All Videos\n\nRetrieve all videos with filtering:\n\ncurl -s -X POST 'https://api-w3stream.attoaioz.cyou/api/videos' \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY' \\\n  -H 'Content-Type: application/json' \\\n  -d '{\n    \"limit\": 10,\n    \"offset\": 0,\n    \"sort_by\": \"created_at\",\n    \"order_by\": \"desc\",\n    \"status\": \"done\"\n  }'\n\nDelete Video\n\nRemove a video:\n\ncurl -s -X DELETE \"https://api-w3stream.attoaioz.cyou/api/videos/VIDEO_ID\" \\\n  -H 'stream-public-key: PUBLIC_KEY' \\\n  -H 'stream-secret-key: SECRET_KEY'"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/vinhbui3004/video-upload-aioz-stream",
    "publisherUrl": "https://clawhub.ai/vinhbui3004/video-upload-aioz-stream",
    "owner": "vinhbui3004",
    "version": "1.0.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream",
    "downloadUrl": "https://openagent3.xyz/downloads/video-upload-aioz-stream",
    "agentUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent",
    "manifestUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/video-upload-aioz-stream/agent.md"
  }
}