What problem does it solve? Writing correct C code against the libffmpeg libraries (libavformat, libavcodec, libswscale) is error-prone, with strict requirements around initialization order, memory management, and error handling that frequently cause crashes and leaks. ## Core Features & Use Cases - Decode-Process-Encode Workflow: Provides complete C code patterns for opening input files, decoding frames, processing them, and re-encoding to H.264 output. - API Reference Patterns: Covers memory management rules, error handling with AVERROR codes, pixel format conversion with sws_scale, and seeking. - CLI Reference: Includes a reference guide for ffmpeg command-line filters, codecs, CRF quality settings, and common operations like thumbnails, GIFs, and picture-in-picture. - Use Case: When building a C application that needs to transcode video files frame-by-frame, use this Skill to get the correct sequence of avformat_open_input, decoder setup, frame loop, and encoder configuration without memory leaks. ## Quick Start Use the ffmpeg skill to write C code that decodes an MP4 file, scales each frame to 1280x720, and re-encodes it as H.264.