界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
效率与协作 · SKILL.md

ffmpeg-api-merge-audio-video

ffmpeg-api-merge-audio-video

【效率与协作】Ffmpeg Api | Merge Audio Video. Merge an audio track with a video file. Triggers: merge audio video, combine audio video, ffmpeg merge, add audio to video

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: ffmpeg-api-merge-audio-video description: "Ffmpeg Api | Merge Audio Video. Merge an audio track with a video file. Triggers: merge audio video, combine audio video, ffmpeg merge, add audio to video" allowed-tools: Bash(curl *), WebFetch

Ffmpeg Api | Merge Audio Video

Merge an audio file with a video file into a single output video. Supports configurable start offset for audio synchronization.

Quick Start

Requires an each::labs API key. Get one at eachlabs.ai.

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "ffmpeg-api-merge-audio-video",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/silent-video.mp4",
      "audio_url": "https://example.com/background-music.mp3",
      "start_offset": 0
    }
  }'

Parameters

ParameterTypeDefaultDescription
audio_urlstring-URL of the audio file to use as the audio track.
start_offsetnumber0Offset in seconds for when the audio should start relative to the video.
video_urlstring-URL of the video file to use as the video track.

Examples

Merge audio and video with no offset:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "ffmpeg-api-merge-audio-video",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/timelapse.mp4",
      "audio_url": "https://example.com/ambient-music.mp3"
    }
  }'

Merge with audio starting 5 seconds in:

curl -X POST https://api.eachlabs.ai/v1/prediction \
  -H "Content-Type: application/json" \
  -H "X-API-Key: $EACHLABS_API_KEY" \
  -d '{
    "model": "ffmpeg-api-merge-audio-video",
    "version": "0.0.1",
    "input": {
      "video_url": "https://example.com/presentation.mp4",
      "audio_url": "https://example.com/narration.wav",
      "start_offset": 5
    }
  }'

Related Models

Documentation

我的收藏