{
  "id": 20891456,
  "title": "From a database to a YouTube Short with Pillow and ffmpeg (no video editor)",
  "url": "https://urgent.news/2026/11/20/from-a-database-to-a-youtube-short-with-pillow-and-ffmpeg-no-video",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-11-20T11:30:03.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/quantooo/from-a-database-to-a-youtube-short-with-pillow-and-ffmpeg-no-video-editor-32f"
  },
  "original_language": "en",
  "account": "Our server generates a concise, easy-to-understand post each night about the day's data, and transforms it into a short vertical video for popular social media platforms like YouTube Shorts, Instagram Reels, and Facebook. Remarkably, this process requires no video editing software or paid APIs. Instead, it relies on open-source tools like Pillow for creating the slides and ffmpeg for stitching them together.\n\nTo create each slide, Pillow, a Python imaging library, draws text onto images in a 9:16 vertical format. The text is drawn in a bold font with a white color, making it stand out on the slide. A small helper function ensures that long sentences are wrapped to fit within the slide's boundaries, preventing any text from running off the edge.\n\nOnce the slides are ready, ffmpeg's concat demuxer is employed to join them into a single video file. The last slide is repeated in the list of files to ensure its duration is accounted for in the final video, despite ffmpeg typically ignoring the duration of the last file in such lists. To maintain compatibility with various platforms, a silent audio track is added using ffmpeg's anullsrc input. This is crucial as some platforms may reject videos lacking any audio stream.\n\nEach caption undergoes a stringent compliance check before being posted. This check involves a regular expression to filter out unwanted words and a mandatory disclaimer. If a caption fails this check, it is skipped, logged, and the remaining posts are uploaded as usual. The entire operation is powered by an Always Free cloud VM, leveraging open-source tools, and a self-hosted scheduler named Postiz to distribute the videos across different platforms. This entire process, developed by Quantooo Lab, the creators of quantooo.com, an open and educational quantitative laboratory, is completely free and documented at https://quantooo.com/learn?tag=daily. It's important to note that this method provides educational content, not investment advice.",
  "summary": "Every night our server writes a plain-language post about the day's data and turns it into a short vertical video for YouTube Shorts, Instagram Reels and Facebook. No video editor, no paid API: Pillow draws the slides and ffmpeg joins them. 1. Draw slides with Pillow from PIL import Image , ImageDraw , ImageFont img = Image . new ( \"RGB\" , ( 1080 , 1920 ) , \"#0f172a\" ) # 9:16 vertical d =…",
  "key_points": [
    "Python Pillow creates vertical slides with bold text",
    "ffmpeg stitches slides into YouTube Shorts format",
    "Open-source tools and free cloud VM power the process"
  ],
  "editors_take": null,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "also_reported_by": []
  },
  "ai_generated": true,
  "disclaimer": "Summaries, key points and the editor’s take are written by software from other outlets’ reporting and may contain errors — always check the linked original."
}