mcpField
F
fal-video-to-video

fal-video-to-video

github.com/josiahsiegelクリエイティブ・メディア5983 回インストール19 週間前に更新
リポジトリ

fal-video-to-video について

fal-video-to-videoは、fal.aiのモデルで既存動画を編集・変換するためのリファレンススキルです。スタイルやオブジェクトの編集、リミックス、アップスケール、フレーム補間のエンドポイントとパラメーターを扱います。

主な機能

  1. 01スタイル変換と一般的な動画編集
  2. 02動画内のオブジェクトの置換や削除
  3. 03Soraによる動画のリミックス
  4. 04解像度を2倍または4倍に拡大
  5. 05指定フレームレートへのフレーム補間

活用シーン

  1. 01動画をアニメやノワール調に変換
  2. 02シーン内の要素を置換または削除
  3. 03低解像度の映像を拡大
  4. 04フレームレートを上げて動きを滑らかにする

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill fal-video-to-video

インストール後、Claude Code で/fal-video-to-videoを入力して読み込まれたか確認します。

詳細

クイックリファレンス

タスクエンドポイント主なパラメーター
スタイル/編集fal-ai/kling-video/o1/video-to-video/editedit_type
リミックスfal-ai/sora/remixprompt
アップスケールfal-ai/video-upscalerscale: 2,4
補間fal-ai/frame-interpolationtarget_fps
編集タイプ使用例
general色、照明、品質
styleアニメ、絵画、ノワール
object要素の置換/削除
スタイルキーワード効果
"anime style"日本のアニメーション
"oil painting"質感のある筆致
"noir"高コントラストの白黒
"cyberpunk"ネオンの未来的な雰囲気
アップスケールサイズへの影響
2xファイルサイズが4倍
4xファイルサイズが16倍

このスキルを使う場面

動画の編集と変換に使用します:

  • 動画にスタイル転送を適用する
  • 低解像度の動画をアップスケールする
  • フレームレートを上げて動きを滑らかにする
  • オブジェクトを置換または削除する
  • 動画の品質を向上させる

関連スキル:

  • テキストから動画を生成する場合:fal-text-to-video を参照
  • 画像から動画を生成する場合:fal-image-to-video を参照
  • モデルを選択する場合:fal-model-guide を参照

fal.ai 動画から動画への変換モデル

fal.ai の動画編集、変換、アップスケールモデルに関する完全なリファレンスです。

Kling O1 動画編集

Kling O1 動画から動画への編集

エンドポイント: fal-ai/kling-video/o1/video-to-video/edit 最適な用途: 包括的な動画編集と変換

import { fal } from "@fal-ai/client";

const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Transform into an anime style with vibrant colors",
    video_url: "https://example.com/original-video.mp4",
    edit_type: "style",
    negative_prompt: "blurry, distorted, low quality"
  }
});

console.log(result.video.url);
import fal_client

result = fal_client.subscribe(
    "fal-ai/kling-video/o1/video-to-video/edit",
    arguments={
        "prompt": "Transform into anime style",
        "video_url": "https://example.com/video.mp4",
        "edit_type": "style"
    }
)
print(result["video"]["url"])

編集タイプ:

タイプ説明使用例
general汎用的な編集あらゆる変換
styleスタイル転送アート効果
objectオブジェクトの置換/編集特定の要素を変更

パラメーター:

パラメータータイプ説明
promptstring編集の指示
video_urlstring元動画のURL
edit_typestring"general"、"style"、"object"
negative_promptstring避ける内容
Kling O1 の例

スタイル転送:

const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Transform into a watercolor painting style with soft brushstrokes",
    video_url: sourceVideoUrl,
    edit_type: "style",
    negative_prompt: "harsh edges, digital artifacts"
  }
});

オブジェクト編集:

const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Change the red car to a blue sports car",
    video_url: sourceVideoUrl,
    edit_type: "object"
  }
});

一般的な変換:

const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Make it look like a sunny summer day instead of overcast",
    video_url: sourceVideoUrl,
    edit_type: "general"
  }
});

Sora 2 リミックス

Sora リミックス(動画変換)

エンドポイント: fal-ai/sora/remix 最適な用途: クリエイティブな動画のリミックスと変換

const result = await fal.subscribe("fal-ai/sora/remix", {
  input: {
    prompt: "Transform this into a cinematic sci-fi scene with futuristic elements",
    video_url: "https://example.com/original.mp4",
    aspect_ratio: "16:9"
  }
});

console.log(result.video.url);

Sora リミックスのパラメーター:

パラメータータイプ説明
promptstring変換内容の説明
video_urlstring元動画のURL
aspect_ratiostring"16:9"、"9:16"、"1:1"

動画のアップスケーリング

動画アップスケーラー

エンドポイント: fal-ai/video-upscaler 最適な用途: 動画の解像度を向上させる

const result = await fal.subscribe("fal-ai/video-upscaler", {
  input: {
    video_url: "https://example.com/low-res-video.mp4",
    scale: 2  // 2x or 4x upscale
  }
});

console.log(result.video.url);
result = fal_client.subscribe(
    "fal-ai/video-upscaler",
    arguments={
        "video_url": "https://example.com/video.mp4",
        "scale": 2
    }
)

パラメーター:

パラメータータイプ値説明
video_urlstring-元動画のURL
scalenumber2, 4アップスケール倍率
TopazVideoAI(利用可能な場合)

エンドポイント: fal-ai/topaz-video-ai 最適な用途: プロ品質の動画補正

const result = await fal.subscribe("fal-ai/topaz-video-ai", {
  input: {
    video_url: "https://example.com/video.mp4",
    enhancement_type: "upscale",
    target_resolution: "4k"
  }
});

動画フレーム補間

フレーム補間

エンドポイント: fal-ai/frame-interpolation 最適な用途: 滑らかな動き、フレームレートの向上

const result = await fal.subscribe("fal-ai/frame-interpolation", {
  input: {
    video_url: "https://example.com/24fps-video.mp4",
    target_fps: 60,
    interpolation_mode: "smooth"
  }
});

パラメーター:

パラメータータイプ説明
video_urlstring元動画
target_fpsnumber目標フレームレート(30、60、120)
interpolation_modestring"smooth"、"natural"

動画のスタイル転送

汎用スタイル転送パイプライン
// Apply artistic style to video
async function applyVideoStyle(videoUrl: string, style: string) {
  const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
    input: {
      prompt: `Transform into ${style} style`,
      video_url: videoUrl,
      edit_type: "style"
    }
  });
  return result.video.url;
}

// Usage
const animeVideo = await applyVideoStyle(originalVideo, "anime");
const oilPaintingVideo = await applyVideoStyle(originalVideo, "oil painting");
const pixelArtVideo = await applyVideoStyle(originalVideo, "pixel art");
スタイルキーワード
スタイルプロンプトの例
アニメ"Japanese anime style, cel shading"
水彩画"Soft watercolor painting with flowing colors"
油絵"Classical oil painting, textured brushstrokes"
ピクセルアート"8-bit pixel art retro game style"
ノワール"Black and white film noir, high contrast"
サイバーパンク"Neon cyberpunk aesthetic, futuristic"
スケッチ"Hand-drawn pencil sketch style"
コミック"Comic book style with bold outlines"

動画の強化手法

ノイズ除去
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Clean and enhance video quality, reduce noise and grain",
    video_url: noisyVideoUrl,
    edit_type: "general",
    negative_prompt: "grainy, noisy, artifacts"
  }
});
色補正
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Enhance colors to be more vibrant and natural, improve contrast",
    video_url: flatVideoUrl,
    edit_type: "general"
  }
});
照明の強化
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Improve lighting, add warm golden hour glow",
    video_url: darkVideoUrl,
    edit_type: "general"
  }
});

動画内オブジェクトの編集

オブジェクトの置き換え
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Replace the bicycle with a motorcycle",
    video_url: sourceVideoUrl,
    edit_type: "object"
  }
});
オブジェクトの削除
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Remove the person in the background, fill with natural scenery",
    video_url: sourceVideoUrl,
    edit_type: "object"
  }
});
オブジェクトの追加
const result = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
  input: {
    prompt: "Add falling snow throughout the scene",
    video_url: sourceVideoUrl,
    edit_type: "object"
  }
});

パラメーターの完全なリファレンス

interface VideoToVideoInput {
  // Required
  video_url: string;

  // For editing models
  prompt?: string;
  edit_type?: "general" | "style" | "object";
  negative_prompt?: string;

  // For upscaling
  scale?: number;  // 2 or 4

  // For frame interpolation
  target_fps?: number;
  interpolation_mode?: string;

  // Output
  aspect_ratio?: string;
}

ワークフローの例

動画強化の完全なパイプライン
async function enhanceVideo(sourceUrl: string) {
  // 1. Upscale resolution
  const upscaled = await fal.subscribe("fal-ai/video-upscaler", {
    input: {
      video_url: sourceUrl,
      scale: 2
    }
  });

  // 2. Enhance quality
  const enhanced = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
    input: {
      prompt: "Enhance video quality, improve sharpness and colors",
      video_url: upscaled.video.url,
      edit_type: "general"
    }
  });

  // 3. Smooth motion (optional)
  const smoothed = await fal.subscribe("fal-ai/frame-interpolation", {
    input: {
      video_url: enhanced.video.url,
      target_fps: 60
    }
  });

  return smoothed.video.url;
}
スタイル変換のワークフロー
async function styleTransferVideo(
  sourceUrl: string,
  targetStyle: string
) {
  // Apply style transformation
  const styled = await fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
    input: {
      prompt: `Transform into ${targetStyle} style, maintain motion consistency`,
      video_url: sourceUrl,
      edit_type: "style",
      negative_prompt: "flickering, inconsistent, artifacts"
    }
  });

  return styled.video.url;
}

// Usage
const animeVersion = await styleTransferVideo(original, "anime");
const paintingVersion = await styleTransferVideo(original, "impressionist oil painting");
動画の一括処理
async function processVideosBatch(
  videos: string[],
  transformation: string
) {
  const results = await Promise.all(
    videos.map(video =>
      fal.subscribe("fal-ai/kling-video/o1/video-to-video/edit", {
        input: {
          prompt: transformation,
          video_url: video,
          edit_type: "general"
        }
      })
    )
  );

  return results.map(r => r.video.url);
}

モデルの比較

モデル編集スタイルアップスケール速度
Kling O1フルフルいいえ中
Sora Remix限定的フルいいえ遅い
Video Upscalerいいえいいえフル速い

ベストプラクティス

スタイル変換の場合
  1. 一貫性を保つ - 具体的なスタイルの説明を使用します
  2. ちらつきを避ける - ネガティブプロンプトに「consistent」を追加します
  3. クリップでテストする - まず短いセグメントを処理します
  4. アイデンティティを維持する - 変換しすぎないようにします
オブジェクト編集の場合
  1. 具体的に指定する - 変更するオブジェクトを正確に指定します
  2. コンテキストを示す - 置き換え後の内容を明確に説明します
  3. 動きを考慮する - 編集内容が動きに合うことを確認します
  4. 境界を確認する - オブジェクトの端が自然になじむようにします
アップスケールの場合
  1. 元の品質が重要です - 入力がきれいであれば、出力も向上します
  2. 過度にアップスケールしない - 通常は2倍で十分です
  3. ファイルサイズを考慮する - 解像度が高いほどファイルサイズが大きくなります
  4. まずテストする - 短いクリップでプレビューします
一般的な強化の場合
  1. 段階的に変更する - 一度にすべてを修正しようとしないでください
  2. 意図を保つ - 元の雰囲気やスタイルを維持します
  3. アーティファクトを確認する - 新たに発生したエラーがないか確認します
  4. 繰り返す - 複数回の処理が必要になる場合があります

よくある問題と解決策

問題原因解決策
ちらつきフレームの不一致プロンプトに「consistent, stable」を追加します
色の変化過度に強い編集より穏やかなプロンプトを使用します
ディテールの消失変換しすぎ編集の強度を下げます
アーティファクト圧縮の問題より高品質なソースを使用します
モーションブラーフレーム補間「natural」モードを使用します

ファイルサイズに関する考慮事項

処理サイズへの影響
2倍アップスケール4倍
4倍アップスケール16倍
フレーム補間2~4倍
スタイル変換ほぼ同じ

動画を処理する際は、ストレージと帯域幅を常に考慮してください。

コメント