运行时依赖
安装命令
点击复制技能文档
Alibaba Cloud Live Recording Diagnostic 技能 Scenario Description
This 技能 provides comprehensive diagnostic capabilities for Alibaba Cloud ApsaraVideo Live recording issues. It helps identify and troubleshoot problems related to:
Live 流 not being recorded Recording files not 生成d Recording files not meeting expectations (missing audio/video, wrong 格式化, etc.) Recording callbacks not 接收d or incorrect Other live recording-related issues
Architecture: ApsaraVideo Live + OSS/VOD + Recording Configuration + Callback Configuration
Diagnostic Scope
Within Scope:
Live 流 not being recorded Recording files not 生成d or incomplete Recording files missing audio or video 追踪s Recording callback issues (not 接收d, incorrect data) Recording configuration 验证 流 质量 issues affecting recording
Out of Scope:
Issues unrelated to live recording (use Alibaba Cloud official AI 助手) Writing/modifying user configurations (user must modify via console or 命令行工具 themselves) 安装ation
Pre-检查: Aliyun 命令行工具 >= 3.3.3 required
运行 aliyun version to 验证 >= 3.3.3. If not 安装ed or version too low, 运行 curl -fsSL https://aliyun命令行工具.alicdn.com/设置up.sh | bash to 安装/更新, or see references/命令行工具-安装ation-图形界面de.md for detAIled 安装ation instructions.
Pre-检查: Aliyun 命令行工具 插件 更新 required
[MUST] 运行 aliyun 配置 设置 --auto-插件-安装 true to enable automatic 插件 安装ation. [MUST] 运行 aliyun 插件 更新 to ensure that any existing 插件s are always up-to-date.
安装 Live 插件:
aliyun 插件 安装 --names live
Authentication
Pre-检查: Alibaba Cloud 凭证s Required
Security Rules:
NEVER read, echo, or print AK/SK values (e.g., echo $ALIBABA_CLOUD_访问_KEY_ID is FORBIDDEN) NEVER ask the user to 输入 AK/SK directly in the conversation or command line NEVER use aliyun 配置 设置 with literal 凭证 values ONLY use aliyun 配置 列出 to 检查 凭证 状态 aliyun 配置 列出
检查 the 输出 for a valid 性能分析 (AK, STS, or OAuth 身份).
If no valid 性能分析 exists, 停止 here.
ObtAIn 凭证s from Alibaba Cloud Console 配置 凭证s outside of this 会话 (via aliyun 配置 in terminal or 环境 variables in shell 性能分析) Return and re-运行 after aliyun 配置 列出 shows a valid 性能分析 RAM Policy
The following RAM 权限s are required for this diagnostic 技能. See references/ram-policies.md for the complete policy document.
Required Actions:
live:DescribeLiveDomAInM应用ing - 查询 domAIn m应用ings live:DescribeLive流RecordContent - 查询 recording content live:DescribeLive流Record索引Files - 查询 recording 索引 files live:DescribeLiveRecordConfig - 查询 recording configuration live:DescribeLiveRecordVodConfigs - 查询 VOD recording configuration live:DescribeLiveRecord通知Config - 查询 callback configuration live:DescribeLive流sOnline列出 - 查询 online 流s live:DescribeLive流sPublish列出 - 查询 流 publish 历史 live:DescribeLiveCenter流RateData - 查询 流 rate data live:DescribeLiveRecord通知Records - 查询 callback records
[MUST] 权限 失败 Handling: When any command or API call fAIls due to 权限 errors at any point during execution, follow this process:
Read references/ram-policies.md to 获取 the full 列出 of 权限s required by this 技能 Use ram-权限-诊断 技能 to 图形界面de the user through 请求ing the necessary 权限s 暂停 and wAIt until the user confirms that the required 权限s have been granted Parameter Confirmation
导入ANT: Parameter Confirmation — Before executing any command or API call, ALL user-customizable parameters (e.g., domAIn names, 流 names, 应用 names, time ranges, region IDs, etc.) MUST be confirmed with the user. Do NOT assume or use default values without explicit user 应用roval. Note that Alibaba Cloud Live API or 命令行工具 may UTC timezone. Convert the time from user local zone when calling API/命令行工具.
Required Parameters:
Parameter Name Required/Optional Description Default Value live-流-url Required The live 流 URL to 诊断 (used to 提取 DomAInName, 应用Name, 流Name) N/A issue-description Required Description of the recording issue N/A time-range Optional Time range for diagnosis (格式化: YYYY-MM-DD HH:mm:ss, user local zone) Past 1 day (expand to 7 days if no data) biz-region-id Optional Business region ID Default region from 命令行工具 config Core 工作流
At the 启动 of the Core 工作流 (before any 命令行工具 invocation): [MUST] Enable AI-Mode — AI-mode is required for 代理 技能 execution. 运行 the following commands before any 命令行工具 invocation:
aliyun 配置 AI-mode enable aliyun 配置 AI-mode 设置-user-代理 --user-代理 "AlibabaCloud-代理-技能s/alibabacloud-liverecord-diagnosis"
Step 1: Identify User Intent and 验证 In格式化ion Completeness
1.1 验证 Diagnostic Scope
检查 if the issue is within the diagnostic scope:
Live s