အကြောင်းအရာသို့ ကျော်ရန်

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"

ဤတောင်းဆိုချက်: ≈၀.၀၀၁ $ ၁ API ခရက်ဒစ် · ≈ ၀.၁၁ ₽ ဤစာမျက်နှာတွင် လုပ်ဆောင်ရန်

API ကီး ရယူရန်
Utility အခြား #ffmpeg

မြင်ကွင်းဖော်ပြချက်များ ရေးဆွဲရန် အသံဖိုင်မှ ပုံမှန်ပြုလုပ်ထားသော လှိုင်းပုံ ဒေတာကို ဖန်တီးပေးသည်

Utility · ဒေတာ (JSON)

သင့်ပထမဆုံးရလဒ် ဤနေရာတွင် ပေါ်လာမည်

အောက်တွင် တောင်းဆိုချက်တစ်ခု တည်ဆောက်ပြီး သင့် API ကီးဖြင့် လုပ်ဆောင်ပါ။ ထွက်ရလဒ်များကို ကျွန်ုပ်တို့၏ သိုလှောင်မှုသို့ ကူးယူပြီး အမြဲတမ်း သို့မဟုတ် ၇ ရက် အခမဲ့ သိမ်းထားသည်။

တောင်းဆိုမှုတစ်ခု တည်ဆောက်ရန်

ထိန်းချုပ်မှုများကို မော်ဒယ် schema မှ အလိုအလျောက်ဖန်တီးသည်။ ၎င်းတို့ကို ပြောင်းလဲသည်နှင့် code နှင့် စျေးနှုန်းတို့လည်း ပြောင်းလဲမည်။

•လိုအပ်သည်

ခွဲခြမ်းစိတ်ဖြာမည့် အသံဖိုင်ကို ညွှန်ပြသော URL။

အဆင့်မြင့် points_per_second · precision · smoothing_window
မူလ 4

အသံတစ်စက္ကန့်လျှင် အမှတ်အရေအတွက်ဖြင့် ဖော်ပြသော waveform sampling rate ဖြစ်ပြီး 1–2 ကဲ့သို့ တန်ဖိုးများတွင် အသေးစိတ်နည်းကာ 4–10 ကဲ့သို့ တန်ဖိုးများတွင် အသေးစိတ်ပိုများသည်။

မူလ 2

waveform တန်ဖိုးများအတွက် ဒဿမနေရာ အရေအတွက်ဖြစ်ပြီး အရေအတွက်တိုးလာသည်နှင့် payload ပိုကြီးသော်လည်း ကိန်းဂဏန်းတိကျမှု ပိုကောင်းစေသည်။

မူလ 3

မကိန်းဖြစ်ရမည့် smoothing window အရွယ်အစား။ window ကြီးလေလေ waveform ပိုချောမွေ့လေလေဖြစ်သည်။

POST /run/ffmpeg-api/waveform?wait=20 ကုန်ကျစရိတ် → ၀.၀၀၁ $
# 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"

ဤတောင်းဆိုချက်ကို လုပ်ဆောင်ရန်

သင့် key သည် ဤဘရောက်ဇာထဲတွင်သာ ရှိမည်ဖြစ်ပြီး Doitong API သို့သာ ပို့မည်။ Remember ကို အမှန်ခြစ်ထားမှသာ (localStorage) တွင် သိမ်းမည်။ API ကီး ရယူရန်

FFmpeg API Waveform အကြောင်း

`media_url` ရှိ အသံကို ခွဲခြမ်းစိတ်ဖြာပြီး ကြာချိန်၊ point အရေအတွက်၊ တိကျမှုနှင့် -1 မှ 1 အတွင်း တန်ဖိုးများပါသော `waveform` အခင်းအကျင်းကို ပြန်ပေးသည်။ `points_per_second` သည် 1 မှ 10 အထိ၊ `precision` သည် ဒဿမနေရာ 1 မှ 6 အထိ ဖြစ်ပြီး `smoothing_window` သည် 1 မှ 21 အထိဖြစ်ကာ curve ကို ချောမွေ့စေပြီး မကိန်းဖြစ်ရမည်။

ပါရာမီတာများ

အမည်အမျိုးအစား မူလတန်ဖိုးခွင့်ပြုထားသည် ဖော်ပြချက်
media_urlလိုအပ်သည်
အမျိုးအစားstring
ခွဲခြမ်းစိတ်ဖြာမည့် အသံဖိုင်ကို ညွှန်ပြသော URL။
points_per_secondရွေးချယ်နိုင်သည်
အမျိုးအစားnumber
မူလတန်ဖိုး4
၁ – ၁၀
အသံတစ်စက္ကန့်လျှင် အမှတ်အရေအတွက်ဖြင့် ဖော်ပြသော waveform sampling rate ဖြစ်ပြီး 1–2 ကဲ့သို့ တန်ဖိုးများတွင် အသေးစိတ်နည်းကာ 4–10 ကဲ့သို့ တန်ဖိုးများတွင် အသေးစိတ်ပိုများသည်။
precisionရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး2
၁ – ၆
waveform တန်ဖိုးများအတွက် ဒဿမနေရာ အရေအတွက်ဖြစ်ပြီး အရေအတွက်တိုးလာသည်နှင့် payload ပိုကြီးသော်လည်း ကိန်းဂဏန်းတိကျမှု ပိုကောင်းစေသည်။
smoothing_windowရွေးချယ်နိုင်သည်
အမျိုးအစားinteger
မူလတန်ဖိုး3
၁ – ၂၁
မကိန်းဖြစ်ရမည့် smoothing window အရွယ်အစား။ window ကြီးလေလေ waveform ပိုချောမွေ့လေလေဖြစ်သည်။
လိုအပ်သည်

ထွက်ရလဒ်

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 တိုင်းသည် ကျွန်ုပ်တို့၏ သိုလှောင်မှုရှိ မိတ္တူဖြစ်သည်- အမြဲတမ်း (GB-month အလိုက် ငွေပေးရသည်) သို့မဟုတ် ၇ ရက် အခမဲ့၊ သင့်အကောင့်ဆက်တင် သို့မဟုတ် ?storage= ဖြင့် သိမ်းထားသည်။
မော်ဒယ်တိုင်းတွင် ပုံစံတူပုံ၊ ဗီဒီယိုနှင့် အသံတို့အတွက် type၊ url၊ content_type၊ width၊ height နှင့် duration။ output သည် မော်ဒယ်ကိုယ်တိုင်၏ ရလဒ် object ဖြစ်သည်။
ထွက်ရလဒ်၏ Fields များ
waveform
array of numberအသံကြာချိန် × points_per_second အမှတ်များ ပါဝင်ပြီး တစ်ခုစီသည် -1 မှ 1 အတွင်းရှိသော စံညှိထားသည့် waveform array။
duration
numberအသံကြာချိန်ကို စက္ကန့်ဖြင့် ဖော်ပြထားသည်။
points
integerwaveform ဒေတာအမှတ်များ၏ စုစုပေါင်းအရေအတွက်။
precision
integerwaveform တန်ဖိုးများအတွက် အသုံးပြုသည့် ဒဿမတိကျမှု။

နောက်ထပ် မော်ဒယ်များ: အခြား

AI အေးဂျင့်များအတွက်- ဤစာမျက်နှာ၏ Markdown ကို ဤနေရာတွင် ရရှိနိုင်သည် https://doitong.com/my/developers/models/ffmpeg-api/waveform.md. မော်ဒယ်များနှင့် လမ်းညွှန်များအားလုံး: https://doitong.com/developers/llms.txt