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.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 segments from audio 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.

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 segment from an audio file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cjm_capability_ffmpeg-0.0.25.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cjm_capability_ffmpeg-0.0.25-py3-none-any.whl (16.2 kB view details)

Uploaded Python 3

File details

Details for the file cjm_capability_ffmpeg-0.0.25.tar.gz.

File metadata

  • Download URL: cjm_capability_ffmpeg-0.0.25.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for cjm_capability_ffmpeg-0.0.25.tar.gz
Algorithm Hash digest
SHA256 6bbd14a42f2a03e8316e1594a36c9b2c48004602e959e676656d15f7fb2b6a83
MD5 8d9e564315a38fc8c5687c7973477013
BLAKE2b-256 c95cdb902a3e7e57281747464c345c93740d210b14c6d7860e67aca2d3e54580

See more details on using hashes here.

File details

Details for the file cjm_capability_ffmpeg-0.0.25-py3-none-any.whl.

File metadata

File hashes

Hashes for cjm_capability_ffmpeg-0.0.25-py3-none-any.whl
Algorithm Hash digest
SHA256 bc52366af76176cec20bfb6a27487582740bb80f1b26c577926026f985e21bf9
MD5 2f8e5d3befdc80d1f2e11e57dd02ef81
BLAKE2b-256 c3fdeead76581c42fc0ae4e43941972315f79825df5d9ba9ef60889855b75baf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.25 This release

2 files

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