ai-ffmpeg-render / README.md
MarneMorgan's picture
Update README.md
76804f5 verified
metadata
title: Ai Ffmpeg Render
emoji: 🏢
colorFrom: red
colorTo: purple
sdk: docker
pinned: false

AI + FFmpeg Render Webhook (CPU Best)

Endpoint

POST /render

Body JSON: { "file_urls": ["https://.../video.mp4", "https://.../music.mp3", "https://.../logo.png"], "prompt": "Trim to 10 seconds, resize 720p, add logo top-right, music at 20%, add text caption 'Hello' bottom-center", "output_name": "final.mp4" }

Returns: binary rendered file.

curl

curl -X POST "https://.hf.space/render"
-H "Content-Type: application/json"
-o result.mp4
-d '{ "file_urls": ["https://example.com/video.mp4", "https://example.com/music.mp3"], "prompt": "Trim to 10 seconds, resize 1280x720, add music at 20% volume", "output_name": "final.mp4" }'

n8n setup

HTTP Request node:

  • Method: POST
  • URL: https://.hf.space/render
  • Send Body: JSON
  • Response: File
  • Binary Property: data

Then: Write Binary File / upload to S3 / etc. Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference