Media processing
Use FFprobe to inspect source media and FFmpeg for deterministic transformations.
Workflow
- Inspect streams, codecs, duration, frame rate, dimensions, color metadata, channels, and sample rate.
- Preserve the source and write transformed output to a distinct path.
- Select codecs and quality settings from the requested delivery target rather than using arbitrary defaults.
- Preserve aspect ratio and avoid unintended frame-rate or color-space conversion.
- Validate output with FFprobe, decode checks, file size, duration, and representative frame or waveform inspection.
- Report the command, input and output paths, key media properties, and validation result.
Safety
- Confirm before overwriting media or deleting intermediates.
- Quote paths and avoid shell interpolation of untrusted metadata.
- Bound preview extraction and do not decode an entire large asset when samples are sufficient.