Overview of Basic DeFFcode Recipes
masterDeFFcode provides a variety of basic recipes designed for beginners to interact with video decoding, transcoding, and metadata extraction.
Key Concepts:
- Frames: In Python, frames are represented as three-dimensional NumPy
ndarrayobjects composed of 3 nested levels of arrays. - Prerequisites: Proficiency with OpenCV-Python is highly recommended as many recipes utilize OpenCV for capturing and previewing frames.
Available Basic Recipe Categories:
- Decoding Recipes: Includes decoding video files (RGB/BGR/FFmpeg formats), camera devices via indexes, network streams (HTTPs, RTSP/RTP), and image sequences.
- Transcoding Recipes: Includes transcoding live frames (using OpenCV
VideoWriterorWriteGearfor lossless video) and applying simple filtergraphs (trimming, reversing, cropping, rotating, flipping, and scaling). - Metadata Recipes: Includes extracting video metadata using the
SourcerAPI or theFFdecoderAPI. - Image Processing: Includes saving key-frames as PNG images or generating thumbnails using fancy filters.