Why Video Uploads Fail in Production: Lessons From a Course Platform

Early in 2026 that was a recurring support ticket on Xperiencify, the gamified course platform we build and maintain for Murray Gray's team. Coaches upload their lessons, and the platform turns each file into streams at five resolutions, from 240p to 1080p.
The number that changed how we looked at it: in one week in January 2026, the pipeline logged 13 errors across roughly a thousand videos. Nine of those 13 were videos marked as stuck. Nothing had failed to encode. The system had lost track of them.
So this post is mostly not about ffmpeg. Video breaks in production at the handoffs.
How the pipeline works
The coach's browser uploads the file to S3. The API creates a record with a status. A background task starts a Kubernetes job, which downloads the file, cuts it into 30-second chunks, encodes the chunks in parallel, assembles HLS streams, uploads them back to S3 and sends the API a message saying it's done. The status changes only when that message arrives.
Every arrow in that paragraph is a place where a video can disappear.
Failure 1: "Processing" that never started
In January two coaches wrote in about six videos that had shown "processing" for between 4 and 28 hours. We checked each one. None of the files were in storage. No job had ever been created. The status said processing anyway.
The record had been created before anyone confirmed the upload finished. When the upload died, the database kept a video that didn't exist, in a state that promised someone was working on it.
The rule that fixes this is about order. A video isn't "processing" until storage confirms the file is there and a job exists for it. Until then it's "uploading", and an upload that never completes should turn into an error the coach can act on, not a spinner that lasts a day.
Failure 2: The worker died and nobody told the API
Because the status only moved when the job reported back, any job that died without reporting left its video in "processing" forever. Jobs die for dull reasons: a pod runs out of memory on a 4K file, or the cluster autoscaler evicts work from a node it wants to remove. Sometimes the job survives and only its last message gets lost.
The old safety net marked stuck videos as errors after 24 hours. That's a full day of a coach staring at a spinner before anyone, us included, knew something was wrong.
What replaced it:
- A watchdog runs every 5 minutes and checks that every video processing for more than 10 minutes has a live Kubernetes job. If it doesn't, or its pod has sat in Pending for over an hour, the job restarts. After 3 restarts the video is marked failed and we get an alert.
- The worker sends any unsent status message on its way out, even when it crashes.
- A lost "started" message no longer strands a video. The API recovers from the next message instead.
- Transcoding jobs are marked so the autoscaler won't evict them mid-encode.
- "Done" means the HLS playlist is actually in storage. The API checks before it changes the status.
None of this touches ffmpeg. All of it is bookkeeping, and it's where most of the "failures" were.
Find the weak handoffs in your video pipeline
Describe how uploads and processing work in your product. ChatGPT will walk each handoff and point out where a file can get stuck without anyone noticing.
“|”
Failure 3: The files people actually upload
Coaches don't upload test files. They upload whatever their phone or editing app produced, and some of it is odd.
Across more than 100,000 videos on the platform, MOV files failed 9.1% of the time and MP4 files 2.0% of the time. MOV is what iPhones and Macs produce, and it failed four and a half times as often. The most recent MOV failures split evenly between connection resets on large files and formats the old ffmpeg build couldn't handle.
The specific problems, each with its fix:
- No audio track. Some uploads have no sound at all, and at the time this was the most common real encoding error. The pipeline tried to extract audio anyway, and ffmpeg stopped with "Output file #0 does not contain any stream". Jobs now check for an audio stream first and build a video-only stream when there isn't one.
- A cover image inside the file. Some MP4s carry an embedded thumbnail. The splitter read it as a second video stream and crashed. It now selects real video streams only.
- 4K. The encode jobs had a 4 GiB memory limit, and 4K files needed more, so Kubernetes killed them partway. We raised their memory requests and limits and upgraded ffmpeg from 4.4.3 to 6.1 for better 4K support.
- Big files on a bad day. Large transfers between storage and the worker hit "connection reset by peer" about twice a week. Every transfer now retries with backoff instead of failing the job.
One more fix addressed waste rather than a failure. The split step re-encoded each whole video just to cut it into chunks, and then the transcode step encoded it again: two full encoding passes per video instead of one. Cutting with a stream copy removed the first pass.
And coaches now see which stage their video is in, with an estimate of the time left, instead of one word that might mean anything.
Failure 4: The upload itself
Everything above happens after the file lands in storage. Before that, a 2 GB video from a coach's home connection is one long HTTP request. If the Wi-Fi drops at 75%, the upload fails and the coach starts again from zero.
The fix is multipart upload straight to S3. The browser splits the file into parts and uploads each one with its own presigned URL. It retries only the part that failed, and after a dropped connection or a page reload it resumes from the last completed part. Your API never touches the bytes. It only starts the upload and confirms it at the end, which is also the moment the record can honestly say the file exists.
The same shape at Oria
Oria is a different product with the same weak spots: long audio and video recorded on phones, sent over mobile connections, then transcribed. When we took over its AI-built codebase, uploads and transcription were one of the six things broken, and we rebuilt that pipeline. Different stack, same handoffs: phone to storage, storage to a job, job to the database, database to a screen someone can read.
Getting support tickets about uploads stuck on "processing"?
We audit video and audio pipelines end to end, from the upload to the cluster underneath. Flat price, one senior engineer, working in your repo and your AWS account. Send your email and we'll set up a 30-minute call within 24 hours.
The seven-question check
Two or more "no" or "not sure" answers mean your users are finding pipeline failures before you do.
- Do you know what happens to a 2 GB iPhone video when the upload drops at 90%?
- Is it impossible for a record to say "processing" before the file is confirmed in storage?
- If a worker dies mid-job, does the job restart, or someone find out, within minutes?
- Do you probe each file (streams, codec, resolution, duration) before processing it?
- Are processing jobs sized for the largest file you accept, and protected from autoscaler eviction?
- Does the user see a real stage and an estimate, or a spinner?
- Do you know your failure rate by file format?
Related reading
- We inherited an AI-generated codebase. Here is what we found: Oria's broken uploads and transcription, among five other findings
- We cut an AWS bill without rewriting the product: the same platform, from the cost side
- How we stopped clients complaining "site is down again" with AWS, Kubernetes and ArgoCD: the cluster this pipeline runs on
The service: Cloud Engineering. The client: Xperiencify.
Enjoyed this article? Share it with others
Related Posts

Your RDS Bill Is High. The Database May Not Be the Problem
The RDS line is the one nobody wants to touch, so teams leave it alone or downsize it blind. Split it first: instance, storage, IOPS, backups, support fees. Each part points to a different cause, and most causes live in your code, not in the instance class.

We Cut an AWS Bill Without Rewriting the Product
Xperiencify's AWS bill went from $10,000 to $2,000 a month in 14 days. Nothing was migrated and nothing was rewritten. We removed what nobody used and made the database do less work. Here is the method and the checklist we use.

How We Stopped Clients Complaining Site is Down Again with AWS Kubernetes and ArgoCD
Tired of clients writing site is down again? We fixed this for SaaS teams with Gitops + AWS + Kubernetes + ArgoCD = 99.99% uptime and an AWS bill cut from $10,000 to $2,000 a month.