콘텐츠로 건너뛰기

FFmpeg API Waveform

통합

모델 id ffmpeg-api/waveform
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

이 요청: ≈$0.001 1 API 크레딧 · ≈ ₽0.11 이 페이지에서 실행

API 키 받기
Utility 기타 #ffmpeg

시각화를 그리기 위해 오디오 파일에서 정규화된 파형 데이터를 생성합니다

Utility · 데이터 (JSON)

첫 번째 결과가 여기에 표시됩니다

아래에서 요청을 작성하고 API 키로 실행하세요. 출력은 스토리지에 복사되며, 영구 보관하거나 7일 동안 무료로 보관할 수 있습니다.

요청 만들기

컨트롤은 모델 스키마에서 생성됩니다. 값을 변경하면 코드와 가격이 업데이트됩니다.

•필수

분석할 오디오 파일을 가리키는 URL입니다.

고급 points_per_second · precision · smoothing_window
기본값 4

오디오 초당 파형 샘플링 포인트 수입니다. 1–2와 같은 값에서는 대략적이고 4–10과 같은 값에서는 더 세밀합니다.

기본값 2

파형 값의 소수점 이하 자릿수입니다. 값이 커질수록 숫자 정밀도가 높아지는 대신 페이로드가 커집니다.

기본값 3

평활화 창 크기이며 홀수여야 합니다. 창이 클수록 파형이 더 부드러워집니다.

POST /run/ffmpeg-api/waveform?wait=20 견적 → $0.001
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ffmpeg-api/waveform?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "media_url": "https://example.com/your-file.bin"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

이 요청 실행

키는 이 브라우저에 유지됩니다. Doitong API로만 전송되며, 기억하기를 선택한 경우에만 localStorage에 저장됩니다. API 키 받기

FFmpeg API Waveform 정보

`media_url`의 오디오를 분석하고 길이, 포인트 수, 정밀도 및 -1과 1 사이 값의 `waveform` 배열을 반환합니다. `points_per_second`는 1~10, `precision`은 소수 자릿수 1~6, `smoothing_window`는 곡선을 매끄럽게 하는 1~21이며 홀수여야 합니다.

매개변수

이름유형 기본값허용됨 설명
media_url필수
유형string
분석할 오디오 파일을 가리키는 URL입니다.
points_per_second선택 사항
유형number
기본값4
1 – 10
오디오 초당 파형 샘플링 포인트 수입니다. 1–2와 같은 값에서는 대략적이고 4–10과 같은 값에서는 더 세밀합니다.
precision선택 사항
유형integer
기본값2
1 – 6
파형 값의 소수점 이하 자릿수입니다. 값이 커질수록 숫자 정밀도가 높아지는 대신 페이로드가 커집니다.
smoothing_window선택 사항
유형integer
기본값3
1 – 21
평활화 창 크기이며 홀수여야 합니다. 창이 클수록 파형이 더 부드러워집니다.
필수

출력

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ffmpeg-api/waveform",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "media_url": "https://example.com/your-file.bin"
  },
  "output": {
    "waveform": [
      1.0
    ],
    "duration": 5,
    "points": 1,
    "precision": 1
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
파일 보관 방식 선택모든 outputs[].url은 스토리지에 저장된 복사본입니다. 계정 설정 또는 ?storage=에 따라 영구 보관(GB-월 단위 과금)하거나 7일 동안 무료로 보관합니다.
모든 모델에서 동일한 구조이미지, 동영상, 오디오 모두 type, url, content_type, width, height 및 duration을 사용합니다. output은 모델 자체의 결과 객체입니다.
출력 필드
waveform
array of number오디오 길이 × points_per_second개의 포인트를 포함하는 정규화된 파형 배열입니다. 각 값의 범위는 -1~1입니다.
duration
number오디오 길이이며 초 단위로 표시합니다.
points
integer파형 데이터 포인트의 총 개수입니다.
precision
integer파형 값에 사용되는 소수점 정밀도입니다.

더 많은 모델: 기타

AI 에이전트용: 이 페이지의 Markdown 버전: https://doitong.com/ko/developers/models/ffmpeg-api/waveform.md. 모든 모델 및 가이드: https://doitong.com/developers/llms.txt