Skip to main content

ClipsAI-JP

PyPI version License: MIT

注意: このパッケージはClipsAIの日本語専用フォーク版です。whisperxをfaster-whisperに置き換え、依存関係の問題を解決しています。

クイックスタート

Clips AIは、長い動画を自動的にクリップに変換するオープンソースのPythonライブラリです。数行のコードで、動画を複数のクリップに分割し、アスペクト比を16:9から9:16にリサイズできます。

注意: Clips AIは、ポッドキャスト、インタビュー、スピーチ、説教などの音声中心のナラティブ動画向けに設計されています。

完全なドキュメントについては、Clips AI Documentationをご覧ください。

インストール

前提条件:

  • Python >= 3.10
  • libmagic(Windows: pip install python-magic-bin、Mac: brew install libmagic)
  • ffmpeg(Windows: ffmpeg.orgからダウンロード、Mac: brew install ffmpeg)

推奨: 依存関係の競合を避けるため、仮想環境(venvなど)の使用を強く推奨します。

pip install clipsai-jp

オプショナル依存関係:

  • MeCab(日本語の文分割精度向上のため推奨): pip install clipsai-jp[mecab]
    • MeCabがインストールされていない場合、自動的にNLTKにフォールバックします
    • MeCab本体も含まれており、Windows、Mac、Linuxすべてでpip installのみで使用可能
    • 公式サイト: https://pypi.org/project/mecab/
  • GPUメモリ監視: pip install clipsai-jp[gpu]
  • 開発・テスト用: pip install clipsai-jp[dev]

LLM によるクリップ検出(任意)

デフォルトはローカルの TextTiling のみです。OpenAI / Anthropic / Gemini / OpenAI互換 API(Ollama、Groq など)を併用すると、意味の切れ目での分割精度が上がります。キーはコードに書かず、環境変数で渡してください。ライブラリ本体は .env を読み込みません。

プロバイダ 環境変数 デフォルトモデル
OpenAI OPENAI_API_KEY gpt-5.6-terra
Anthropic ANTHROPIC_API_KEY claude-sonnet-5
Gemini GEMINI_API_KEY gemini-3.8-flash
OpenAI互換 LLM_API_KEY(ローカルなら不要) llm_model 必須
from clipsai_jp import ClipFinder

clipfinder = ClipFinder(
    use_llm=True,
    llm_provider="openai",  # openai / anthropic / gemini / openai_compatible
    llm_model="gpt-5.6-terra",
    llm_priority=0.7,
)

キーの優先順位は 引数 llm_api_key → プロバイダ専用の環境変数 → LLM_API_KEY です。キーが無い、または API 呼び出しに失敗した場合は警告を出して TextTiling のみで動作します。詳細は docs/sample-code.md を参照してください。

ドキュメント

使用方法、サンプルコード、パラメータ設定などの詳細については、docs/sample-code.mdを参照してください。

Metadata

Release files for clipsai-jp 1.1.0

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

Source distribution (sdist)

Source distribution for clipsai-jp 1.1.0
File Size Uploaded Provenance Actions
clipsai_jp-1.1.0.tar.gz 109.0 kB With provenance Details for clipsai_jp-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for clipsai-jp 1.1.0
File Interpreter ABI Platform Actions
clipsai_jp-1.1.0-py3-none-any.whl Python 3 none any Details for clipsai_jp-1.1.0-py3-none-any.whl

Total release size: 216.0 kB

Release files / clipsai_jp-1.1.0.tar.gz

Download URL clipsai_jp-1.1.0.tar.gz
Size 109.0 kB
Tags Source
SHA-256 checksum
How to use checksums
13a490a2e2c7591328b323690a77ea2d414961dbed655d86777ac7355b8fea02
BLAKE2b-256 checksum
How to use checksums
b28a4839d698a094ab54b3aa2f73e6eafe2977e4f7b80e36df4f607b9339620b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Release files / clipsai_jp-1.1.0-py3-none-any.whl

Download URL clipsai_jp-1.1.0-py3-none-any.whl
Size 107.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82b35b60bd5477a8ed9f99c0834ccd027de93c27b9f178bf88c91c42fcd33385
BLAKE2b-256 checksum
How to use checksums
9f9014fb0cd002255d697ff87f4f5093135ce2a1eee0f4e045143c346c963c85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

Security for clipsai-jp 1.1.0

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for clipsai_jp-1.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 6, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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