WebCodecs String Finder
This skill helps you find the most supported and appropriate codec strings for WebCodecs, whether for video or audio.
Workflow
1. Requirements Gathering
Understand the user's requirements:
- - Type: Video or Audio?
- Platform: Chrome, Edge, Android, iOS, etc.?
- Resolution: 1080p, 4k, etc. (for video)?
- Codec Name: h264 (avc1), h265 (hev1/hvc1), vp9, av1, opus, aac, etc.?
2. Search for Supported Codecs
Use
web_fetch to access the codec support table:
- - URL: INLINECODE1
- Identify the most supported codecs based on the requirement (platform and codec type).
3. Confirm Codec Details
For the top candidates found in the previous step, confirm their details:
- - Use
web_fetch to visit the detail page: INLINECODE3 - Replace
<CODEC-STRING> with the identified candidate (e.g., avc1.42e01e). - Verify that it meets the specific requirements (e.g., profile, level, platform support).
4. Recommendation
Return the 2-3 most fitted codec strings.
- - Provide a brief explanation of why each was chosen.
- Include the browser/platform support if relevant.
Tips
- - Common video codec strings:
avc1.42e01e (H.264 Baseline), avc1.4d401f (H.264 Main), hev1.1.6.l93.b0 (H.265), vp09.00.10.08 (VP9). - Common audio codec strings:
opus, mp4a.40.2 (AAC-LC). - When in doubt, prefer widely supported codecs like H.264 and Opus for maximum compatibility.
WebCodecs 字符串查找器
此技能可帮助您找到 WebCodecs 最受支持且最合适的编解码器字符串,无论是视频还是音频。
工作流程
1. 需求收集
了解用户的需求:
- - 类型:视频还是音频?
- 平台:Chrome、Edge、Android、iOS 等?
- 分辨率:1080p、4k 等(针对视频)?
- 编解码器名称:h264 (avc1)、h265 (hev1/hvc1)、vp9、av1、opus、aac 等?
2. 搜索支持的编解码器
使用 web_fetch 访问编解码器支持表:
- - URL:https://webcodecsfundamentals.org/datasets/codec-support-table/
- 根据需求(平台和编解码器类型)确定最受支持的编解码器。
3. 确认编解码器详细信息
对于上一步找到的候选编解码器,确认其详细信息:
- - 使用 web_fetch 访问详情页面:https://webcodecsfundamentals.org/codecs/.html
- 将 替换为已确定的候选字符串(例如 avc1.42e01e)。
- 验证其是否满足特定要求(例如配置文件、级别、平台支持)。
4. 推荐
返回 2-3 个最合适的编解码器字符串。
- - 简要说明每个编解码器被选中的原因。
- 如有必要,包含浏览器/平台支持信息。
提示
- - 常见视频编解码器字符串:avc1.42e01e(H.264 Baseline)、avc1.4d401f(H.264 Main)、hev1.1.6.l93.b0(H.265)、vp09.00.10.08(VP9)。
- 常见音频编解码器字符串:opus、mp4a.40.2(AAC-LC)。
- 如有疑问,优先选择广泛支持的编解码器,如 H.264 和 Opus,以获得最大兼容性。