VideoToolboxH265Encoder
VideoToolbox H.265/HEVC Encoder Sample Code in Swift
Install / Use
/learn @zf3/VideoToolboxH265EncoderREADME
VideoToolbox HEVC Encoder Sample Code
Sample code that capture and encode video into HEVC (or H.264) with AVFoundation and VideoToolbox. The code is in Swift 4 and tested on XCode 9.2 / iOS 11.2.1 / iPhone X.
Based on tomisacat's VideoToolboxCompression project.
Brief instructions:
- Build and run on iPhone 7/7 Plus or up. Touch Click Me to begin recording. Touch again to finish.
- Download the result to Mac: XCode -> Window -> Devices and Simulators -> Select app and click the "gear" icon below -> Download Container.
- Among the container files,
tmp/temp.h265is the raw HEVC data file. - Add a container around the file:
mp4box -add temp.h265 temp.h265.mp4 - Use QuickTime or VLC to play the mp4 file.
- For comparison, you could change
H265tofalseinViewController.swiftto do H.264 instead of HEVC encoding.
Related Skills
qqbot-channel
347.6kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.2k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
347.6kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
cursor-agent-tracking
134A repository that provides a structured system for maintaining context and tracking changes in Cursor's AGENT mode conversations through template files, enabling better continuity and organization of AI interactions.
