video-engineer
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseVideo Engineer
视频工程师
Purpose
用途
Provides expertise in video processing, encoding, streaming, and infrastructure. Specializes in FFmpeg automation, adaptive streaming protocols, real-time communication, and building scalable video delivery systems.
提供视频处理、编码、流媒体传输及基础设施方面的专业知识,专注于FFmpeg自动化、自适应流媒体协议、实时通信以及构建可扩展的视频分发系统。
When to Use
适用场景
- Implementing video encoding and transcoding pipelines
- Setting up HLS or DASH streaming infrastructure
- Building WebRTC applications for real-time video
- Automating video processing with FFmpeg
- Optimizing video quality and compression
- Creating video thumbnails and previews
- Implementing video analytics and metadata extraction
- Building video player integrations
- 实现视频编码与转码流水线
- 搭建HLS或DASH流媒体基础设施
- 构建实时视频WebRTC应用
- 通过FFmpeg实现视频处理自动化
- 优化视频质量与压缩效率
- 生成视频缩略图与预览
- 实现视频分析与元数据提取
- 构建视频播放器集成方案
Quick Start
快速入门
Invoke this skill when:
- Implementing video encoding and transcoding pipelines
- Setting up HLS or DASH streaming infrastructure
- Building WebRTC applications for real-time video
- Automating video processing with FFmpeg
- Optimizing video quality and compression
Do NOT invoke when:
- Building general web applications → use fullstack-developer
- Creating animated GIFs → use slack-gif-creator
- Media file analysis only → use multimodal-analysis
- Image processing without video → use appropriate skill
在以下场景调用本技能:
- 实现视频编码与转码流水线
- 搭建HLS或DASH流媒体基础设施
- 构建实时视频WebRTC应用
- 通过FFmpeg实现视频处理自动化
- 优化视频质量与压缩效率
请勿在以下场景调用:
- 构建通用Web应用 → 使用fullstack-developer技能
- 创建动画GIF → 使用slack-gif-creator技能
- 仅进行媒体文件分析 → 使用multimodal-analysis技能
- 无视频的图像处理 → 使用对应技能
Decision Framework
决策框架
Video Engineering Task?
├── On-Demand Streaming → HLS/DASH with adaptive bitrate
├── Live Streaming → Low-latency HLS or WebRTC
├── Real-Time Communication → WebRTC with STUN/TURN
├── Batch Processing → FFmpeg pipeline automation
├── Quality Optimization → Codec selection + encoding params
└── Video Analytics → Metadata extraction + scene detectionVideo Engineering Task?
├── On-Demand Streaming → HLS/DASH with adaptive bitrate
├── Live Streaming → Low-latency HLS or WebRTC
├── Real-Time Communication → WebRTC with STUN/TURN
├── Batch Processing → FFmpeg pipeline automation
├── Quality Optimization → Codec selection + encoding params
└── Video Analytics → Metadata extraction + scene detectionCore Workflows
核心工作流程
1. Adaptive Streaming Setup
1. 自适应流媒体搭建
- Analyze source video specifications
- Define quality ladder (resolutions, bitrates)
- Configure encoder settings per quality level
- Generate HLS/DASH manifests
- Set up CDN for segment delivery
- Implement player with ABR support
- Monitor playback quality metrics
- 分析源视频规格参数
- 定义质量层级(分辨率、码率)
- 为各质量层级配置编码器设置
- 生成HLS/DASH清单文件
- 搭建用于分片分发的CDN
- 实现支持ABR的播放器
- 监控播放质量指标
2. FFmpeg Processing Pipeline
2. FFmpeg处理流水线
- Define input sources and formats
- Build filter graph for transformations
- Configure encoding parameters
- Handle audio/video synchronization
- Implement error handling and retries
- Parallelize for throughput
- Validate output quality
- 定义输入源与格式
- 构建用于转码的滤镜图
- 配置编码参数
- 处理音视频同步
- 实现错误处理与重试机制
- 并行处理以提升吞吐量
- 验证输出视频质量
3. WebRTC Implementation
3. WebRTC实现
- Set up signaling server
- Configure STUN/TURN servers
- Implement peer connection handling
- Manage media tracks and streams
- Handle network adaptation (simulcast, SVC)
- Implement recording if needed
- Monitor connection quality metrics
- 搭建信令服务器
- 配置STUN/TURN服务器
- 实现对等连接处理逻辑
- 管理媒体轨道与流
- 处理网络适配(simulcast、SVC)
- 按需实现录制功能
- 监控连接质量指标
Best Practices
最佳实践
- Use hardware encoding (NVENC, QSV) when available for speed
- Implement adaptive bitrate for variable network conditions
- Pre-generate all quality levels for on-demand content
- Use appropriate codecs for use case (H.264 compatibility, H.265/AV1 efficiency)
- Set keyframe intervals appropriate for seeking and ABR switching
- Monitor and alert on encoding queue depth and latency
- 尽可能使用硬件编码(NVENC、QSV)以提升速度
- 针对网络波动场景实现自适应码率
- 为点播内容预先生成所有质量层级的视频
- 根据使用场景选择合适的编解码器(H.264兼容性强,H.265/AV1效率更高)
- 设置适合seek操作与ABR切换的关键帧间隔
- 监控编码队列深度与延迟并设置告警
Anti-Patterns
反模式
- Single bitrate streaming → Always use adaptive bitrate
- Ignoring audio sync → Verify A/V alignment after processing
- Oversized segments → Keep HLS segments 2-10 seconds
- No error handling → FFmpeg can fail; implement retries
- Hardcoded paths → Parameterize for different environments
- 单码率流媒体 → 始终使用自适应码率
- 忽略音视频同步 → 处理后需验证音视频对齐情况
- 分片过大 → HLS分片时长保持在2-10秒
- 无错误处理 → FFmpeg可能执行失败,需实现重试机制
- 硬编码路径 → 参数化配置以适配不同环境