Latenode

GIF to MP4 pipeline

This template listens on a webhook for a GIF URL, calls your FFmpeg encoding API from JavaScript, waits until the MP4 is ready, and saves the job id and output URL in the Latenode database. Use it when a CMS or upload form should hand off conversion and keep a record of the result. Put the FFmpeg API key in that JavaScript node.

Updated Sep 16, 2026Est. run: 8sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Turns inbound GIF URLs into MP4 files without a desktop encode step
  • Calls your FFmpeg encoding API from JavaScript
  • Keeps the FFmpeg API key in that JavaScript node
  • Stores job id and MP4 URL in the Latenode database

How it works

1
Trigger

Receive the GIF job

The scenario starts when your app POSTs a GIF URL, and any quality flags, to the webhook.

2
Logic

Convert with the FFmpeg API

JavaScript submits the encode job, polls until it finishes, and returns the MP4 URL. Put the FFmpeg API key in that JavaScript node.

3
Action

Store the output

The Latenode database saves job id, source URL, and MP4 link so later runs and support checks can find the asset.

Setup guide

1

Add the webhook

Add a webhook trigger and copy the URL into the CMS or upload app that sends GIF jobs. Require a shared secret or signature on the request so only your app can enqueue work.

2

Call the encoder from JavaScript

Add a JavaScript node that posts the GIF URL to your FFmpeg encoding API, polls for completion, and returns the MP4 URL. Put the FFmpeg API key in that JavaScript node.

3

Save the result

Create a database object with job id, source URL, and MP4 link. Use that record if you retry a failed encode.

Requirements

An FFmpeg encoding API account and API key stored in the JavaScript node
A source that can POST a GIF URL to the Latenode webhook
Latenode Database enabled so you can store job metadata

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.