Skip to main content

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.__init__
  • cjm_capability_ffmpeg.capability — FFmpeg-based media processing capability implementing the MediaProcessingCapability interface.
  • cjm_capability_ffmpeg.utils.__init__
  • 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, and
  • 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 —

API

cjm_capability_ffmpeg.capability

  • FFmpegCapabilityConfig class — Configuration for the FFmpeg processing tool (the HOW knobs only).
  • FFmpegProcessingCapability class — FFmpeg-based media-processing tool capability (stage 8: pure compute).

cjm_capability_ffmpeg.utils.codec

  • get_audio_codec function — Map an audio container format to the appropriate ffmpeg codec.
  • get_audio_extension function — Map a detected audio codec to the audio-only container that stream-copies it.

cjm_capability_ffmpeg.utils.probe

  • get_media_duration function — Get the duration of a media file (seconds) via ffprobe.

cjm_capability_ffmpeg.utils.progress

  • parse_progress_line function — Parse a progress line from ffmpeg stderr output.
  • run_ffmpeg_with_progress function — Run an ffmpeg command with a progress bar.

cjm_capability_ffmpeg.utils.segments

  • extract_audio_segment function — Extract a temporal audio segment from a media file.

Dependencies

Depends on: cjm-capability-primitives, cjm-substrate, tqdm

Metadata

Release files for cjm-capability-ffmpeg 0.0.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cjm-capability-ffmpeg 0.0.28
File Size Uploaded Provenance
cjm_capability_ffmpeg-0.0.28.tar.gz 19.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cjm-capability-ffmpeg 0.0.28
File Interpreter ABI Platform
cjm_capability_ffmpeg-0.0.28-py3-none-any.whl Python 3 none any Details

Total release size: 37.8 kB

Release files / cjm_capability_ffmpeg-0.0.28.tar.gz

Download URL cjm_capability_ffmpeg-0.0.28.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
1594a1ca43d38b60c1af6b911fd4c31373ac506c2625fc871d5651faf9dd314e
BLAKE2b-256 checksum
How to use checksums
c676745448e78deb181665f7f8e0fa433a4f1992c14fbf3177576d7dcbfa4204
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.28-py3-none-any.whl

Download URL cjm_capability_ffmpeg-0.0.28-py3-none-any.whl
Size 18.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a9ef6902af48b6ae8ce041f55d154139cd497d14c1958ca30f8fafc607e4e33
BLAKE2b-256 checksum
How to use checksums
60796ba4221af90d01e1bb4d8b88ac76ab9bf4df403e09e911997288d3a26e52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.12

Security for cjm-capability-ffmpeg 0.0.28

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page