Urgent.News

What's breaking now, across thousands of outlets.

Tech

I replaced FFmpeg.wasm with WebCodecs in my browser video tools. Compression went from 97 s to 5.6 s

I run DashUtils , a site with 392 free file tools: image and PDF converters, a video compressor, an MP3 cutter and so on. The rule for every tool is simple. Nothing gets uploaded; the work happens in your browser. Until last week, every video and audio tool ran on FFmpeg.wasm. It handles every format you can think of, but it has costs: A 31 MB engine (about 10 MB compressed) has to download…

I recently migrated from using FFmpeg.wasm to WebCodecs in my browser video tools. The results were impressive: compression time dropped from 97 seconds to just 5.6 seconds. This change was motivated by a disappointing experience with an MP4-to-GIF tool that took too long to convert. After making the switch using Mediabunny WebCodecs, I discovered several factors contributing to the initial slow performance with FFmpeg.wasm.

Firstly, FFmpeg.wasm required a large engine (31 MB) and had issues with multi-threading and hardware acceleration. Secondly, progress updates caused significant page re-rendering during conversion. Thirdly, browser encoders had a bitrate floor that limited compression efficiency. Fourthly, reading pixels back from the GPU and fifthly, bitrate settings often led to unnecessary re-encoding.

By addressing these issues, I was able to significantly improve the performance of my video compression tools. Now, converting a 20-second 1080p clip takes just 5.6 seconds, and a 60-second 1080p clip is reduced to 21 seconds. These improvements were achieved by detecting codec support, using FFmpeg.wasm as a fallback for unsupported formats, throttling progress updates, and optimizing the way audio and video are processed.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Weekly Reviews Should Explain Work, Not Grade It

Weekly reflection is most useful when it explains a week, not when it grades one. A notebook full of completed tasks can look convincing while hiding the fact that the important work kept getting…

  • Weekly reflection should focus on activities, not grading.
  • Distinguish record of events from judgment of performance.
  • Effective review identifies causes, not personal flaws.

The Guardian redacted my secret. The Read tool walked around it.

I put a fake AWS key in a file and asked Claude Code to read it twice in the same session: once with its Read tool, once with cat . An OWASP Guardian sat between the agent and its tools.

  • Guardian redacted secret key despite model's access
  • Read tool accessed key, cat command blocked it
  • Inconsistency due to improper tool interception

The desktop is the agent - a first look at Praxis Linux (Phase 0)

90-second demo. Everything in it ran on a local model. The shape of the problem The desktop hasn't changed shape in thirty years.

  • Praxis Linux reimagines desktop as AI agent, not side AI
  • Canvas UI listens, understands, adapts to user needs
  • Phase 0 pre-alpha spike with Conversation, File, Code modes

Find Companies That Just Raised Money: Parsing SEC Form D Filings from EDGAR

Disclosure: I'm Ben, and I built the Apify Actor mentioned later in this post. I charge per result for it. Everything in the tutorial part works with free tools too.

  • SEC Form D filings reveal recently funded companies and their details
  • Script identifies recent Form D filings via EDGAR search and parses primarydoc.xml
  • Apify Actor simplifies process with customized User-Agent and filtering options

Why your code prepares a future that will never arrive (YAGNI)

TL;DR I spent a weekend making my multi-currency invoice app (with real-time exchange rates), multi-language (4 languages) and exportable to 3 accounting software.

  • YAGNI principle discourages building unnecessary future features
  • Author removed 400 lines of code, replaced with 3-line helper
  • Simplified invoicing application by focusing on true necessities

More from Tuesday 27 October →