FFmpeg and VLC are legendary open-source projects built by volunteers that power billions of devices worldwide. Jean-Baptiste Kempf (VLC president) and Kieran Kunhya (FFmpeg contributor) discuss how handwritten assembly, ruthless optimization, and a relentless focus on quality enable technologies most people never see but use every day—from YouTube to Mars rovers.
The Philosophy Behind VLC: Play Anything, Always
In 2001, a small team at École Centrale Paris released VLC to the world. Jean-Baptiste Kempf wasn't one of the original creators, but he became its steward in 2003, transforming a student project into software downloaded over 6.5 billion times. The philosophy is deceptively simple: make every file playable, no matter how broken or obscure. This ethos traces back to VLC's origins as a client for streaming video over unreliable UDP networks in the late 1990s. When packets drop or files corrupt, most players crash. VLC keeps going.
The project emerged from an unusual freedom: École Centrale Paris sat on a student-run campus where undergrads controlled everything from supermarkets to networking infrastructure. In the mid-1990s, they built Network 2000 to stream satellite TV across campus using ATM networks at 155 megabits per second—among the fastest in Europe at the time. When two students decided to open-source the decoder, they created VideoLAN. The cone logo, now iconic, was chosen for being weird and memorable. Twenty-five percent of visitors to VLC's website search for "cone player."
Kempf's decision to keep VLC ad-free despite offers worth tens of millions defines the project's integrity. He turned down shady toolbar bundles and spyware deals repeatedly. "I need to go to bed at night and be happy about what I've done," he says. When Netflix proposed integration, that might have changed things—but only legitimate companies ever approached him with legitimate offers. The rest were parasites. By rejecting short-term money, Kempf ensured VLC's longevity. Today, it runs on everything from Windows XP to the latest macOS, supports obscure formats like DVD-Audio and GoToMeeting codecs, and decodes video no other player will touch. That trustworthiness is priceless.
FFmpeg: The Invisible Backbone of the Internet
FFmpeg is the invisible workhorse of modern video. If you've watched YouTube, Netflix, Chrome, or used OBS to stream, you've relied on it. It's a Swiss Army knife: a collection of command-line tools and libraries that decode, encode, transcode, filter, and stream nearly any audio or video format ever created. Fabrice Bellard started it in 2000. Michael Niedermayer carried it through the 2000s, exhaustively supporting every weird variant of DivX, Xvid, Windows Media, and RealMedia. At the time, you needed separate bloated players for each format, often bundled with spyware. FFmpeg changed that.
The 2010s brought HD video and H.264. Reverse engineers like Kostya Shishkov and Paul Mahol did Sisyphean work, decoding proprietary blobs—20-megabyte binaries that could take months to crack. Shishkov once reverse-engineered GoToMeeting's codec by analyzing disassembled x86 instructions, spotting patterns like discrete cosine transforms buried in the machine code. He called binaries "binary specifications" and treated them like puzzles. The result: FFmpeg now supports hundreds of codecs, from obscure game formats to cutting-edge AV1.
Today, FFmpeg handles an estimated 90% of video processing workflows globally. It runs on billions of devices, from Mars rovers to Formula 1 paddocks. The Mars 2020 rover uses it to compress pictures before transmitting them back to Earth. SpaceX monitors launches with VLC. The European Space Agency, CERN's Large Hadron Collider, and countless other institutions depend on it. Yet it's maintained by 10 to 15 core volunteers. The community is meritocratic to a fault: your code quality matters, not your credentials. As Kempf puts it, "Maybe you're a dog. I don't care. I need to look at your code."
Decoding Video: From Bits to Pixels
When you press play on a video, a cascade of invisible steps happens in milliseconds. First, FFmpeg or VLC reads the file's container—MP4, MKV, MOV—and separates (demuxes) it into tracks: video, audio, subtitles. Then it decodes each track. For video, this means reversing compression algorithms that squeezed raw pixels down by 100x to 1,000x. The codec might be H.264, AV1, or something more exotic. Modern codecs like AV1 aren't single algorithms—they're toolboxes, collections of coding tools selected dynamically based on content.
Video compression exploits redundancy. If a cloud appears in frame one, why send it again in frame two? Instead, codecs use motion compensation to predict the next frame from the previous one, transmitting only the differences (residuals). Intra-prediction handles spatial redundancy: if the top-left pixel is black, nearby pixels probably are too. Temporal prediction is more complex. I-frames are complete images. P-frames predict from previous frames. B-frames predict from both past and future frames, meaning decoding order differs from display order—a mind-bending optimization.
Everything happens in the frequency domain. Video is split into blocks, transformed using discrete cosine transforms (not quite Fourier transforms, but similar), and quantized to discard imperceptible details. The psychovisual trick: compression targets human perception, not mathematical perfection. Your eyes are less sensitive to high-frequency color changes than to brightness. So codecs downsample color (chroma subsampling) and prioritize luminance. The result: a 4K video that would take gigabytes as raw pixels fits in megabytes. Every cycle of the process is optimized, often in handwritten assembly, to decode 30 or 60 frames per second in real time.
The Art of Handwritten Assembly
Assembly is programming at the lowest level, one CPU instruction at a time. FFmpeg has 100,000 lines of it across all codecs. dav1d, the AV1 decoder built by VideoLAN, has 240,000 lines—79.9% assembly, 19.6% C. This isn't normal. Most developers assume modern compilers optimize C code well enough. They're wrong. Kieran Kunhya's team routinely achieves 10x to 62x speedups over compiler-generated code using handwritten SIMD (Single Instruction, Multiple Data) assembly.
SIMD lets one instruction operate on 16 elements simultaneously, perfect for video's pixel grids. But compilers struggle to auto-vectorize complex loops. They miss opportunities, generate suboptimal register allocations, and fail to exploit CPU quirks. Handwritten assembly abuses the machine. Developers use cryptography instructions for unrelated video tasks. They bypass OS calling conventions to save nanoseconds. Henrik Gramner knows x86 so deeply that Intel engineers defer to him. Martin Storsjö writes Arm assembly on his phone's keyboard while watching his kids play. These are the wizards keeping FFmpeg fast.
Why does this matter? FFmpeg runs on billions of CPUs nonstop. Every saved cycle multiplies across trillions of operations daily. When dav1d launched, experts said AV1 was too complex for software decoding—it required hardware. dav1d proved them wrong, decoding 720p on one or two cores. That unlocked AV1 on devices without hardware decoders, making YouTube's 50% AV1 adoption possible. Thirty percent of Netflix streams now use AV1, saving massive bandwidth. Without assembly, none of this works. As Moore's Law ends, optimization becomes survival. Kieran's lessons teach the craft to a new generation, passing the flame from blacksmith to apprentice.
The Security Engineers Debacle
In early 2024, Google deployed AI to find security vulnerabilities in open source projects, including FFmpeg. The results were well-intentioned but tone-deaf. They filed bug reports for obscure 1990s game codecs—issues that would never realistically be exploited—and gave volunteers 90 days to fix them before going public. Then they announced the achievement in the media before fixes were ready. The FFmpeg community erupted.
Kieran Kunhya's spicy tweets captured the frustration. FFmpeg is maintained by volunteers, yet trillion-dollar corporations expect free, urgent support. Microsoft Teams posted on a public bug tracker demanding priority fixes, name-dropping their visibility. Google's AI generated verbose, denial-of-service-style bug reports on edge cases. Meanwhile, a 16-year-old contributor, Ruikai Peng, quietly found and fixed a real issue in three days without drama. The security industry's culture of alarmism—marking everything "high priority," creating CVEs for non-issues—was exposed as self-serving theatrics.
The debacle had a silver lining. Donations to FFmpeg increased substantially. Google began sending patches alongside bug reports and offering rewards for fixes, not just discoveries. The community's visibility soared. On a deeper level, the episode highlighted a structural problem: open source infrastructure is treated like a vendor with SLAs, not a volunteer effort. Companies assume someone is paid to maintain it. They're not. JB maintains dozens of multimedia libraries because original maintainers burned out. The mental health toll on unpaid developers is real and unacknowledged.
FFmpeg's response was unapologetic: celebrate the work, demand respect, and refuse to be bullied. The project's ethos—excellence over noise—prevailed. As Kieran put it, "This is a guy's hobby project decoding Star Wars games. He didn't write crap code. It's an edge case to the 99.99999 percentile."
Open Source, Patents, and the Fight for Free Multimedia
Multimedia is a patent minefield. H.264's licensing was manageable, but H.265 (HEVC) became absurd. Multiple patent pools—MPEG LA, HEVC Advance, and independents like Nokia—demanded overlapping fees that could total hundreds of millions annually for a company like YouTube. Some fees were uncapped. HP recently removed HEVC support from Windows laptops because the cost was untenable. This patent chaos drove the creation of AV1.
The Alliance for Open Media (Google, Netflix, Amazon, Apple, Mozilla, VideoLAN) built AV1 as a royalty-free alternative. Unlike MPEG, where patents are off-topic, AOM checked patents during standardization. AV1 delivers 40% to 60% better compression than H.264 at equivalent quality, crucial as video resolution climbs from HD to 4K to 8K. YouTube now serves 50% of its streams in AV1; Netflix, 30%. The codec is ubiquitous. dav1d, the open-source decoder, made software playback feasible on devices without hardware support.
Patents aren't just expensive—they're philosophically wrong. JB argues you shouldn't be able to patent math and matrices. France rejects software patents, which is why VideoLAN operates there. If VLC paid every licensing fee, it would cost over €200 per user. That's absurd for free software. Europe's stance protects open source, though patent trolls still attack.
The next generation, AV2, offers another 30% improvement over AV1. H.266 (VVC) competes from the MPEG side, also 30% better than H.265. The cycle repeats: better compression, more patents, more pressure to go open. FFmpeg and VLC don't care. They implement everything, patents be damned. If a government demands backdoors, the answer is no. If the CIA asks (and they did, twice), the answer is hell no. Open source multimedia isn't just about technology—it's about freedom.
Kieran's New Frontier: Ultra-Low Latency with Kyber
Jean-Baptiste Kempf's new startup, Kyber, tackles a problem FFmpeg and VLC don't: real-time control of machines over the internet. Teleoperation of drones, robots, and remote vehicles demands latencies under 10 milliseconds—ideally four milliseconds, glass to glass. That's 240 Hz, insanely fast for video. Current remote systems hit seven milliseconds, but the NVIDIA encoder alone takes 3.5 milliseconds, and the Intel decoder adds two. To reach four, Kempf needs custom codecs and ruthless optimization.
Kyber's secret sauce is synchronization. Robots have multiple cameras, GPS, and sensors. Their clocks drift. When training AI models on recorded data, every frame must align precisely—otherwise, predictions fail. Kyber timestamps everything, accounting for clock drift to ensure coherence. It also uses forward error correction: over-transmit data by a few percent so lost packets can be reconstructed without retransmission, avoiding latency spikes. The protocol runs on QUIC over UDP, dodging TCP's head-of-line blocking.
Use cases abound. Humanoid robots need teleoperation for training. Waymo's self-driving cars sometimes require human intervention—someone remotely takes the wheel. Surgeons operate robots from afar. Drones fly in war zones. Industrial machines work in dangerous environments. The goal: make distance disappear. Kyber's demo had a rover controlled from France during CES in Las Vegas, streaming video over the internet with minimal lag.
Like FFmpeg and VLC, Kyber is open source, dual-licensed under AGPL and commercial terms. Hobbyists and small projects use it free. Large companies pay for support and IP. Kempf is building 3D-printed robots—rovers, drones, sailboats—to test the tech. He's not trying to make the best robots; he's enabling everyone to make robots that work. It's the same philosophy that made VLC and FFmpeg successful: democratize the hard stuff, make excellence accessible.
Keep these ideas with you.
- Why VLC Plays Literally Everything
VLC was born from a 1990s student project to stream satellite TV over a campus network. UDP packets drop, files corrupt, formats mutate. VLC's DNA is resilience: it parses broken files, ignores bad metadata, and keeps playing. Most players trust the file extension—VLC doesn't. It probes the actual data. This paranoia saved users in the Napster era when pirated files were often damaged. Today, it's why VLC runs on everything from VHS capture cards to Mars rovers. The philosophy: don't make assumptions, handle chaos gracefully.
- FFmpeg's 10x to 62x Assembly Speedup
Modern compilers auto-vectorize C code, but they miss optimizations humans see. FFmpeg's developers write SIMD assembly by hand, processing 16 pixels per instruction instead of one. They bypass OS calling conventions to save nanoseconds. They repurpose cryptography instructions for video tasks. Henrik Gramner knows x86 better than Intel engineers. dav1d, the AV1 decoder, is 79.9% assembly—240,000 lines. The result: 62x faster than C in some cases. Why? FFmpeg runs on billions of CPUs nonstop. Every saved cycle multiplies across trillions of operations daily. As Moore's Law ends, optimization isn't optional—it's survival.
- How Video Compression Exploits Your Brain
Your eyes see brightness better than color, so codecs downsample chroma (color) without you noticing. They split video into blocks, transform it into the frequency domain, and quantize high-frequency details you won't miss. I-frames are complete images. P-frames predict from the past. B-frames predict from both past and future—meaning decoding order differs from display order. The goal: compress raw 4K video 100x to 1,000x while staying perceptually identical. It's not math—it's psychology. Engineers study how your retina works, then exploit its quirks. Every codec mimics human perception.
- The Open Source Maintainer Burnout Crisis
FFmpeg has 10 to 15 core maintainers. VLC has five. XZ, which is in more installations than both, had one guy—until attackers harassed him into handing over commit access. Open source infrastructure holds up the internet, but companies treat it like a vendor with SLAs. Microsoft Teams demands priority fixes on a public bug tracker. Google's AI floods projects with verbose reports on edge cases. Maintainers get death threats (JB got one for dropping PowerPC support). The mental toll is invisible. Donations help, but respect matters more. Celebrate the people. Their work is why your world runs.
- Why AV1 Exists: The Patent Apocalypse
H.264 licensing was sane. H.265 (HEVC) wasn't. Multiple patent pools demanded overlapping fees—uncapped, totaling hundreds of millions yearly for YouTube. HP dropped HEVC from laptops because it was too expensive. So Google, Netflix, Amazon, Apple, Mozilla, and VideoLAN built AV1: royalty-free, 40-60% better compression than H.264. Patent checks happened during standardization, not after. AV2 is next, another 30% better. The cycle: better codecs, more patents, more pressure to go open. FFmpeg and VLC don't care about patents. They implement everything. If a government demands backdoors, the answer is hell no. Open source multimedia is freedom.
- The Lost Art of Reverse Engineering Codecs
In the 2000s, playing a GoToMeeting or RealMedia file meant downloading shady codec packs full of spyware. FFmpeg changed that. Reverse engineers like Kostya Shishkov cracked 20-megabyte proprietary binaries—months of work—by disassembling x86 instructions and spotting patterns: discrete cosine transforms, entropy coding, motion compensation. They dumped YUV frames from black-box modules, hooked into VMs, and debugged instruction by instruction. Shishkov called binaries "binary specifications." The result: FFmpeg now decodes hundreds of codecs, from obscure game formats to GoToMeeting 4. Without this work, your grandma's GoToMeeting recordings would be unplayable forever.
Turn the ideas into action.
For Open Source Contributors
Donate financially, but more importantly, celebrate the people. Tweet your appreciation, write blog posts, recommend projects publicly. Maintainers rarely hear thank-yous but drown in complaints. Your gratitude fuels them more than money. If you use FFmpeg or VLC, tell them—they're probably in your GitHub stars already.
For Aspiring Low-Level Developers
Learn assembly, even if you never write it professionally. Understanding CPU architecture—registers, pipelining, cache—makes you a better programmer in any language. Start with Kieran's asm-lessons repo: it teaches SIMD the FFmpeg way, skipping academic fluff. High schoolers contribute to FFmpeg after studying it. You can too.
For Startups Building Media Tools
Don't reinvent codecs—use FFmpeg. Build abstractions that make it easier, but respect its power. If you need ultra-low latency or real-time control, look at Kyber. Jean-Baptiste's team solved problems most devs don't know exist: clock drift, forward error correction, sub-10ms glass-to-glass latency. License it or learn from it.
For Companies Using Open Source
Contribute patches, not just bug reports. If your trillion-dollar product runs on FFmpeg, fund it properly—not a one-time $5,000 payment. Hire maintainers. Sponsor features. Open source isn't free; it's volunteer labor you're exploiting. If Google and Microsoft can't figure this out, they deserve the dragging they get on X.
The complete summary: 7 chapters, 6 takeaways and 4 actionable insights.
Summarised with AI by Bite, an AI YouTube video summarizer and podcast summarizer. Timestamps keep the source close; check important details against the original.
Original video on YouTube




