cjm-capability-ffmpeg
An FFmpeg-based media-processing capability for the cjm-substrate runtime that provides audio extraction, segmentation, and format conversion.
Modules
cjm_capability_ffmpeg.capability— FFmpeg-based media processing capability implementing the MediaProcessingCapability interface.cjm_capability_ffmpeg.utils.availability— Detect whether the ffmpeg binary is installed on this system.cjm_capability_ffmpeg.utils.codec— Map audio container formats to the ffmpeg codec used to encode them.cjm_capability_ffmpeg.utils.probe— Probe media files for metadata (duration, ...) via ffprobe.cjm_capability_ffmpeg.utils.progress— Run ffmpeg subprocess commands with a progress bar and optional callback.cjm_capability_ffmpeg.utils.segments— Extract temporal AUDIO segments from media files via ffmpeg stream-copy — audio-only by contract (-vn): a video input yields an audio segment, never a re-encoded video clip.
API
cjm_capability_ffmpeg.capability
FFmpegCapabilityConfigclass — Configuration for the FFmpeg processing tool (the HOW knobs only).FFmpegProcessingCapabilityclass — FFmpeg-based media-processing tool capability (stage 8: pure compute).
cjm_capability_ffmpeg.utils.codec
get_audio_codecfunction — Map an audio container format to the appropriate ffmpeg codec.
cjm_capability_ffmpeg.utils.probe
get_media_durationfunction — Get the duration of a media file (seconds) via ffprobe.
cjm_capability_ffmpeg.utils.progress
parse_progress_linefunction — Parse a progress line from ffmpeg stderr output.run_ffmpeg_with_progressfunction — Run an ffmpeg command with a progress bar.
cjm_capability_ffmpeg.utils.segments
extract_audio_segmentfunction — Extract a temporal segment from an audio file.
Release files for cjm-capability-ffmpeg 0.0.27
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cjm_capability_ffmpeg-0.0.27.tar.gz | 19.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cjm_capability_ffmpeg-0.0.27-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.8 kB
Release files / cjm_capability_ffmpeg-0.0.27.tar.gz
| Download URL | cjm_capability_ffmpeg-0.0.27.tar.gz |
|---|---|
| Size | 19.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6bd9c7ba82e0c972544d041558028216c771579219788fd933269ba0d89e418a
|
|
BLAKE2b-256 checksum How to use checksums |
8cdec7c2ed82c234ff888e94e677ce174672a3bdac0a9104d1d19da41ade8542
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / cjm_capability_ffmpeg-0.0.27-py3-none-any.whl
| Download URL | cjm_capability_ffmpeg-0.0.27-py3-none-any.whl |
|---|---|
| Size | 18.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
00a0a48591b9dbce354e5dcc509e011b8b334ccab4d7c914ef73736c9def36bb
|
|
BLAKE2b-256 checksum How to use checksums |
7b099c9e6f164aa68df7b43cfac1241cfa533694c2e5677134b95f3f1c92439e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|