Eranol LogoEranol
BlogCommunityDocumentationPricingSign In

General

OverviewGet Started

Universal

Add IntroAdd OutroAudio to VideoBackground AudioCaptions ApiComposeConcatConvert a video file to MP4Convert Audio to Mp3Convert Audio to wavConvert to JPGConvert to WebMConvert to WebPDenoiseExtract audio track from a videoExtract images from a videoGenerate a GIF from a videoHighlightsImageMergeNotifyOverlayProgress BarReframeRemove SilenceThumbnailTikTokTrimVerifyWatermarkZoom

General

DeleteImage StatusStatusTikTok StatusFFmpeg Results

Need help?

Contact Support

Audio to Video

POST

Convert your voiceovers into Videos

Guide

Overview

Convert your voiceovers into Videos

Example Request Bodies

Default

{
  "width": 1280,
  "height": 720,
  "segments": [
    {
      "url": "https://...",
      "type": "video",
      "end_time": 5,
      "start_time": 2
    },
    {
      "url": "https://...",
      "type": "image",
      "end_time": 12,
      "start_time": 7
    }
  ],
  "youtube_url": "https://www.youtube.com/watch?v=0JgVr5N44yY",
  "voiceover_url": "https://."
}

Example Response

[
  {
    "job_id": "1406c589-a1f4-45d5-8745-aae07bc4de38",
    "status": "pending",
    "message": "Job created. Poll status_url for progress.",
    "result_url": "https://eranol.com/api/v1/ffmpeg/result/1406c589-a1f4-45d5-8745-aae07bc4de38",
    "status_url": "https://eranol.com/api/v1/ffmpeg/status/1406c589-a1f4-45d5-8745-aae07bc4de38"
  }
]

Endpoint

Send your requests to the following URL using the specified HTTP method.

POST https://eranol.com/api/v1/ffmpeg/audio/to-video

Request Body

Send the following JSON payload in the request body. Adjust the values to match your use case.

json
{
  "width": 1280,
  "height": 720,
  "segments": [
    {
      "url": "https://...",
      "type": "video",
      "end_time": 5,
      "start_time": 2
    },
    {
      "url": "https://...",
      "type": "image",
      "end_time": 12,
      "start_time": 7
    }
  ],
  "youtube_url": "https://www.youtube.com/watch?v=0JgVr5N44yY",
  "voiceover_url": "https://."
}

Example Request

Use the following cURL command to make a request to this API endpoint. Replace YOUR_API_KEY with your actual API key from the dashboard.

bash
curl -X POST "https://eranol.com/api/v1/ffmpeg/audio/to-video" \
  -H "x-api-key: YOUR_API_KEY" \
  -d '{"width":1280,"height":720,"segments":[{"url":"https://...","type":"video","end_time":5,"start_time":2},{"url":"https://...","type":"image","end_time":12,"start_time":7}],"youtube_url":"https://www.youtube.com/watch?v=0JgVr5N44yY","voiceover_url":"https://."}'

Example Response

Below is an example of a successful JSON response from this endpoint.

json
[
  {
    "job_id": "1406c589-a1f4-45d5-8745-aae07bc4de38",
    "status": "pending",
    "message": "Job created. Poll status_url for progress.",
    "result_url": "https://eranol.com/api/v1/ffmpeg/result/1406c589-a1f4-45d5-8745-aae07bc4de38",
    "status_url": "https://eranol.com/api/v1/ffmpeg/status/1406c589-a1f4-45d5-8745-aae07bc4de38"
  }
]

Response Status

A successful request will return one of the following HTTP status codes.

200 OKRequest was successful and data is returned in the response body.
201 CreatedResource was successfully created.
401 UnauthorizedMissing or invalid API key.
429 Too Many RequestsRate limit exceeded. Try again later.