Communitygithub.com

openclip-convert

エージェントからメディアを変換・圧縮 – 動画はMP4、WebM、MOV、MKV、GIFに、音声はMP3、AAC、WAV、FLACに変換。無料で利用可能(OpenClipアカウントのみ必要、サブスクリプション不要)。

openclip-convert とは?

このスキルは、Claude Code、Cursor、CodexなどのAIエージェント上で動作し、メディアファイルのコンテナ形式やコーデックを変換するためのツールです。動画をMP4、WebM、MOV、MKV、GIFに変換したり、動画から音声を抽出してMP3、AAC、WAV、FLACとして保存できます。完全無料で、OpenClipアカウントがあればサブスクリプションやクレジットは不要です。リモートMCPサーバーとして動作するため、対応クライアントに接続設定をするだけで利用開始でき、認証はOAuthまたはMCPトークンで行います。変換ジョブは非同期で実行されるため、定期的なポーリングで完了を待つ必要があります。出力ファイルは恒久的なCDNリンクとして提供されます。

対応✓Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/OpenClip-App/agent-skills/tree/main/skills/openclip-convert

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

OpenClip: メディア変換

convert_media はファイルのコンテナ形式やコーデックを変更します。動画からGIFへの変換や、動画から音声のみの抽出も可能です。無料で利用でき、OpenClipアカウントは必要ですが、サブスクリプションやクレジットは不要です。

セットアップ(初回のみ)

OpenClip は https://openclip.app/mcp にあるリモートMCPサーバーです。OAuth プロンプトが表示されたら OpenClip アカウントでサインインしてください。APIキーをコピーする必要はありません。

  • Claude Code: claude mcp add --transport http openclip https://openclip.app/mcp を実行し、/mcp で認証します。
  • Claude Desktop / web: 設定 → Connectors → 「Add custom connector」で URL を貼り付け、サインインします。
  • Cursor (.cursor/mcp.json): { "mcpServers": { "openclip": { "url": "https://openclip.app/mcp" } } }
  • ヘッダーのみを使用するクライアント: openclip.app/settings/connect で MCP トークンを発行し、Authorization: Bearer <token> を付けて https://openclip.app/mcp/key に接続します。

動作確認: get_account を呼び出します。

ファイルの取り込み

  1. create_upload(filename, content_type) は id と upload_url を返します。
  2. 生のバイト列を upload_url に PUT します。
  3. 返された id を file 引数として渡します。

complete_upload を呼び出さないでください。 それは有料のクリッピングパイプラインを開始します。無料ツールはアップロードされたファイルを直接読み取ります。list_videos にすでにあるファイルも入力として使用できます。

出力形式

convert_media(file, to, ...params) の形式で使用します。

  • 動画コンテナ - mp4、webm、mov、mkv。ユーザーが「どこでも再生できるもの」を求めている場合のデフォルトは mp4 です。
  • GIF - オプションで fps(デフォルト 12)と width(デフォルト 480)を指定できます。滑らかな動きにするには fps を上げ、鮮明なGIFにするには width を上げますが、どちらもファイルサイズが大幅に増加します。GIFはすぐにサイズが大きくなるため、長い動画の場合は最初にトリミングしてください。
  • 音声 - mp3、aac、wav、flac。動画から音声を抽出するために使用します。共有用には mp3、他のツールでロスレス音声を扱う場合には wav または flac を使用します。

ファイルサイズを目標にするのではなく形式を変換するには、edit_video を operation="compress"(target_mb または crf)で使用します。詳しくは openclip-video-editing スキルを参照してください。

ポーリング

convert_media は tool_job というハッシュIDと status: "queued" を返します。5~10秒ごとに get_tool_job_status(tool_job) をポーリングします。

  • queued / processing - まだ処理中です。ポーリングを続けてください。
  • completed - 永続的なCDNの outputs URLと result_meta を返します。
  • failed - error を返します。

同期的に完了するとは想定しないでください。

ルール

  • 必ずポーリングを行ってください。変換は非同期です。
  • 出力URLは永続的なCDNリンクであり、署名や期限切れはありません。
  • 無料利用は1日あたりのレート制限と1ファイルあたりのサイズ制限があります。エラーテキストに制限を解除する方法が記載されています。
  • 長い動画をGIFに変換すると巨大なファイルになります。まずは興味のある数秒間にトリミングしてから変換してください。

例: プロンプトからアクションへ

  • 「これをmp4に変換して」 - create_upload、バイト列のPUT、convert_media(file, to="mp4")、ポーリング。
  • 「これをGIFにして」 - まず edit_video で目的の瞬間にトリミングし、次に convert_media(file, to="gif", fps=15, width=640)、ポーリング。
  • 「音声だけ抽出して」 - convert_media(file, to="mp3")、ポーリング。
  • 「編集用にロスレス音声が必要」 - convert_media(file, to="wav")、ポーリング。

関連スキル

トリミング、クロッピング、サイズ指定圧縮は openclip-video-editing にあります。抽出した音声の文字起こしは openclip-transcription で行います。

Individual skills in this repo

This repo contains 9 individual skills — each has its own dedicated page.

OpenClip-App/agent-skills

OpenClip captions: burn styled animated captions into short clips.

OpenClip-App/agent-skills

OpenClip clipping: long video → short vertical clips ranked by virality score.

OpenClip-App/agent-skills

OpenClip agent skill for clipping long-form into short-form social clips.

openclip-remove-background

Remove the background from an image with OpenClip and get back a transparent PNG. FREE with just an OpenClip account, no subscription. Use when asked to

openclip-repurpose

Turn one long video into a full batch of platform-ready short clips for TikTok, Reels, and YouTube Shorts with OpenClip - find the moments, reframe to vertical, burn in captions, and write the post copy for each. Use when asked to

openclip-thumbnails

Pull still frames out of a video as thumbnail images with OpenClip, then compress, resize, crop, or reformat them to jpg, png, or webp. FREE with just an OpenClip account, no subscription. Use when asked for

openclip-transcription

Transcribe video or audio to JSON, SRT, and VTT with speaker diarization and time codes, using OpenClip. FREE with just an OpenClip account, no subscription. Use when asked to

openclip-ugc-ads

Generate short vertical UGC-style ad clips from a structured creative brief with OpenClip, picking from a roster of AI creators. Use when asked to

openclip-video-editing

Edit a video file from your agent with OpenClip - trim, crop, reframe to 9:16 or 1:1, resize, rotate, flip, compress to a target size, or mute the audio. FREE with just an OpenClip account, no subscription. Use when asked to

関連スキル