frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Offloading FFmpeg with Cloudflare

https://kentcdodds.com/blog/offloading-ffmpeg-with-cloudflare
15•heftykoo•4d ago

Comments

Doohickey-d•1h ago
You can do this all in fly.io, no cloudflare container needed.

The whole selling point of fly is lightweight and fast VMs that can be "off" when not needed and start on-request. For this, I would:

Set up a "peformance" instance, with auto start on, and auto-restart-on-exit _off_, which runs a simple web service which accepts an incoming request, does the processing and upload, and then exits. All you need is the fly config, dockerfile, and service code (e.g. python). A simple api app like that which only serves to ffmpeg-process something, can start very fast (ms). Something which needs to load e.g. a bigger model such as whisper can also still work, but will be a bit slower. fly takes care of automatically starting stopped instances on an incoming request, for you.

(In my use case: app where people upload audio, to have it transcribed with whisper. I would send a ping from the frontend to the "whisper" service even before the file finished uploading, saying "hey wake up, there's audio coming soon", and it was started by the time the audio was actually available. Worked great.)

michaelbuckbee•35m ago
That's a good trick (the "get ready" ping). It reminds me of how early Instagram was considered fast because they did the photo upload in the background while you were typing your caption so that by the time you hit "upload" it was already there and appeared instantly.
x0x0•1m ago
It may be even easier to not even leave a vm in off. Using either the fly command or their api, you can kick off a one-off machine that runs an arbitrary script on boot and dies when that script ends.

yanked from my script:

    cmd = [
      "fly", "machine", "run", latest_image,
      "--app", APP_NAME,
      "--region", options[:region],
      '--vm-size', 'performance-1x',
      '--memory', options[:memory] || '2048m',
      "--entrypoint", "/rails/bin/docker-entrypoint bundle exec rake #{rake_task}",
      "--rm"
    ]
    
    system(cmd)
or a 1-1 transliteration to their api. You can of course run many of these at once.
detuks•1h ago
I would not suggest using cloudflare containers for ffmpeg. Feels like it is the nost expensive product they have. Queue to aws spot instances or just have dedicated hetzner machine
pocksuppet•16m ago
This person is only running it for a few minutes once a week or so. Any pay-by-the-minute VM is fine for them.
thadk•1h ago
Ffmpeg.WASM is really good and might manage all these steps before even uploading.
DanielHB•1h ago
Not really related to the topic, but I recently set up a baby-cam with ffmpeg by just telling ffmpeg to stream to the broadcast address on my home network and I can now open the stream from VLC on any device in the household.

A very heavy-handed solution, but super simple. A single one-liner. Just thought to share a weird trick I found.

pocksuppet•14m ago
It could be a little more efficient to use a multicast address. Even if you don't have any special multicast routing set up, all the receiving machines should be able to discard the traffic a bit earlier in the pipeline.

Changes to OpenTTD Distribution on Steam

https://www.openttd.org/news/2026/03/14/steam-changes
74•canpan•1h ago•36 comments

Show HN: Han – A Korean programming language written in Rust

https://github.com/xodn348/han
60•xodn348•1h ago•21 comments

Ageless Linux. We are legally required to ask how old you are. We won't

https://agelesslinux.org/
49•nateb2022•1h ago•15 comments

Anthropic invests $100M into the Claude Partner Network

https://www.anthropic.com/news/claude-partner-network
39•gmays•2h ago•12 comments

Claude March 2026 usage promotion

https://support.claude.com/en/articles/14063676-claude-march-2026-usage-promotion
153•weldu•3h ago•99 comments

Marketing for Founders

https://github.com/EdoStra/Marketing-for-Founders
82•jimsojim•3h ago•22 comments

Fedora 44 on the Raspberry Pi 5

https://nullr0ute.com/2026/03/fedora-44-on-the-raspberry-pi-5/
42•jandeboevrie•3h ago•13 comments

Bumblebee queens breathe underwater to survive drowning

https://www.smithsonianmag.com/science-nature/bumblebee-queens-breathe-underwater-to-survive-drow...
16•1659447091•2h ago•3 comments

The Sound of Contamination: Headphones Contain Ing Hormone-Disrupting Chemicals

https://arnika.org/en/news/the-sound-of-contamination-all-analysed-headphones-on-the-central-euro...
4•microflash•27m ago•1 comments

Show HN: Ichinichi – One note per day, E2E encrypted, local-first

52•katspaugh•4h ago•20 comments

Library of Short Stories

https://www.libraryofshortstories.com/
21•debo_•3h ago•1 comments

A Recursive Algorithm to Render Signed Distance Fields

https://pointersgonewild.com/2026-03-06-a-recursive-algorithm-to-render-signed-distance-fields/
29•surprisetalk•3d ago•3 comments

Montana passes Right to Compute act (2025)

https://www.westernmt.news/2025/04/21/montana-leads-the-nation-with-groundbreaking-right-to-compu...
230•bilsbie•9h ago•198 comments

Offloading FFmpeg with Cloudflare

https://kentcdodds.com/blog/offloading-ffmpeg-with-cloudflare
15•heftykoo•4d ago•8 comments

Baochip-1x: What it is, why I'm doing it now and how it came about

https://www.crowdsupply.com/baochip/dabao/updates/what-it-is-why-im-doing-it-now-and-how-it-came-...
258•timhh•3d ago•46 comments

CSMWrap: Legacy BIOS booting on UEFI-only systems via SeaBIOS

https://github.com/CSMWrap/CSMWrap
24•_joel•4d ago•3 comments

An ode to bzip

https://purplesyringa.moe/blog/an-ode-to-bzip/
80•signa11•7h ago•52 comments

Learning Creative Coding

https://stigmollerhansen.dk/resume/learning-creative-coding/
18•ammerfest•1h ago•3 comments

An interactive presentation about the Grammar of Graphic

https://timeplus-io.github.io/gg-vistral-introduction/
6•gangtao•3d ago•0 comments

Postgres with Builtin File Systems

https://db9.ai/
14•ngaut•2h ago•0 comments

Python: The Optimization Ladder

https://cemrehancavdar.com/2026/03/10/optimization-ladder/
249•Twirrim•4d ago•91 comments

Show HN: GitAgent – An open standard that turns any Git repo into an AI agent

https://www.gitagent.sh/
83•sivasurend•9h ago•11 comments

Sunsetting Jazzband

https://jazzband.co/news/2026/03/14/sunsetting-jazzband
123•mooreds•5h ago•40 comments

9 Mothers Defense (YC P26) Is Hiring in Austin

https://jobs.ashbyhq.com/9-mothers?utm_source=x8pZ4B3P3Q
1•ukd1•9h ago

Generalizing Knuth's Pseudocode Architecture From Algorithms to Knowledge

https://www.researchgate.net/publication/401189185_Towards_a_Generalization_of_Knuth%27s_Pseudoco...
25•isomorphist•3d ago•1 comments

Hostile Volume – A game about adjusting volume with intentionally bad UI

https://hostilevolume.com/
67•Velocifyer•4h ago•51 comments

XML is a cheap DSL

https://unplannedobsolescence.com/blog/xml-cheap-dsl/
229•y1n0•11h ago•235 comments

It's time to move your docs in the repo

https://www.dein.fr/posts/2026-03-13-its-time-to-move-your-docs-in-the-repo
85•gregdoesit•3h ago•57 comments

Megadev: A Development Kit for the Sega Mega Drive and Mega CD Hardware

https://github.com/drojaazu/megadev
116•XzetaU8•14h ago•7 comments

1M context is now generally available for Opus 4.6 and Sonnet 4.6

https://claude.com/blog/1m-context-ga
1098•meetpateltech•1d ago•472 comments