{
  "id": 23747668,
  "title": "Auto-Narration Without FFmpeg",
  "url": "https://urgent.news/2026/12/06/auto-narration-without-ffmpeg",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-06T01:59:30.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/jiang_jinfeng_205d3a3d590/auto-narration-without-ffmpeg-2lid"
  },
  "original_language": null,
  "account": "Auto-narration for PowerPoint presentations can be accomplished without relying on FFmpeg by parsing container headers in pure Go. This approach determines the duration of audio files such as WAV, MP3, and MP4, allowing for accurate playback timing without external dependencies.\n\nWAV files are analyzed by walking the top-level chunk linked list, reading sample rate, channels, bit depth, and byte rate from the fmt block. For MP3 files, the ID3v2 header, ID3v1 trailer, MPEG frame header, and various VBR headers are handled. The duration is computed in order of FrameScanned, HeaderDerived, and finally DurationUnknown if not found.\n\nThe go-pptx library handles video probing for MP4 and WebM formats. MP4 files are identified using the ftyp box, and duration is returned as DurationUnknown, relying on the caller to provide an accurate value. WebM/Matroska files are identified via the EBML header signature, with duration also returned as DurationUnknown.\n\nThe library deduplicates media content by computing a content-hash (SHA-256) and caching results per revision to avoid recomputation. When embedding media, the library adds the media Part, updates slide relationships, and writes shape fragments in a single transaction to ensure data integrity.\n\nAudio shapes default to 1in x 1in size positioned at the bottom-right corner of the page. The playback tree includes an AudioRole enumeration with Narration, Background, and Effect roles, where only Narration tracks with OnSlideEnter trigger participate in timing calculations.\n\nThe AdvanceAfter formula calculates the maximum end time of participating tracks, adding TailPadding. PlanTimingSync outputs a TimingPlan, including base revision, per-page advance time, participating tracks, and duration state. If any page fails to generate a plan due to unknown durations, the entire batch is rejected, ensuring reliable auto-narration without external tools.",
  "summary": "Auto-Narration Without FFmpeg go-pptx Tech Blog · Part 6: Media, Playback Timing, and Auto-Narration — A Pure Go Approach Without FFmpeg Series: go-pptx Tech Blog (10 parts) Baseline: v2.4.4 Keywords: WAV/MP3/MP4/WebM probing, duration state, media deduplication, playback tree, PlanTimingSync, narrate 1. Why \"auto-narrating a PPT\" needs media probing The typical pipeline for \"auto-narration\"…",
  "summary_source": "publisher",
  "key_points": [
    "Auto-narration achieved via pure Go without FFmpeg",
    "WAV files analyzed by reading fmt block details",
    "MP4 and WebM durations marked as DurationUnknown"
  ],
  "editors_take": "Removing external dependencies allows developers to automate PowerPoint narration timing using pure Go code while ensuring data integrity through single-transaction media embedding.",
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}