#496 – FFmpeg: The Incredible Technology Behind Video on the Internet
May 7, 2026 · 4h 24m · YouTube
Ads
7
Brands
6
Inserted
0
Transcript
44k words
Ads in this episode
EP · Lex Fridman Podcast · #496 – FFmpeg: The Incredible Technology Behind Video on the Internet4:23:41
3:00host read
BetterHelp
pre-roll
3:45host read
Laritan
pre-roll
6:20host read
Blitzy
pre-roll
6:32host read
BetterHelp
pre-roll
| At | Brand | Type | Placement | Promo code | URL | Found by |
|---|---|---|---|---|---|---|
| 3:00–3:44 | BetterHelp | host readaudio feed only | pre-roll | trigger | ||
| 3:45–4:56 | Laritan | host readaudio feed only | pre-roll | trigger | ||
| 6:20–6:31 | Blitzy | host readaudio feed only | pre-roll | trigger | ||
| 6:32–7:40 | BetterHelp | host readaudio feed only | pre-roll | trigger | ||
| 9:03–10:16 | LMNT | host readaudio feed only | pre-roll | trigger | ||
| 1:04:19–1:05:00 | Ring | host readaudio + YouTube | mid-roll | trigger | ||
| 2:23:51–2:24:00 | Lexfriedman | host readaudio + YouTube | mid-roll | trigger |
Promo codes and URLs for 6 ads are available to people on the waitlist.
Transcript
asr · 43,924 words · docs
0:00The following is a conversation all about FFmpeg and VLC with Jean-Baptiste Kempf and Karen Kunya.
0:08FFmpeg is an open source software system that is the invisible backbone behind YouTube, Netflix, Chrome, VLC, Discord, and basically every platform that touches video or audio on the internet.
0:24It can decode, encode, transcode, stream, and play almost any video or audio format ever created.
0:33To me, it is one of the most incredible software systems ever developed, and it's all done by volunteers.
0:42VLC is also a legendary piece of software.
0:45It is an open source media player that plays basically anything you throw at it, any format, any platform, no ads, no tracking.
0:54It has been downloaded over 6 billion times.
0:57And again, for me, it has been one of my favorite pieces of software ever with the most legendary logo, which I, of course, had to honor in this conversation by wearing the VLC Traffic Cone hat the whole time.
1:14So again, above all else, thank you to the incredible volunteer engineers who put their heart and soul into this code that has been used and loved by billions of people.
1:25Thank you.
1:26And about the two great engineers and human beings I'm talking to in this episode, John Baptiste is the president of Videolan and is a key figure behind VLC and FFmpeg.
1:40Kieran is a longtime codec engineer, FFmpeg contributor, and the man behind the now infamous FFmpeg account on TwitterX that I recommend everybody follow for the memes and for the unapologetic celebration of open source and great low-level software engineering.
2:03Let me also say that it's inspiring and humbling that so much of modern civilization rests on software built by people who are not chasing fame or money, but are obsessed with the craft of engineering.
2:18We live in a world where billions of people consume video every day without ever thinking about the invisible machinery underneath it.
2:25But that machinery matters.
2:27Open source infrastructure matters.
2:29It is one of the great examples of human beings quietly collaborating across borders to build something useful, durable, and elegant for the rest of us.
2:40And so this conversation is not just about codecs and media pipelines.
2:46It is also about the deeper spirit of engineering and generosity that makes projects like FFmpeg possible.
2:54Again, I can never say it enough.
2:57Thank you.
Ad · BetterHelp
Ad · Laritan
4:57This episode is also brought to you by Blitzy, an AI-powered autonomous software development platform.
5:03Build for large, complex code bases.
5:07Huge number of cooperative agents, really optimized for huge code bases.
5:12Optimized for scaling speed when you're talking about a very large number of agents working together.
5:20And that's the big interesting question.
5:23When you have a huge number of agents, a huge company, huge code base, how do you then seen at the big picture code base level have the growth and development, the evolution of that code base where a very large percentage of that code base is continuously worked on autonomously?
5:44The question is when you have a large code base that already delivers value, that already sells stuff, that already has huge number of customers, how do you then use agentic engineering to continue adding features, continue improving, continuing the usual kind of development with the testing, with the security, all that kind of stuff?
6:03How do you do that without messing stuff up, without filling up your code base with AI slop, and nevertheless, doing it so for the most part autonomously?
6:13Not fully autonomously, semi-autonomously, but majority of the code is written autonomously.
6:19That's what Blitzy specializes in.
6:20The future of autonomous software development is here.
Ad · Blitzy
Ad · BetterHelp
7:41This episode is also brought to you by Finn, the number one AI agent for customer service.
7:48As I mentioned already about humans, humans are complicated.
7:51And customer service is ultimately about looking at each individual human and really listening.
7:57That's what I try to do with the podcast, to truly listen to each individual person, whether we're talking about a super technical topic or we're talking about the big questions of the human condition.
8:12And sometimes when you're talking about the details of the technical topic, underneath there, you can feel the presence of the big picture questions of the human condition.
8:22All of those complexities peak out of the shallow surface interactions that at first glance you might think customer service interaction is.
8:32But really, we're trying to solve the big problems of the human condition and specific to that individual person.
8:39So customer service is a really hard problem, but it's a really important one.
8:43And that's what Finn specializes in, how to leverage, how to use, how to utilize AI in the task of customer service.
8:52Go to fin.ai slash lex to learn more about transforming your customer service and scaling your support team.
8:59That's fin.ai slash lex.
Ad · LMNT
10:16To support it, please check out our sponsors in the description, where you can also find links to contact me, ask questions, give feedback, and so on.
10:26And now, dear friends, here's Jean-Baptiste Kempf and Kieran Clinio.
10:48So the legend goes VLC can open everything.
10:52What's the weirdest thing that you know that it can open?
10:55You know, there is a ton of people who are using VLC to record VHS videos, right?
11:00Like, it's just like you plug it with a capture card and you can basically record VHS video.
11:05Well, how does that work?
11:06Basically, it's, you know, those type of capture card where you can put a Peritel in or RGA and you put that.
11:13And actually, VLC can play those type of cards.
11:15And there is a module which allows to control directly those VCR camcorders.
11:20We support DVD audios lately, right?
11:22We spend the summer working on DVD audio support.
11:26And like, there is no one's making any DV audio support.
11:30There is a custom encryption schemes.
11:32What about Lucasfilm?
11:33Oh, yeah.
11:33And there is, of course, all the weird code support, game codecs supported by FFmpeg.
11:38The one Star Wars video game, the first 10-second opening sequence, someone has gone and implemented that and make sure that's bit exact on one disk that existed at one time of one little sequence in the game.
11:49And then finally, there was a...
11:51At one video land conference, we made a competition to make the weirdest and most horrible file ever and see if VLC could play it.
11:59What did it end up being?
12:00What's the file?
12:01It was an MKV file made by Derek, which each of the frame was changing resolution, aspect ratio, rotation, and it was like...
12:12Did it work?
12:13Yes.
12:14And there was another one where the whole video was actually animated subtitles, right?
12:20SSA, right?
12:20So this one was...
12:23So each frame was a black frame, but on top of that, there was a subtitle that was animated for each frame.
12:29There was a file that's a valid zip and a valid MP3 at the same time or something like that.
12:33So yeah, we'd made a competition of stupid files.
12:36And it worked.
12:37It opened all of the stupid files.
12:40By the way, for people who are not familiar, I am wearing a hat.
12:44Would it be fair to say this is the best, worst logo of all time, the cone?
12:49Yeah, by far, right?
12:50The logo of VLC is so iconic, right?
12:53Like we are a team with a small number of people, and the icon is known everywhere.
12:58I go to middle of nowhere in India or in China, people know the cone, right?
13:02And 25% of the website traffic that comes to our main website is cone player, right?
13:09So many people don't know VLC, right?
13:11They know the cone player.
13:12That's the thing that Google force, cone player.
13:14Yeah, they go on Google and they put cone player and they download VLC, right?
13:18So that's iconic.
13:19And once we tried to change it as a joke, right?
13:22We said it was going to be a type of caterpillar construction.
13:28And we said that during April 1st.
13:30We had around 10,000 emails saying, no, don't change the logo and so on, right?
13:34So it's so iconic, right?
13:36It's so distinctive, right?
13:38If you want to do a video player, you're going to put a play button on the TV, right?
13:41And that's a YouTube YouTube logo, right?
13:43It's an original.
13:45This one is orange, right?
13:46It's very bright.
13:48And it's weird.
13:50And it's ridiculous and it's absurd and it's hilarious.
13:52It becomes meme and meme becomes culture.
13:54And you keep it and you know about it.
13:56And you know that in 20 years, like you still have going to have the cones and remember, oh yeah, that was a video player.
14:02Yeah.
14:02And we'll talk about, you know, the mission of FFmpeg being a kind of the archival aspect of it.
14:09So you can think about a thousand years from now, we'll have all these videos that only VLC can open.
14:14Human civilization has already destroyed itself multiple times.
14:18And the only thing that will remain is this, like, you know, the cockroaches will be crawling around, and it'll be the VLC logo with some of the archival footage the VLC can open.
14:27And the aliens will show up and they'll press play and they'll get to see.
14:31Really hope so, right?
14:32But there's also so many memes where people say, well, I'm sure I can put a pancake inside my DVD drive and VLC will play it.
14:38Can they?
14:39No, we tried.
14:39It doesn't.
14:41But we actually have a video of us trying that.
14:43Didn't work.
14:44A codec for physical reality.
14:46I don't know what that would even look like.
14:47There was a guy who did that, right?
14:49He printed a small cone, right?
14:51Like the ones we distribute as goodies.
14:53And inside he put an RFID chip, which was his way of playing a movie, right?
14:59And so he put this on the RFID player.
15:02And when he put that, it was playing like the Last Star Wars and so on.
15:05So instead of having like DVD boxes, he had like VLC cones all around and he plugged that.
15:10And that was like physical objects.
15:12So the thing that we're talking about is everything around video codecs, video encoding, video decoding, video streaming, video player client that I'm wearing on my head.
15:23The entire ecosystem enabling free media.
15:26We'll talk about FFmpeg.
15:27We'll talk about Video LAN, VLC, and all the other incredible video technology that is used probably by billions of people.
15:36So JB, you're the lead developer behind the legendary VLC player.
15:42Kieran, amongst many other things, you're the lead developer behind the legendary FFmpeg handle on Twitter.
15:49And both of you have spicy opinions, I would say.
15:53So today we want to talk about FFmpeg and VLC.
15:58For context, for people who are not aware, and I'm sure basically everybody listening to this have used these two technologies probably regularly without knowing it.
16:10So FFmpeg underlies basically most video on the internet, including YouTube, Netflix, Chrome, Firefox, of course, VLC, and countless other video platforms.
16:21It is estimated that over 90% of video processing workflows online and offline involve FFmpeg.
16:28VLC has been downloaded at least 6.5 billion times.
16:35But likely that number, because it's impossible to really count the number, is much higher than that.
16:41Virtually any operating system supports virtually any media format.
16:48The limitation being it can't open pancakes.
16:51So can we just lay out some of the basics to help people understand what's involved in all of this?
16:58So when we press play on a video player like VLC, what happens?
17:05How does it go from the file or the stream to the pixels on the screen and the sound on the speaker?
17:11What are the big stages to be aware of?
17:14So there are several stages, right?
17:16The first stage is to get from an address, right, which is the type of URL, to give you a byte of streams, right?
17:24So this would be, for example, HTTP, file, DVD, right, to give the pass to the media and give you a stream of data.
17:32The stream needs to be cut up by what's known as the container, the demultiplexer or demux.
17:37We'll try and keep the jargon light throughout this, but it needs to go and start demarcating video and audio frames.
17:43So it just gets data from the operating system, blocks at a time, and needs to start cutting these frames up into compressed data.
17:50It then needs to start doing simple parsing of the video frames, mainly to figure out whether that codec is GPU decodable or needs to fall back to software.
18:00We're very sort of used to assuming the GPU will play all of these things.
18:04There'll be hardware acceleration.
18:06I think it's up to 45% of files are not GPU decodable.
18:09So these need to be probed.
18:11They need to be detected.
18:12There can be variants of a given codec, some of which are decodable on the GPU.
18:17Different vendors of GPU might have different capabilities.
18:20So those need to be detected.
18:21So if it's GPU capable, you pass it through to the GPU black box.
18:25So now, if there's a software fallback, that means in the beginning is to first do de-entropy coding.
18:32So removing the mathematical coding of the bitstream.
18:35So this uses capabilities such as Hoffman coding or arithmetic coding to actually decompress the mathematical layer of the bitstream.
18:43We then need to start reading the syntax elements for intra-prediction.
18:47So intra-prediction are like still images of the video.
18:50So your iframes.
18:52So this works and operates in the spatial domain.
18:55So you do your intra-prediction in the spatial domain.
18:57You have a residual because your prediction isn't quite matching that of reality.
19:01So you've made a prediction, but then there's a little bit left, and that's what's known as the residual.
19:06This is stored in the frequency domain, and these are quantized to decompound their space.
19:12We then need to do the inverse transform to bring them back to the spatial domain and apply these residuals.
19:18So a lot of the process of the decoding is this thing is compressed.
19:22Yes.
19:23Yes.
19:23And you have to predict the highest quality thing that's supposed to go there.
19:28Iframe is the best representation you have spatially.
19:31Yes.
19:33And then there's a lot of temporal compression that can happen depending on the codec.
19:37And then you're predicting.
19:39You're predicting what the reality that was captured in this ROS form.
19:42Yeah, because what people don't realize is that the compression on video and audio is 100 times, right?
19:50Like people don't realize how compressed we do, right?
19:53For audio, you move, you compress by when you go from normal audio to MP3, you compress by 10 times, right?
20:00When you move to video, you need one, 200 times, right?
20:04So you need to remove all the details, but that you don't care about because all the compression that we do, and that's very important, people forget about that, is to be viewed by humans, right?
20:15So all the codecs either for audio mimic basically how your ear works, right?
20:20And a lot of things about like the response on the ear, and same for your eyes, right?
20:26And so for example, on video, we don't work on RGB, right?
20:30Everyone expects to work on RGB.
20:32We don't, right?
20:33We move to YUV, which is basically one is luminance, brightness, and the other are colors.
20:39And this matches your eyes, where inside your eyes, you have the cones and the buttons, right?
20:43Some of them look on brightness and more on the other on colors, right?
20:46So we need to compress a lot.
20:48And so we need to degrade, but in order to degrade, we need to match the human perception.
20:54And this is why it's so difficult.
20:56And then we need to use the maximum power, mathematical power, very complex technologies.
21:02We move to the frankency domain, as Kieran said.
21:04We do a ton of decontressing in order to get the best compression, but it still looks good.
21:11You're trying to compress in order to maximize the highest quality thing for human perception.
21:17That is correct.
21:18And that is correct.
21:19And this is very important, right?
21:20Compression is not like a zip, right?
21:22A zip, you have data in, you get data out, right?
21:26And you try with all the zip compression to arrive with the limit.
21:30Here, we are degrading the signal, right?
21:33And so we need to degrade both the audio and the video signal in the best way possible.
21:38And we can do that, but it involves first a lot of theoretical knowledge about how it works, the eye works, but a lot of mathematical change, a lot of mathematical tricks, right?
21:49For example, when you move to RGB and you go to YUV, for example, what we do very often is that we scale down the resolution of the color compared to the brightness.
22:01And most of the time, and just this, without compression, it divides the size by two, but most people don't see it, right?
22:10And so on and so on, right?
22:11And then you go to very complex mathematical change.
22:15So of course, Fourier's transform, which de facto are not Fourier transform.
22:19They are like discrete cosinus transform, but that's the same idea.
22:23So frequency domain.
22:24We split the video by blocks, right?
22:26So that's why when it's wrongly decoded, you see those blocks and badly encoded, you see those blocks, and so on, to arrive to compression states that are insanely high, right?
22:37And each generation of the codec is like 30% less for the same quality, right?
22:43And this requires amount of power, of computational power that are huge.
22:48No, no, but you should elaborate.
22:50It's 30% better, but an order of magnitude, perhaps even two orders of magnitude, more compression power.
22:57That's the big difference.
22:58What do you mean by compression power?
23:00Sorry, CPU power to achieve that level of compression.
23:02So you have to be able to leverage the CPU and sometimes GPU, like you mentioned.
23:07And then we should mention that a lot of this programming is done at the lowest possible stack, whether it's C and of course, as the legendary Twitter handle re-emphasizes over and over a lot of assembly.
23:22So what happens is globally is that you have an address, right, which gives you, with the operating system, a stream of bytes, a stream of data, right?
23:30And this is the first step.
23:31And the second step arises with demuxing, where you're going to separate audio, video, subtitle in type of different tracks.
23:38And then on each of those tracks, you're going to decompress them, decode them, either audio with an audio codec, video to video code, and subtitle to subtitle codec.
23:47And once you've decompressed those type of things, you have raw images, raw, and then you're going to talk with your graphic card in your screen and display that.
23:55And same for the audio, you're going to talk to your audio card, which then is going to go in analog to your audio speakers.
24:03And everything we've just said in the past couple of minutes, every sentence is someone's lifetime's work.
24:08There are books about every sentence.
24:10So the level of complexity in many cases is inordinate.
24:15Every sentence has thousands of people working on this in the industry as a whole, books written about it.
24:23So there's a lot of detail.
24:25There's a lot of subtleties.
24:27There's a lot of both academic and practical realities, both of which matter.
24:33We mentioned Kodaks, but I don't think you mentioned containers.
24:37So what's the actual containers for some of the stuff we're talking about?
24:43So people are familiar with MP4, MOV, MKV.
24:49So anyway, what are containers versus the thing that goes inside?
24:54So the container is what we call also the MUXR, right?
24:56When I say demuxing, it means decontainizing, right?
24:59So actually, if you look, MUX, multiplexer, and demultiplexer, right?
25:05Mux and DMUX are those and same.
25:07Codec is actually coder decoder.
25:11And so containers are this collection of multiple tracks.
25:17So it's what normal people call the file format, but it's a bit more subtle than that.
25:23But the most known one, of course, is MP4, but when I started, it was AVI, right?
25:28IVI was the video format from Microsoft.
25:32And Move, MOV, which became MP4, was a format from Apple.
25:37In the open source community, one of the persons that is still active on VideoLAN is called Steve Lawman started this Matroska format, which is a bit more complex and more feature-proof.
25:49And there are so many others.
25:51So, I mean, it's a pretty common thing, and maybe it'll even happen in this conversation, that people confuse container and the codec, right?
25:59So confuse MP4 and H.264, for example.
26:02Is that a horrible violation?
26:04No, it's not, because technically, the name of H.264 is MPEG-4 part 10, because MPEG-4 is actually a meta-specification which has several things in it, right?
26:18There is the part two.
26:20So there is like audio codecs, right?
26:22AEC, the factor is MP4 audio something.
26:25There is actually several video codecs, right, inside the MPEG-4 specification.
26:30One of them is MPEG-4 Part 10 called also AVC, called also H.264, right?
26:36So it's completely the fault of the industry to make things difficult to understand.
26:42So that's very difficult so that people then don't understand why sometimes you talk about MPEG-4 Part 10, where you mean H.264, and why it's not MP4.
26:51So you can technically shove in all kinds of different codec inside containers and horror busso.
26:57But broadly speaking, though, MP4 is understood to generally be H.264 plus AAC audio.
27:0499% of the time, that's that, and that the rest are de minimis, the small effects, you know, edge effects really compared to that.
27:11So it's not the end of the world.
27:13There are people who do get annoyed by that.
27:16But also in reality, something like VLC, just to point out, the file may say .mp4, but it may be something completely different.
27:23And that's one of the challenges both FFmpeg and VLC have is the real world is a completely different place to a three-letter file format.
27:30And this is very important to say, right?
27:32Like, for example, in VLC and FFmpeg, we discard the file format, right?
27:38We look into the file to understand what's in it.
27:40Because so many people, like, they say, oh, it's a video, it must be MP4, but technically it's an MOV or maybe it's a MKV, right?
27:48So we analyze in real time everything that we have and we don't trust the format.
27:55So what information does the fact that it's .mp4 give you?
27:58It helps, right?
27:59It gives you a hint, right?
28:01Just like, oh, it's finished by .mp4.
28:04I will start first by opening, probing it with the MP4 container demuxer to see, well, it should be that.
28:12But I don't trust it.
28:13And if I'm lost, I say, okay, maybe I'm going to try it.
28:16So it bumps the priority of the module.
28:19So how do you get to, just to take a bit of a tangent there, you know, the dumb thing is if you try the MP4, but it turns out it's a different codec than you would have expected, most players just break there.
28:34Yes.
28:35Yes.
28:35And so how do you not break?
28:37There's just philosophically, I'm sure there's a bunch of stumbling blocks along the way where it's easy to just break and stop, freak out.
28:45That's it.
28:46How does VLC not?
28:47This is why VLC is popular.
28:50But the reason is because actually VLC is just a client of a streaming solution called VideoLAN from a very long time ago, from the late 90s.
29:01And when you're playing video, which are on UDP, right, in network, they might be damaged, right?
29:07So you don't trust your inputs.
29:09And this is very important in today's security is that you don't trust your inputs.
29:12So everything in VLC is prepared to work with broken files.
29:19And it's a philosophical idea from the beginning.
29:22And everything is engineered into that.
29:25And it's a culture, right?
29:27And so, for example, and VLC became very popular on that because a long time ago when people were pirating content, which they do a lot less today.
29:36And none of us ever have.
29:37No, of course not.
29:39The metadata to play some files like AVI is at the end of the file, right?
29:45And when you're downloading, you don't have that, right?
29:47So VLC was just like, hey, this file is broken, but I'm still going to try to interpret it.
29:52And this was very useful.
29:54We hinted at the awesomeness of the various different stages.
29:58We hinted at the awesomeness of codecs, the depth and the richness and the complexity of everything involved there.
30:04Let's just try to define what is a video codec?
30:08What's involved there?
30:10What does it mean to compress something?
30:11You already started to hint at it, but can we elaborate a little bit more?
30:14So there's a huge amount of redundancy in any video, both spatial and temporal.
30:20And the point of any video codec is to remove this redundant data, use mathematical properties as part of this reduction process.
30:27So more often than not, using several orders of magnitude more compute to compress, because that's more costly versus both costly both financially and in CPU resources, versus the decompression.
30:38So it's asymmetric in that respect.
30:40Often the case because compression is done once, but there could be lots of viewers of another file.
30:46So to take that information and compress it by 100x, 200x, removing redundant information and using mathematical properties to make that small, but also have properties such as error resilience.
30:58So as JB suggested, VLC in the beginning was used to play UDP network feeds, and UDP network feeds lose packets.
31:06And so some of the design goals of a codec is also to be recoverable.
31:11You need to actually be able to join a stream.
31:13It's not necessarily a file.
31:14You need to join, get on the decoding process, and start decoding.
31:19And to give a more image to people who are not familiar, right?
31:24Like when you're going to see any type of movie, right, you're going to see the camera is going to pan and travel.
31:31And you realize that, for example, all the background is the same for like a minute, right, or 30 seconds.
31:37So you can reuse the cloud that you see on the background.
31:41You can reuse that from a frame to another.
31:44And so it gets the more memory you have, the more power, the more comparisons you can make.
31:51And so the more compressed you can be.
31:53And most of the modern codecs are basically doing that.
31:57So just to make it even more explicit.
32:00So what is video?
32:01Video is a bunch of pixels off an RGB.
32:07You have three values and you have a grid of pixels and you have, let's say, 24 or 30 or 60 frames a second.
32:17And you just have all these pixels repeating and showing different stuff 30 times a second.
32:23And so the question, the philosophical, the technical question is, how can I compress all of that, store all of that at 100x?
32:33Or 1000x, right?
32:351,000x.
32:36The target is 1000x, right?
32:37And the goal is when you say redundancy, what is redundant meaning stuff at best that humans would notice if it was missing?
32:48So for example, you have a picture of a cloud, right?
32:51And from the next frame, there's still going to be the same cloud.
32:54So it's redundant.
32:54You could just put it once and not do it, right?
32:57Or you have a black background behind me, for example, the black is the same on the whole picture, right?
33:02So you can say, well, you know, in this picture, take the pixels that you have on the top left and the one on the top right, I'm not going to give the value.
33:10I'm just going to tell you it's the same at the top left.
33:12And then you can say for frame one, reuse something from the previous frame or the previous, previous frame, and so on and so on, right?
33:20So you could basically, it's unlimited, but then it's limited in terms of memory or in terms of compute power.
33:28Because for example, if you need to compare pixels on 200 frames in the past on 4K resolutions, it's a huge amount of compute.
33:39And then when you're showing it, you have to do the decompress of all of that.
33:43So is it the codec has the encoding and the decoding?
33:48There's a coupled process that you're developing.
33:50Exactly, right?
33:51And those are two different trade-offs, right?
33:55Are you going to compress more, but then it might be more difficult to decode?
34:01Are you going to make it a codec that is more complex to encode and easier to decode?
34:06Are you going to make a codec that is easier to encode because you need to be fast, but then the client side, the player is going to spend more time?
34:14That's why you have so many different type of codecs, is that it's not always easy.
34:19And to make it even more complex, modern code decks like AV1, AV2, or VVC are actually not codecs.
34:25They are a collection of tools, right?
34:27There are multiple tools, multiple codecs in the same codec to, depending on the image, get the more compression.
34:34So just to elaborate, codecs like AV1, VVC have a wide audience.
34:41It could be a screen share content.
34:44It could be video.
34:45It could be animation.
34:46All of these require different coding tools.
34:50So what happens these days is a collection of tools are put in and called AV1 and called AV2, called VVC to allow for different use cases.
34:59So you may be on Zoom and sharing your PowerPoint, and then you need to show the audience a video that codec needs to start changing its tool set depending on the content to compress in a different way.
35:12And like you said, there's a bunch of incredible engineers behind each part of that, each part of the tools that make up AV1, for example.
35:18Sure.
35:19So we've kind of danced around it.
35:21We talked about VLC, the logo, the hat.
35:25Let's talk about FFmpeg.
35:27What is FFmpeg exactly?
35:30FFmpeg is basically the low-level libraries for codec.
35:37So compressions and decompression, muxes and demuxes and filters.
35:43The core is this, and then you have a several tools which allow you to create a type of pipeline to process any type of video files.
35:51And it's used as a library absolutely inside everything from VLC to Chrome to your smart TVs to basically any video that you see online.
36:01You usually use FFmpeg.
36:03And FFmpeg in it has all those type of tools and sometimes depend on other libraries like X264, LibVPX and others, right?
36:14So it's really now the de facto tool to process images.
36:19From a philosophical level, I think it's incredible that your home videos, your grandmother's home videos and trillion-dollar corporations effectively are on a level playing field using the same technology stack.
36:34It wouldn't be a surprise, you know, these big companies just have 3,000 line FFmpeg commands.
36:40There are some that use the API, but there are some that just have long command lines.
36:44So yeah, there's a bunch of tools, like literally command line tool, FFmpeg, of course, FFProbe.
36:51There's libraries, libv codec, libb format, libv filter.
36:56But the FFmpeg on the command line is like legendary because you can cut, there's so many parameters, you can customize everything to help.
37:06It's a language.
37:07It's an actual language.
37:08It's an actual, yeah, you could think of it as a programming language.
37:10Yeah, of course, I'm sure.
37:11Because so most of the people, they're going to take FFmpeg, file in, file out, and specify the format, right?
37:18But you can, we've seen thousands of characters and we've seen also like people like doing programming generation of common lines to make FFmpeg.
37:29There is a ton of people who are using AI to generate common lines for FFmpeg because you have no idea what it is.
37:34But you can specify so many filters on command line, right?
37:38So FFmpeg is this collection of toolbox for multimedia processing that everyone, everyone uses.
37:47And everyone that is watching your videos are also using, right?
37:50You're on YouTube.
37:51Well, it's FFmpeg on the client side.
37:54Well, your server side, on the server side, the client side is probably Chrome.
37:58Well, you're using FFmpeg also.
38:00And you're using OBS to record.
38:01Well, it's FFmpeg, right?
38:03You're using a ton of important, like big box, professional boxes.
38:06Well, it's very possible that inside some part of FFmpeg is running.
38:10I mean, there's like so many, just to give people an idea, like I use FFmpeg a lot and everything.
38:16Just trivial stuff, like take a video, add an intro video and an outro video, and fade one into the other, like what is it called, dip to black, like where it dips and then shows the next video and does the same thing with the audio.
38:34There's like a cross dissolve of the audio.
38:37It quiets the audio and makes it loud again.
38:40And then there's a bunch of stuff like showing the captions on screen, card, like baking the captions in.
38:47You can customize the font.
38:49You can do all kinds of layering of audio and video.
38:53There's a million things.
38:54And of course, all of that works like magically with basically any codec.
39:02Like anything you could shove in on the audio and the video side, it works.
39:06But it's like if you look at, for example, you can do things that you would do with ADDOP After Effects in Command Line on FFmpeg, right?
39:15And it's very interesting because, for example, for imaging, there is not such tool.
39:20There is a few tools, but not with the breadth of FFmpeg.
39:23So ImageMagic has a similar kind of filters, complex filters.
39:29You don't have the equivalent of Photoshop in Common Line, right?
39:33But for video, you have FFmpeg in Common Line.
39:35Yeah, it's incredible.
39:36I mean, it's like it's an example of a thing when a bunch of great people get together and they get a vision and they stick by that vision for many years, which is incredible.
39:46And the vision behind, and the same for VLC and FFmpeg, is that we make everything that is very complex easy to use for the normal people, for everyone, right?
39:58Our goal is to make something.
40:00That is insanely complex technically and make it easy to use, right?
40:04And people, they use VLCs, they drop a file, they don't realize how complex the file is, but they play it.
40:10Or people put any type of thing inside FFmpeg with complex filters, and it just works like magically, right?
40:17And people, and this is our mission, right?
40:19Make very complex things.
40:21We wouldn't be here, and you wouldn't be here if this required, you know, a traditional television studio setup.
40:29It's tools like FFmpeg that democratize this.
40:32The podcast and streaming revolution, the YouTube revolution was caused.
40:36You know, FFmpeg was a big player in that because it democratized this technology that was once in the 90s, for example, you needed equipment that cost hundreds of thousands of dollars to do compression.
40:47It was the size of a car.
40:50And now everybody has that at almost an exact level playing field.
40:54And that's something that's so remarkable.
40:55It gave voice to a lot of people.
40:57And just to clarify, we say you wouldn't be here, not the human, but the podcast.
41:02Sorry, you as the VLC did not have anything to do with biological upgrading me as a human.
41:09You realize also everything move from text to images and images to video.
41:15Look at social networks.
41:16Video is everywhere.
41:18It's the most powerful medium there is, right?
41:21And when you see shorts and reels and TikTok, it's amazingly powerful to give.
41:29Video is amazing for that, right?
41:31But the complexity is important.
41:33It's what people don't realize.
41:34I mean, this is really, it gave power to the individual all across the world.
41:40It's real freedom.
41:41And I think, I can't believe it, but we still haven't mentioned the actual obvious thing for people who are not familiar, which it's open source.
41:51And there's an open source community of users and developers behind it.
41:56So it's really, it's a movement.
41:58So like we'll talk a bunch in a bunch of different ways about the community behind it.
42:02But can you speak to the open source element?
42:05So if we say, what is FFmpeg?
42:07It's an open source project.
42:10Yeah.
42:10So FFmpeg, VLC, X264, VideoLAN, everything we do is fully open source.
42:15And for the people who don't understand how open source is, my usual analogy is about a chocolate cheesecake, right?
42:22Usually when you want to buy your cheesecake, you go to a bakery, they give you the cheesecake.
42:27The other one way of having a cheesecake is have your grandma give you a recipe of how to make that.
42:32When we do open source, we give you the chocolate cake and we give you the recipe to actually remake the same cake, but at the same time, tell you how to build the oven and also how you're allowed to modify the recipe and resell it to someone else.
42:48And this is because software is just a very long recipe of small instruction.
42:52Computers are not very clever.
42:55They go very, very fast.
42:56So a normal program has tens of billions of instruction instead of the tens when you have your chocolate recipe.
43:02So a lot of the software industry was about selling software, like where you just have the final cheesecake.
43:09In open source, we give you everything.
43:13And that managed to get a lot of people work together, right?
43:17Because then you decide that you're going to make the best program, the best recipe for video, and you create communities.
43:24In FFmpeg, since the beginning of FFmpeg, probably 2,000 to 3,000 people have contributed from the beginning, right?
43:32And then it's exactly like the Linux kernel, right?
43:34The Linux kernel has probably 10,000 people contributing everywhere.
43:39And they get together, well, mostly online, right?
43:42So they virtually get together to create the best tool for something.
43:47And on FFmpeg and VLC, it's just like, well, this codec doesn't work.
43:53So I'm going to work on the codec and I'm going to add the support for this file inside FFmpeg so it will be beneficial to everyone.
44:01Because again, we work for the greater good.
44:03We work for everyone.
44:05And that is what open source is.
44:07And we should imagine, depending on the licensing, you could probably build a billion dollar, maybe even a trillion dollar company around this as a wrapper.
44:20Well, yes, people do.
44:22People do, right?
44:23There was a lot of problems with mostly cloud providers who are basically running some open source tools in the cloud and just give you the API to access to that.
44:35And there was a lot of databases like Mongo or Elastic who changed their license in order to avoid those type of scenarios.
44:44This is a question we get a lot in FFMPEG is why don't you do that?
44:48And you can't.
44:49We have thousands of contributors, some of whom aren't even alive anymore.
44:53You would need all of their agreement to do that.
44:55And JB will go maybe a bit later and talk about how challenging that process was in VLC to do the relicensing.
45:02The license is a social contract in the terms of whoso de facto of the community.
45:08The community does not agree on much beside the license.
45:13People go around, discuss around because of the license.
45:17And that also allows those license fork, right?
45:19Sometimes the community splits, but it's possible because of the license then to merge back.
45:25And we've seen that so many times, right?
45:27GCC and GC and EGCC in the past.
45:31We have seen, for example, all the web browsers, right?
45:33They started as KHML, which became WebKit and then which became Blink, right?
45:38So open source license is like the core of the community.
45:43And people are coming from all over the world, very different type of religion, political borders.
45:53They work in the same way on a project to solve a specific problem.
45:58And the specific problem we're working on is to make multimedia easy for everyone.
46:03Looking it up on perplexity here, looking at the different open source licenses, most major open source licenses fall into two buckets, permissive, very few conditions, and copy left.
46:14Share alike requirements for derivatives.
46:16Below is a brief practical summary of the main ones you'll see in the wild.
46:21MIT license, BSD, ISC, Apache, GNU GPL, GNU AGPL.
46:32Where's LGPL?
46:33Yeah, LGPL.
46:36Let's see.
46:36There's the Mozilla public license.
46:38There's Eclipse public license.
46:40It goes on.
46:41There's a lot of variety.
46:42I mean, I think the really popular ones is MIT, GPL, LGPL, NBSD, Apache, sometimes on license.
46:52That's an option.
46:53Attempts to dedicate code to the public domain with a fallback permissive license.
46:56There are many licenses for many different things.
46:59What people don't understand that public domain is something that doesn't exist worldwide, right?
47:04So it's all the open source licensing use the copyright law, right?
47:10The international copyright law, in order to give rights on how you use the software or how you modify.
47:16It's de facto a copyright license contract that you give to the end user or to the developer.
47:23And so you have like the first one, which are basically very permissive, MIT, BSD.
47:27You give the code, and basically you do whatever you want, right?
47:32You take it, you modify, you do what you want.
47:35And this is popular for JavaScript and the type of BSD operating system.
47:42So some of them, one of the parameters is whether they require attribution, meaning if you use the code, you have to say.
47:48Yes.
47:49So in those type of permissive license, some you need to say if you use it, which is called attribution, and some you don't.
47:55And then there is the other part of license, which are copy left, where you need to give back to the community your modifications and with different string attached.
48:06Some weak copy left license, like the Mozilla public license, to some which are a bit stronger, like GPL, or even very strong, like AGPL.
48:17So all of those are different type of licensing that depends on what your goals are and how you want to structure your community, which is why I spoke about social contract, because this is very important to understand.
48:29FFmpeg and VLC are mostly GPL or LGPL.
48:35The Linux kernel is GPL, but Android is Apache.
48:40A ton of JavaScript frameworks that are using are mostly MIT.
48:45All the BSD kernels, OpenBSD, NetBSD, are of course BSD.
48:50And so it's a philosophical change on how you want people to contribute back, basically.
48:57So there's a, I think you talked about that you've moved at one point from GPL to LGPL on certain parts of the project.
49:07Can you describe the difference between the two and what does it take to move to, I guess, a more permissive, so that direction is more permissive.
49:14LGPL is more permissive than GPL.
49:17Yeah, so you have to realize that you can always go from more permissive to less permissive, right?
49:24Because of course, those license are basically statements.
49:28So if you restrict, you can always restrict more, right?
49:30So in a GPL project, you can take MIT code, but you cannot do the opposite, right?
49:36Because they are more constrained to match.
49:39Indeed, in fact, I changed the core of lib VLC, which is the engine of VLC from GPL to LGPL.
49:51And there were two reasons to do that.
49:53The first one is that people can use the VLC engine, lib VLC, into third-party applications.
49:59So a lot of applications which are playing video on your phone or on your tablet are actually VLC engine init, which is calling FFmpeg init.
50:08So that was one of the way to create one of the company I created, which is doing consulting and integration of those applications where you integrate VLC into third-party solutions, like inside game engines or stuff like that.
50:23With GPL, you couldn't do that because that means you needed to open source everything.
50:27And those are for a lot of like commercial companies who don't want that.
50:31So you can create a company with LGPL.
50:33You can create a company around it.
50:35You can do a commercial thing.
50:36You don't have to open source it.
50:37So that's a big, big leap.
50:38So you could play video in your game.
50:40Yes.
50:40The problem is I'm a game developer and I want to play some videos and I don't want to be forced to open source the entire game just to play those videos.
50:48So that's where the consulting business, the lib VLC LGPL, allows you to do that.
50:54The LGPL, the library GPL as it used to be known, allows you to do that.
50:57And FFmpeg is exactly the same.
51:00LGPL forces you to give back what you change on this component, this library, which is why it's library GPL.
51:08And so you can use FFmpeg as LGPL into any type of application, even non-open source, but you need to give back the modification you did on FFmpeg.
51:18Same on lib VLC.
51:19Is it limiting from an open source perspective to go GPL?
51:23Because if your library, if your code is GPL, it means you're basically discouraging companies from building a business around it, right?
51:35Is that fair to say?
51:37It depends on the company, but the company whose business model requires the application to be closed source, yes, it's limited.
51:44So that's why, for example, I moved to LGBL.
51:47The second reason is a bit more obscure is that the terms of condition of the app store, the Apple App Store for iOS, makes it very complex to have GPL application on it, while it's easier to have LGPL applications on it.
52:02So VLC on Windows and on Mac and on Linux is GPL.
52:06The core is LGPL, but on iOS, the iPhone version and the Apple TV version is a type of different license called the MPL.
52:16And yes, I went and changed the license and it was a long story.
52:21Yeah, so I think basically to change the license, you have to contact all the contributors.
52:25Yes, it's very important to understand that open source projects are what we call in the US copyright law joint work or in civil law collective works or collaborative works.
52:38In that you work all together in terms of the same goal and then it creates one software, which is one release.
52:45But the copyright is kept by all the individuals.
52:49Some open source projects don't do that, they force copyright assignment, but this is not what we do with communities.
52:54So everyone has basically copyright on what they changed.
52:58And this copyright stays even if at the end your contribution was deleted because the new contribution was based on your previous one, right?
53:07So if you want to properly re-license, you need to find all the contributors.
53:11And at that time, I had to contact more than 350 people.
53:15And sometimes, well, they are just an email, right?
53:18So you need to actually track down.
53:20I actually traveled to some place to go somewhere that I was like, sorry, that I found online to go to their job and say, well, you licensed that.
53:31Do you want to change from GPL to LGPL?
53:33Most of the times they don't even care.
53:35They wanted to help LC.
53:36But also, it brought me to a very complex situation.
53:39I arrived to the work of a person who was a factory worker.
53:44And I said, well, I need you to sign that because it was his son who died who actually wrote the code, right?
53:52So I had to explain all those type of open source meaning.
53:56And no, I was not a company trying to rip out the two lines or five lines that that guy did, but was useful.
54:03And the whole community agreed on that.
54:05And he had no idea I was a factory worker.
54:08And I was a lot younger, right?
54:10Like it was 14 years ago.
54:12And like, like, I was almost in tears, right?
54:15It's very difficult, right?
54:16We are talking about lives of people.
54:18And he explaining and we went to talk about the photo of this guy.
54:22So it's important to do it right and to do it correctly.
54:26But yes, that means tracking down everything because every contribution works.
54:31There are some projects who don't respect that and we do re-licensing a bit like aggressively.
54:36But as I said, it destroys the whole heart of the community because we only agree on this license.
54:42So that's important.
54:44I would emphasize the community is such a wide-ranging group of people.
54:48There's people in a Syrian war zone with electricity part-time.
54:54There's all people from all walks of life, rich, poor, young, old.
55:00So it's quite remarkable to get a group of people aligned on something.
55:06And that's an achievement in itself.
55:08Yeah, it's incredible.
55:09And a lot of them are introverts.
55:12So you coming to find them and getting them and getting them to answer an email might be quite difficult.
55:18Most of us are introverts, right?
55:20You need to be more precise.
55:21You're extremely introverts, extremely, extremely introverts and introverts, right?
55:25It's just like a whole spectrum of different people.
55:28It doesn't matter.
55:29The important is, is your code good?
55:32Is your code great?
55:33Is your technology great?
55:34We care about excellent code.
55:36We don't care who you are.
55:38Sorry, it's just like we have no idea to check.
55:40We cannot check, right?
55:42Like maybe you're a dog.
55:43I don't care, right?
55:44I don't care where you come from.
55:46I need to look at your code.
55:48And this is important because people don't understand that and they come to the community and send them some patches and they get rejected and they don't like that because I mean it's just like, sorry, it's not up to our standards.
56:00Oh yeah, but I'm engineer at this very large company in Italy, in Germany, in the US.
56:06We don't care.
56:07We care about the quality of your code because this is what defines our community.
56:12And which means that we have a lot of people who contribute who are some very different backgrounds and very introverts, sure, but that's okay, right?
56:20So one of the legends of the community is, of course, Linus Torvalds, who created Linux and is a long time maintainer of the Linux kernel.
56:32As the legend goes, he can be pretty harsh on this meritocratic process of reviewing the code and saying it's not good enough.
56:39Can you just speak to the legend of Linus Torvalds?
56:42Linus is one of a kind, right?
56:46And I would even go and say that what he did on Git is more interesting than what he did on the Linux kernel.
56:52He's very harsh, but what people don't see is usually when he's harsh to, it's people who are maintainer of part of the kernel, right?
57:01So they know him, right?
57:02So he's not very harsh like that to everyone.
57:05The thing is, what he created in his room is basically powering every server online, right?
57:11Even at Microsoft Cloud called Azure, I'm quite sure 70, 80% of the servers are running Linux.
57:18All your Android phones are running Linux.
57:20What he did with the power of open source, sure, is amazing.
57:26And yes, the quality of the Linux kernel is very high and yes, it's difficult, but we cannot compromise on that.
57:35We cannot compromise on quality.
57:37Because in the end, and you have to understand that, is the core community of VLC is five people.
57:43The core community of FFmpeg is 10 to 15.
57:47And we are the ones who are going to maintain your code, right?
57:51Because 1,000 contributors in the timeline and just 10 stayings.
57:551% chance that someone comes and stays.
57:581%.
57:59So you will have change of job, change of wife, you have children, you have accident in life, you're going to change jobs, whatever.
58:06You're not going to come back.
58:08It's most likely.
58:10So we are the one going to maintain your code.
58:13It needs to be maintainable.
58:15It needs to be excellent.
58:18And yes, sometimes that means that you need to rework your work because it was good, but it's not excellent.
58:23And we need excellence because we are very few to maintain something that is critical for the whole.
58:28But we should also mention that there is some spiciness, some harshness to the language that's sometimes used when you're keeping this high bar of excellence.
58:38Is there something to say to that?
58:40It's true, right?
58:41It's also the fact that, for example, what we're doing is low-level, it's extremely technical.
58:46You get into this community, the tone gets very like a type of, it's a subculture, right?
58:54So people who arrive from the external are basically not known to the subculture.
58:59Most of those people around FMPEG and VLC, we do video and dev days, VDD every year.
59:05They are so fun in real life and they love it.
59:07But it's true that you're online and sometimes like the tone, you don't realize how it is.
59:13But that's okay.
59:14It's a culture.
59:14I mean, you get this in the gaming culture.
59:16There's pretty harsh and tense the way people communicate.
59:20And everyone understands that the way you show love and respect just looks different in different communities.
59:25Sometimes people, it depends.
59:28If it's a book club, usually people are going to be much sweeter.
59:32If it's an open source project that's very high stakes and used by millions of people.
59:37But it's very not often insults that you see, for example, in the gaming, right?
59:42So Linus tone is a bit unusual even for the open source community.
59:46It's more like it's more harsh on the results saying, no, this is not good.
59:50This is crap.
59:51Those type of things that you will see.
59:53Try not to make it about the person, make it about the code.
59:55Yes.
59:56It's very, very matter of fact.
59:57And I think you've got to look at it in terms of, you know, the famous FFmpeg is developed almost entirely by volunteers.
1:00:03And that's true.
1:00:03And you've got to imagine someone's done a hard day's work at their day job.
1:00:07They come home.
1:00:09You know, terseness might be a thing, you know, and that's not something to take personally.
1:00:14You're tired, you're busy, but you still care about this open source stuff.
1:00:18But you may not be able to explain and handhold someone on every subtle detail.
1:00:23And also, you have to realize that most people don't speak English as native language.
1:00:30And this is especially for open source projects like FFmpeg and VLC, which are mostly centered out of Europe.
1:00:36Sometimes like people who are from the US or just are very not happy about the tone.
1:00:44But most of the time, it's also like they don't know better, right?
1:00:47It's difficult.
1:00:48English is a difficult language.
1:00:49There is so many subtilities and tone and so on that you don't have, right?
1:00:53So often it's also difficult in those type of community about like different cultures and languages.
1:00:59So as the legend goes, JB, you repeatedly turned down millions of dollars to keep VLC open source, free for everyone, without ads.
1:01:12So take me through the reasoning behind that decision of leaving millions of dollars on the table.
1:01:19Yeah, that's like almost a meme, right?
1:01:21On Reddit.
1:01:22There literally is a meme on Reddit.
1:01:24Ninegag and yeah, yeah, I see there's you looking like a wizard in the VLC hat on Reddit.
1:01:33This is JB, the creator VLC media player.
1:01:36He refused tens of millions of dollars in order to keep VLC hats free.
1:01:41Thanks, Jean-Baptiste Kampf.
1:01:44You can even summon him on Reddit.
1:01:46Yeah.
1:01:46And usually, if you see, right, it's usually like people tag me, right?
1:01:50And then there is me.
1:01:51And like I say, good morning.
1:01:53I got 24K upvotes, which is great, right?
1:01:55My karma on Reddit is amazing, at least on that account.
1:02:00So the question needs to be answered first.
1:02:03What is the story about VLC, right?
1:02:06Because yes, this is true.
1:02:08I refuse dozens of millions of dollars.
1:02:12Yes, several times.
1:02:13Yes, I could be a multi-millionaire and be somewhere on the beach.
1:02:16But I did not do it because I thought it was not moral and it was not the right thing to do.
1:02:22And this is very important for myself is to be like, I work for the greater good.
1:02:28I work for people.
1:02:29And I don't want, it's not just by myself.
1:02:32But the reason is also because I did not feel that I'm completely legitimate to do that.
1:02:37And let me explain you why.
1:02:39VLC story is a very weird story.
1:02:42In France, we have university and we have a type of top colleges.
1:02:47And those top of Excellency schools are engineering school, business schools, and basically lawyers and medical, right?
1:02:56But they're outside of university.
1:02:58And in order to enter those, you spend two years working like crazy mass physics to enter those best engineering schools.
1:03:06One of the schools is called the École Central Paris.
1:03:08It has changed names since, but it was called the École Central Paris.
1:03:12And because it was Central, they had to move it because it was too small after the World War II.
1:03:17And they moved it, they wanted to move it to the central of France in a place called Clermont-Ferron.
1:03:22And the alumni decided that this was not okay, right?
1:03:25It is the school that Eiffel, right, the one who did the Eiffel Tower, attended to.
1:03:30So they said, no, no, we are an amazing great school.
1:03:33We cannot do that.
1:03:34And so they bought a piece of land south of Paris, very near Paris.
1:03:38And it was a campus managed by a non-profit of the alumni.
1:03:45Because of that, everything on the campus was managed by students.
1:03:48The university did nothing, right?
1:03:50So radio, TV, supermarket, library, defining who was going into which rooms, everything was managed by the students.
1:04:01That's amazing.
1:04:02That's an amazing experiment that it all didn't go to hell quickly.
1:04:06It somehow flourished.
1:04:08It worked great.
1:04:09And I learned so much in my life doing those side activities, right?
1:04:14Because you're 22 and you need to run your compass, else you don't have electricity, right?
1:04:18So you care about that, right?
Ad · Ring
1:05:00Is it for me?
1:05:01No, it's not.
1:05:01And then send it back like a token which is traveling around the ring.
1:05:06In the 80s, you're doing some telnet and sending mails as university.
1:05:11That's okay, right?
1:05:12But starts the 90s.
1:05:14And the 90s and start video games.
1:05:16And when you have high latency video games, basically you die, right?
1:05:20So in 1994, 1995, around Doom and Duke Newkem coming around, they want a faster network.
1:05:26So the students go and see the university and say, you know what, we want a faster network.
1:05:31We need to work.
1:05:32We should also play video games.
1:05:34And the university tells them that basically, oh, I'm sorry, we cannot help you because you understand the compuse is not ours.
1:05:42You manage it.
1:05:43So do something.
1:05:45And you should see some basically partners of the university and basically go away.
1:05:50And they go and they actually go and see the CIO of Buig, which is a large French company and who's doing some TVs in France.
1:06:01And he says, well, you know what?
1:06:03The future of video is satellite.
1:06:05Well, today we know it's not, but at least it was a good idea in 1995, the first of satellite dish.
1:06:11And he says that instead of having like one satellite dish and a big decoder for each of the students, which are 1,500, what about you build, like you put an enormous dish and only one decoder and you send the video directly on the network.
1:06:28And that required a very fast network.
1:06:30Today, it's obvious.
1:06:32But at the time, it was like the first to do video streaming.
1:06:35So they built this project, which was called Network 2000.
1:06:39Of course, we are in the 90s, right?
1:06:41Everything is futuristic, it's called 2000.
1:06:442000, yeah.
1:06:45And so they do the network 2000 project.
1:06:48It's completely hacked.
1:06:49It crashes after 45 seconds.
1:06:51That's okay.
1:06:51The demo is 40 seconds.
1:06:53It leaks memory.
1:06:54That's okay.
1:06:54They put 64 megabytes of RAM instead of the 8 or 16 you have.
1:06:58And the demo should have stopped there.
1:07:00And that was a Network 2000 project by the students.
1:07:02What was the format of the video that they had to work with?
1:07:04MPEG-2, because satellite is MPEG-2 TS for transport, MPEG-2 video, and MPEG-2 audio at that time.
1:07:12And the project should have stopped there.
1:07:14Everyone was happy.
1:07:15They had like amazing ATM network at 155 megabits per second.
1:07:20They had probably one of the best network in Europe at that time.
1:07:24And they stopped the project.
1:07:25Six months or a year later, two students arrive and say, well, you know what?
1:07:29Maybe other people care about video streamed on a local network.
1:07:33And they create the VideoLAN project, Videolan.
1:07:37And one of them is called Christophe Macio, that is a good friend of both Kieran and me.
1:07:42And they start the project.
1:07:43It's not even open source yet.
1:07:45And they spend around three years to get the school to agree to make it open source.
1:07:51Because the university wanted to get, because of the IP and copyright of the students, wanted to basically monetize these MPEG-2 decoders.
1:08:00Just to be clear, so what was the main application streaming on a local network?
1:08:03It was streaming on a local network.
1:08:05Oh, this is like, to state the obvious, this is before YouTube.
1:08:08This is before.
1:08:0910 years before YouTube.
1:08:10You have a Pentium 60 or 75, right?
1:08:14The main machine was 486DX at 33 MHz, right?
1:08:17Bear in mind.
1:08:18Television was the main form of video at the time.
1:08:21You could get new channels.
1:08:22In the 90s, having even one new channel when you grew up with four channels, having a fifth or a sixth was a big deal.
1:08:28And so having this satellite service with, you know, dozens, even hundreds of channels was so groundbreaking.
1:08:35Especially because this is a university where you had a ton of different nationalities, right?
1:08:39So there was a ton of people who wanted, so in the end, they had like several dishes on different type of satellite, right?
1:08:45Because for example, a lot of people were coming from the Maghreb or the Middle East and so they went to different type of satellites.
1:08:53Anyway, the solution worked great and they started the VideoLand project.
1:08:58The VideoLand project has several and some are completely crazy solutions like one how to create multicast on a unicast network, but let's not come to that.
1:09:08It's too complex.
1:09:10But VideoLand client part is what became VLC.
1:09:15Actually, they basically strong-armed the university to force it to open source because the university did not understand that.
1:09:21And in 2001, it's still early.
1:09:24But basically, yes, the university agreed early 2001 to make it open source.
1:09:29I joined the project in 2003 because that's when I joined the university.
1:09:33So the first thing is I'm not the one who created VLC because actually no one did, right?
1:09:39Just kind of naturally emerged from the VideoLAN project.
1:09:41And we should mention that, like, again, you said it just, but to make it clear, VideoLAN, what it became, it was at the time is a set of technologies around video.
1:09:53The VLC, what you call the client, that's the thing that most normies think of as the thing, which is like the thing that pops up when you click on a video and you play it.
1:10:06So I arrived in 2003, and then I will create the open source non-profit organization called Videolan.
1:10:14And I took everything out of the university to create it a non-profit project and something sustainable.
1:10:21Yes, it's true that I spent more time than anyone on VLC and Videolan, that is sure.
1:10:26But it's a continuity of a previous project, Videolan, the student project, which is a continuity of the Network 2000 project, which is a continuity of that and that.
1:10:35I'm sure there's moments along the way there you were thinking of like what is the future of this from an open source perspective because as as the internet is blowing up and there is companies I mean for people who don't remember like there's companies making huge amounts of money and I can tell you that in 2005 the project should have died and I made it to continue the project at some point we were only two active developers and I thought it was great technology and was useful and it will be useful and I made that my my my life and my my time and I made that to grow from a few hundreds of thousands of users millions of users to what we have now which is probably billions of versions of VLC around the world and used everywhere so that's a bit the story of VLC there is ton of very funny story around that many people from around the world working on it like you said in Syria or middle of nowhere in India but along the way I got several offers which were either to bundle toolbars right you remember those horrible toolbars which were basically spyware or changing your web browser or your search engine or even like advertisement inside VLC and I didn't like that right I am and people don't understand that it's not I'm not against money right I'm very happy to make money I created several startups and one I hope that is going to work very well it's the fact that I believe that you need to win money ethically there is the right way of doing that and and doing sneaky advertisement or stealing data is not the correct way right for example if Netflix arrived at some point and say well we want to put Netflix inside VLC probably the story would have been different right but they didn't the only people who came to us were shady ads company and if I do that right I would have a ton of money right and then three years later project is gone right someone forks it and and something else happens so it's not even necessarily ads or any of that it's the shadiness of the dishonesty of the so you had a good radar you had a good threshold of like no this compromises the spirit of what this is supposed to represent but also it's it's for me right i'm like very selfishly i need to go to bed at night and be happy about what i've done right maybe it's my upbringing um uh maybe it's my parents fault or whatever right but i believe there is right and wrong right and this was the right decision at the time it still is i want to be proud of what i've been doing and like if i had sold out i would have betrayed so many other people working yeah well i should say me and uh most of the internet thank you for that decision it's inspiring uh for others uh i think that um that are pushing the open source movement forward that it's okay to do these kinds of huge sacrifices if you believe it's right and i think in that case it was right and it was the reason that vlc became as successful as it was because it it's an embodiment it's a symbol of like you know freedom of what the open source community can create yeah and be a service for so many people around the world and this is important we should emphasize in the 2000s it was really normal to download a program and it secretly installs some spyware yeah it was it was buried in very faint text or in the license text box that nobody reads that at the bottom oh i will be installing this toolbar and changing all these things and it was it was very common to have to you know you install a program to do something at the time of any sort to put yourself in the mind of a developer at that time i think it's very easy to everybody listening to this it's very easy at that time to convince yourself to take a few thousand dollars a few thousand dollars to do it to to say no to much more money takes guts and takes vision the last offer i had was obscene and they say yeah but imagine with all that money you could build something new open source right was like the mind trick was it was difficult but for me it was just like no this doesn't work like that or this is not the right thing so i don't do it and again right it's not that i don't like money or whatever it's just like it wasn't right well once again thank you for me and from the rest of the internet let me talk a little bit more about the open source movement about the fact that as you say over and over and over and over ffmpeg is and many open source projects are built by volunteers so uh there's a bit of drama recently uh karen on the interwebs on twitter uh you have a spicy style on twitter that i think articulates and celebrates all the incredible developers and uh development and the uh the code especially assembly that's involved in building some of these codecs and building some of this incredible technology but that brings us to the a bit of a debacle that happened tell me the full saga of what happened with the google security engineers just to be clear google are one of the biggest supporters of open source out there they have been for a long time it's just i think some things kind of went a bit overboard this time so ffmpeg itself and and this is not like a secret it's on the homepage you know the it processes untrusted data there can be security issues when you parse untrusted data that's very normal but recently what changed was google started using ai to create security reports on an open source project fmpeg volunteers had to deal with that they did they provided very limited funding and they even went to the media first announcing how good their ai was before the issues could be fixed and this is in the public forum yeah so reporting reporting an issue using ai to find an issue in the code which is a security vulnerability and then reporting that publicly before you're able to fix it yeah it's announcing how good their ai is that they provided a standard 90-day industry deadline um without potent without really understanding the nature of volunteer driven development in addition this vulnerability was on an obscure 1990s game codec um the way and let's look at it from their standpoint to begin with let's um you know yeah can you steal me on their case yeah sure they have substantial resources working on the security of open source projects that you know are ubiquitous and they've used you know a lot of compute to do that and very expensive and very capable security researchers um to do that and that that's their viewpoint is they are contributing by doing that but i think that's where opinions differ um it opened up a lot of interesting fissures uh i would say um it does seem that there's a portion of the security community that um look at themselves a bit like building architects that never have to go to site you know going to site is something that is a little bit beneath them the actual day-to-day construction they're there to do their security things and it's someone else's problem the security industry also kind of has a very aggressive tone towards things the language they use is extremely aggressive they use very strong language like you will get popped um so and to Joe public get popped you know means something quite bad for them it means to get hacked the way I would look at it personally is a little bit like the padlock on your home not everyone that a padlock on your home or you know the lock on your home is there to to protect against the capabilities of of what it's there to protect it's not there to protect nuclear secrets it's not there to protect for Knox and it could be looked at that they're using AI at a level of scale to go and pick those locks and then say hey your lock's not secure you need to deal with this whereas actually they're the ones with resources to be able to to fix this but that seems to not be something either they'll contribute to in terms of patches or in terms of financially and the scale of AI is kind of the issue that the the bug reports are very wordy they're very very it's almost a denial of service by AI generated bug reports on very niche codecs and the other issue the security community has is everything is marked high priority you're going to you know this is the most important thing in the world and you need to deal with this high high high vulnerable scary scary scary on a game codec used on one disk in 1993 yeah and that that's where the dichotomy lies going around telling everyone that their padlock's not safe well that's a hobby project of somebody that the safety of that codec is consummate to what that person thinks it's their hobby it's good that they're security analyzing it but it doesn't need a big scary warning this is a critical vulnerability um may also may recently also um
1:20:00See that there was another quote-unquote vulnerability.
1:20:02It wasn't a Google in this case, but a filter could overflow and have an integer overflow, and one of your pixels could be the wrong color.
1:20:13And this was marked high, 7.5 severity in red.
1:20:18And at some point, the security industry needs to realize you can't keep crying wolf like this because this just leads to people, you know, the equivalent thereof of putting password stickers on their PC.
1:20:28You know, you can't just keep crying wolf every day.
1:20:30And I appreciate, you know, that's their modus operandi is to create as much scared and fear.
1:20:37But from the Google standpoint, at the end of the day, they need to contribute either financially or with patches.
1:20:45Google uses FFmpeg at a scale probably you or I couldn't even contemplate.
1:20:50Millions of CPU calls.
1:20:53And yes, they contribute in areas mostly regarding their own products.
1:20:57So VP9, AV1.
1:21:00But in a wider sense, there's a disproportionate level of contribution.
1:21:06Yes, they fund students.
1:21:07Yes, they fund summer of code.
1:21:10And I think, so Alex Strange is a former FFmpeg developer.
1:21:14I think posting in a personal capacity.
1:21:15So he posted about security engineers on Hacker News.
1:21:21His post reads, the problem with security reports in general is security people are rampant self-promoters in parentheses.
1:21:29Linus once called them something worse.
1:21:32Imagine you're a humble volunteer open source developer.
1:21:36If a security researcher finds a bug in your code, they're going to make up a cute name for it, start a website with a logo.
1:21:46Google is going to give them a million-dollar bounty.
1:21:49They're going to go to DEF CON and get a prize, and I assume some kind of secret security people orgy where everyone is dressed like they're in the Matrix.
1:22:00Nobody's going to do any of this for you when you fix it.
1:22:07Basically commenting on the sort of the incentives for the different people involved are misaligned.
1:22:14The problem here is a disproportion of means on discovery compared to patching it, right?
1:22:23And this is the biggest issue, right?
1:22:25And after that debacle, Google did some patching.
1:22:28So now it's starting to send patches, which is...
1:22:30And they also now have reward tools for fixing issues.
1:22:34So it has changed a bit because of that debacle.
1:22:37So it's good, right?
1:22:38But we've seen, and we talked about Google, but we have seen like some other large companies saying, oh, you need to fix this bug because it's critical in our product.
1:22:46Can you explain XZ Fiasco?
1:22:49The FFmpeg tweet reads.
1:22:52The XZ Fiasco has shown how a dependence on unpaid volunteers can cause major problems.
1:22:59Trillion dollar corporations expect free and urgent support from volunteers.
1:23:05Microsoft, Microsoft Teams posted on a bug tracker full of volunteers that their issue is high priority.
1:23:14After politely requesting a support contract from Microsoft for long-term maintenance, they offered a one-time payment of a few thousand dollars instead.
1:23:23This is unacceptable.
1:23:24We didn't make it up.
1:23:25This is what Microsoft, Microsoft Teams actually did.
1:23:28And then you give the image and the details and all that kind of stuff, showing that these trillion-dollar companies are not giving much money, not giving much support.
1:23:38They think an open source project is a traditional vendor that they have an SLA.
1:23:42They think a public bug tracker is actually a third-party vendor's JIRA where you can do all of these things.
1:23:48It's not.
1:23:49It's there to report bugs.
1:23:51I think the thing that made this particularly heinous was the name dropping of Microsoft, the name dropping this is a visible product.
1:24:00If this was just a general bug report, I think that would have made it a lot better.
1:24:04Yeah, so they literally said like, this is a big deal because a lot of people are using it in Microsoft.
1:24:11I wonder what happens psychologically.
1:24:13So I think what happens in these companies, maybe you can correct me, is they, you're, you're right.
1:24:19They just think of FFmpeg as like a vendor that Microsoft surely is paying a huge amount of money to.
1:24:27They kind of assume that in their interaction and nobody anywhere on the stack is going like, wait a minute, shouldn't we be giving like millions of dollars to FFmpeg?
1:24:38And this is a very big problem in large, like we're talking about some companies, but it's the same everywhere, right?
1:24:45A lot of those companies, like when we talked to that person, right?
1:24:50He was just like a manager on one project in Microsoft Teams, right?
1:24:54He had like never really discussed with open source community.
1:24:58He had no idea, right?
1:24:59It was like, and but the problem is that usually there is what we call OSPOS, right?
1:25:05Open source program offices in those type of companies.
1:25:08And they are the ones who are supposed to discuss with open source vendors or open source communities.
1:25:14But like they often don't explain that correctly internally, right?
1:25:18And here is just like, we are not your supplier.
1:25:23If you want me to be a supplier, I'm very happy, right?
1:25:26I will send you a contract.
1:25:27And they said, hey, like, I created five companies who are doing that around open source projects.
1:25:32So that's okay.
1:25:32We should say that some of the spicy tweets that Kieran here behind and some of the debacle produced results, positive results.
1:25:42Donations have increased substantially.
1:25:45They're still not enough to cover even a single full-time developer, but on both awareness level and a technical level, there's substantially more technical awareness and sort of awareness of the importance of FFmpeg as a result, as a result of X and what's happened.
1:26:03I can say it solved its purpose.
1:26:05People realize the level of importance FFmpeg has.
1:26:08And on video land, it's the same, right?
1:26:10Like, for example, a very simple example.
1:26:14For more than a year, we couldn't update VLC on Android because of a bug on the Play Store, on Android Play Store, right?
1:26:23The only way we got someone to answer was to put a very spicy, as you say, tweet saying that we were going to stop distributing VLC for Android, right?
1:26:35And we have around 100 million people using that.
1:26:39And now, then someone from Android actually came and discussed to us, right?
1:26:44We had the same issue with Microsoft or like saying that we were going to stop distributing VLC on the Windows store.
1:26:52And unfortunately, we are so small that the only very strong power we have to solve those issues is blaming on social network because it's no balls and now they listen to us.
1:27:06But those large companies often have difficulty talking to us.
1:27:11Like, for example, VLC is probably one of the top 10 software used on Windows.
1:27:17I am not part of Microsoft ISV programs, right?
1:27:22I don't have a point of contact at Microsoft, right?
1:27:25Well, I'm sure any other software, Adobe, Spotify has a point of contact.
1:27:30I don't have that, right?
1:27:31So raising awareness works.
1:27:35It's sometimes very spicy.
1:27:37A lot of drama.
1:27:39X and Twitter are okay for that, but it's efficient.
1:27:43So everybody listening to this should go follow FFmpeg on Twitter, on X, follow VideoLAN on Twitter, on X.
1:27:54Go donate, donate to FFmpeg.
1:27:58And thank you, Lex, over the years, several years, you've been a supporter of, you know, FFmpeg and Videolan on X, you know, giving us shout-outs, appreciating, you know, what we do.
1:28:08FFmpeg for life.
1:28:10And for example, like Team Sweeney, Carmark, and a few others, like very high-level people, have raised also the awareness on our X accounts, and that helped a lot also.
1:28:21CarPathy.
1:28:23Carpathy.
1:28:24Yeah.
1:28:25I mean, also, you know, outside of the fact that so many people use it, it's so impactful on the world.
1:28:30It's also a great representation of a great open source project.
1:28:34Like the value of assembly and C and making sure that you take programming seriously for real-world systems.
1:28:43It's not just that.
1:28:44We'll talk about assembly later, I'm sure, because that's its whole topic in itself.
1:28:47But it's also celebrating people like Andreas Reinhardt, who do maintenance.
1:28:53I believe unpaid, I believe as a volunteer.
1:28:55He's doing massive refactorings.
1:28:58Andreas Reinhardt and Anton Kernov rewriting ffmpeg.c with threading, celebrating those guys, celebrating the untold labor that's gone into this that actually doesn't change anything from the user standpoint.
1:29:11The files are exactly the same, but wow, the airplane has been rebuilt whilst it's in the air.
1:29:16Christian Garcia said, as a teenager running this account, referring to the FFmpeg account, and you responded, teenagers have written more assembly in FFmpeg than Google engineers, but also just pointing out that there's a lot of incredible contributors who are teenagers.
1:29:32Like JB said, we don't care who you are, where you're from, what you do.
1:29:37Teenagers have written thousands of lines of assembly over the years.
1:29:43Give a shout out back in the days to Daniel Kang.
1:29:46So also highlighting the work of people like Ru Kai Peng.
1:29:49This is a 16-year-old, some of his first contributions to FFmpeg, actually doing and putting some of these quote-unquote security researchers to shame by actually finding issues and fixing them and being 16.
1:30:02There's no barriers.
1:30:03There's no barriers to you have to study at college under this person and understand these.
1:30:08If you can learn C, and let's be honest, it's from the KNR book, Learn C.
1:30:13You can learn assembly.
1:30:14We'll talk about that maybe a bit later.
1:30:16You can contribute to world-class technologies.
1:30:19In VLC, one of the oldest contributors called Felix.
1:30:24He's the one doing everything on Mac and iOS.
1:30:26He's starting, working on VLC.
1:30:28He was 16.
1:30:30We had a guy called Edward Wong, who used to be a Google Summer of Code student, who stayed for three years around VideoLAN.
1:30:38He was 14, right?
1:30:40And part of Google Summer of Code and Google Code-In, which were programs where basically we have students or high school, we wrote a ton of assembly for X264 and for VLC and for FFmpeg, right?
1:30:52So everyone can contribute.
1:30:54And he also did a good job because he didn't play the alarmist CVE, create a CVE, which is like a public exposure of security and do these big, scary, red, 7.5 high priority.
1:31:08He just fixed an issue in Git after three days and just fixed it.
1:31:12He didn't need to go and play a big security drama about it.
1:31:15And I think I posted, you know, the kids are all right.
1:31:17Whereas there's, you know, there is a, I'm not saying all security people do this, but there is a portion of the security community, as Alex said, that likes to hype themselves up by creating drama.
1:31:28They would have happily raised this is a high priority CVE 8.0 or whatever on an issue that actually was in Git.
1:31:36It wasn't even in a release.
1:31:37It was in development.
1:31:38And three days later was fixed.
1:31:40Well, I just want to put a little bit of love out there, even to the bigger community.
1:31:47Much love and respect to Google Engineers.
1:31:50Like you said, they're some of the best software engineers in the world, and they do contribute a lot, even on the security front.
1:31:57And also, you know, I'm a big fan of Theo.
1:32:00Much love to Theo.
1:32:01He was part of this debacle and drama a little bit.
1:32:05I think when you just zoom out on the grand arc of human history, the drama contributed positively to everybody involved.
1:32:13Donations went up.
1:32:15It brought more attention to the topic, allowed everybody to bicker in a way that ultimately got them to figure out whatever fan peg is all about.
1:32:24So the way we looked at this is like, it's a rap battle at the end of the day.
1:32:29No, but it is.
1:32:30We say stuff.
1:32:30We say stuff, but we can leave it on.
1:32:34X is a perfect place for international rap battle.
1:32:37You say stuff.
1:32:37I say stuff about your mama, but it doesn't mean I'm going to have an actual personal issue with her.
1:32:42And that's what it looks like.
1:32:43The Theo situation, JB can maybe expand, went a little bit too far.
1:32:48But, you know, it's just a bit of fun.
1:32:50It's just a bit of rap battle.
1:32:51It's a bit, it's WWE.
1:32:53You know, everyone's having a bit of fun on X.
1:32:55It doesn't need to be taken seriously.
1:32:58You know, the teenagers thing, you know, that guy was a Google employee saying, hey, you know, there are other ways to run an open source business.
1:33:04You know, go and go, oh man, just have a bit of fun.
1:33:07You know, that's what the point of this account is.
1:33:09And furthermore, if you can teach people about the ways of open source projects, assembly, et cetera, by doing that, I think there's a lot to be offered here.
1:33:17It's not dunking on people for dunking's sake.
1:33:19It's showing actually the story that I think X learned is these are not big corporate open source projects.
1:33:24This is not Kubernetes where there's hundreds, maybe thousands of people paid to develop this stuff.
1:33:30These are just people in their basements in their spare time.
1:33:33And if you can address that topic in a fun and entertaining way, I think that that's the good thing.
1:33:39And that's the value of X and the reach we have.
1:33:42And to be honest, even at Google, Google is one entity, but so many different people, right?
1:33:50And there is a ton of Google engineer we work with all the time.
1:33:56And even like Google, from YouTube to Chrome to Chrome Media to the rest of Google, those are very different type of entities.
1:34:02But what we do is efficient.
1:34:05And for example, for Theo, right, it went a bit too far.
1:34:08I had him, like, I calm everyone down.
1:34:11I had him on the phone.
1:34:12We say, okay, like this goes too far and so on.
1:34:15But in the end, yeah, it's a hard battle, but it's positive for the project.
1:34:19It's like the awareness we have on open source and I mean true open source from communities, right, not is increased dramatically in the last two years.
1:34:30And this is useful.
1:34:32What do you think motivates all the incredible contributors that we've been talking about?
1:34:36Like what's the engine?
1:34:38It's so interesting to see.
1:34:39Like you said, they're sitting in the basement.
1:34:40What's the driver?
1:34:41What's the engine there?
1:34:42There are many drivers, but weirdly, the main one is that what we do in multimedia plays videos and video is cool, right?
1:34:51And for example, we have so many people in the community who arrive because they loved watching anime, right?
1:34:59And this is like the advice when people ask me, what should I work on in open source?
1:35:04How do I start?
1:35:05And my answer is always the same.
1:35:07Work on something you love.
1:35:09I am working on VLC because I love movies, right?
1:35:13And I love watching the same movies over and over, even if my wife hates me when I do that, right?
1:35:18But because it's interesting, right?
1:35:20Because it's a topic that you like, right?
1:35:22That's the first thing where people come to, usually, to VLC and FFmpeg.
1:35:27The second thing is that technically, because we search for excellence, this is the best school ever, right?
1:35:35This is the best school ever of programming.
1:35:38If you're good in C, in FFmpeg, if you know how to write assembly, are you sure you're going to be one of the best programmers ever, even if you're working on writing TypeScript?
1:35:48Because this is the most amazing thing to do.
1:35:52And you will have to get reviews by some of the most seasoned programmer ever who are going to look at every part of your code and tell you why it's not great.
1:36:02It's like we are the best teachers that you've ever had in programming, right?
1:36:05Andrew Kelly started Zig.
1:36:07He was an FFmpeg developer and started ZIG after his FFmpeg school.
1:36:11I mean, it's the place to learn so many aspects of programming in the real world, in a thing used by billions of people.
1:36:19You have nowhere to hide.
1:36:20You have to be open and honest about your flaws and how you can learn and be better.
1:36:25And what is also interesting in multimedia is that you have 16 milliseconds to display a frame.
1:36:32It's not like a game engine where you can basically slow down and wait a frame.
1:36:36Like, so it's, you need to be good, right?
1:36:38There is no choice.
1:36:39Else, you don't have your video.
1:36:41And because of how Codex, if you miss a frame, you're going to destroy the look of the video, right?
1:36:46So you need to be good.
1:36:48You need to be perfect to have the right thing.
1:36:51But also is that it's not just pure programming in the mathematical sense, right?
1:36:56A lot of people don't understand, but in order to program correctly on the open source multimedia community, you need to understand how computer works.
1:37:07And when you write assembly, you need to understand about CPU pipelining, right?
1:37:12You need to understand how SIMD works, how the ILU works, right?
1:37:16You need to understand how IO works, right?
1:37:18And this is what I think that is missing to a lot of engineers and software engineers today is understanding what we call computer architecture.
1:37:27And seriously, some of the debate is like, should we use this assembly call or this one?
1:37:32And people say, well, no, it's going to be like three cycle on this type of CPU and this one.
1:37:37And it has massive impact on the output, right?
1:37:40We should expand.
1:37:41FFmpeg is probably one of the biggest CPU users in the world.
1:37:44It's probably running, as we speak, easily 100 order of magnitude, 100 million, maybe even a billion CPUs as we speak.
1:37:53So every instruction matters.
1:37:56There's not...
1:37:58The impact, at least in terms of CPU, is massive for everything that we do.
1:38:04So first you come because it's an interesting subject, then you stay because it's excellent.
1:38:09And in the end, you're very proud of it because it's on the end of everyone.
1:38:14Like so many people, like, oh, I'm working for whatever consulting company and I'm doing some portal to download invoices for your PG ⁇ E.
1:38:26Wow, great.
1:38:27Like so many jobs are like that.
1:38:30You're not going to tell that to your grandma.
1:38:32But if you go to see your grandma and say, I do this so that you can play video on your laptop, they understand.
1:38:37And this is very important, right?
1:38:39Because you're working on VLC, FFMpeg, X264.
1:38:42It's in the end of hundreds of millions of people and you have an impact.
1:38:46And so you can be proud of yourself.
1:38:48And so I think that in addition to doing a great resume, all those things are why people contribute.
1:38:54Yeah, those are side effects.
1:38:56My favorite quote on this topic is John Collinson.
1:38:58He said, the world is a museum of passion projects.
1:39:01Everything out there is a passion project.
1:39:04And open source multimedia and open source in general, you can just do that so much faster.
1:39:09There's such a faster network effect.
1:39:12I can open a cafe and that can be my passion project, but I have to get building codes.
1:39:16I have to build a building.
1:39:16I have to find a location.
1:39:19I have to do all sorts of things.
1:39:21Well, in the software world, that passion project can move quickly.
1:39:25It can be amplified by the network effect.
1:39:28And that amplification can be more than the sum of the parts.
1:39:34You can find people interested in extremely obscure things and have a network effect and make something that is truly amazing.
1:39:44And on that topic of passion projects, Tim Sweeney actually said in a reply to a tweet that was complimenting JB, he said, quote, many things in the world only happen because an awesome person decides to do it.
1:40:00This is the case with VLC.
1:40:02And that speaks to something interesting to me.
1:40:04It does seem that a small number of people, sometimes one person, can create something incredible in the software world.
1:40:13Like you said, this over and over and over.
1:40:15I think JavaScript is an incredible thing creator, but initially a single person.
1:40:20Some of the programming languages like Python and C and Java, like this one person has this vision, has this design, and brings it sometimes over a weekend is the initial spark.
1:40:31Yes, Linus built Git in two weeks.
1:40:35Wow.
1:40:36It changed the world.
1:40:37I mean, it really changed the world.
1:40:38Linus passion for it.
1:40:39Hey, I'm uploading this tarball to an FTP, like deal with it.
1:40:43But for me, it's not just in software, right?
1:40:45And I believe in individuals that are going to change the world, right?
1:40:50And it's with a good, as you said, vision, right?
1:40:53I want to do that.
1:40:54It is useful.
1:40:55It will be useful.
1:40:56And whether it's going to like build train or cars or rockets or something, I believe people who believe in themselves and have a vision can have a huge impact for humanity.
1:41:09Let's actually zoom out before we zoom back in.
1:41:11We'll just keep going up and down the stack.
1:41:15So, you know, we've been talking back and forth, VLC and FFmpeg.
1:41:19Karen, you said that FFmpeg and Videoland VLC coexist and there's no central point of importance.
1:41:27It's a kind of what you call the binary star system.
1:41:31They succeed because of each other.
1:41:33Can you explain the difference, how they interact?
1:41:37Are they competitors?
1:41:39I don't think they're competitors.
1:41:40I think the simple answer is the short answer before I go into detail is VLC is to FFmpeg as Android is to Linux.
1:41:49So they depend on each other, but they coexist because of each other.
1:41:52So they are a binary star system is the analogy I used.
1:41:56By the way, I feel horrible that I just recently learned that Alpha Centauri, the closest star system to us, is a triple star system.
1:42:03And when you start doing the physics, it's a nightmare, right?
1:42:06Yeah.
1:42:07But hence the three-body problem.
1:42:09But anyway.
1:42:10So a lot of FFmpeg pipelines involve the X264 project, which is a VideoLAN project.
1:42:17I would put a finger in the air that say 80 plus percent of those pipelines are dependent on a video land project.
1:42:24VLC, obviously, as we've discussed, a video LAN project, uses FFmpeg, gives it reach, exposure to weird files, historically used some donation money to fund FFmpeg development, and we'll talk a bit maybe about some of the reverse engineering later.
1:42:40So it's a binary star system.
1:42:41They work and feed off each other.
1:42:43Many of the developers are shared.
1:42:45There's no central location.
1:42:46It's a virtuous cycle working together.
1:42:49And we should mention that X264 is the encoder for H.264 video standard.
1:42:55So H.264 is the standard.
1:42:57Yes.
1:42:58X264 is.
1:42:59It's the open source implementation of the standard.
1:43:02That's used by basically everybody for everything.
1:43:04Yeah.
1:43:05That is the main driver of this.
1:43:07When you think of an MP4 file that has H.264 codec in it.
1:43:12If it came from a software environment, like a data center or somewhere, the chances are it was created with X.264.
1:43:19And that's under the flag of VideoLAN.
1:43:22That's a VideoLAN project.
1:43:23So in the VideoLAN graphic, it sits in the VideoLAN world.
1:43:26And Videolan says a bunch of stuff in it.
1:43:29Go to the VideoLAN website, there's a bunch of icons.
1:43:34Like if you look, there's so many libraries, right?
1:43:37Lib DVD CSS, libdvd nav, libdvd psi, libvlc, of course, VLC Unity, libroof, liblu-ray.
1:43:51Yeah.
1:43:52And there is so many more, right?
1:43:53Like lately, the David project that we might talk about is the last project from Videolan.
1:43:59It's everywhere, right?
1:44:00And we do, we have a lib special audio lately that we announced.
1:44:04Check ISM.
1:44:05Check ISM, which is like an insane project, but amazing.
1:44:10And X264 is one of those VideoLAN projects.
1:44:13And my opinion, for example, is that X264 was the most amazing encoder ever designed.
1:44:22And this helped the adoption of FFmpeg.
1:44:24A lot of people and large companies went through FFmpeg because they wanted to use X264.
1:44:30And X264 increased the popularity on FFmpeg.
1:44:33But also, VLC had its popularity because it displayed so many files that were done by FFmpeg, right?
1:44:40So it's many projects that are intertwined and work together.
1:44:45Yeah, unfortunately, there's a thing on X where VLC is mentioned and there's people a quick reminder that it's FFmpeg inside doing their actual work.
1:44:53And that's, like I said, that's not the case.
1:44:57We work together.
1:44:59And to give you an idea, right, when I compiled VLC for Windows, I compiled around 16 million lines of code, right?
1:45:06One million of those are inside the VLC repository.
1:45:10And FFmpeg in total is probably two, around two, right?
1:45:14But so it means that so many dependencies are outside.
1:45:17And if you also look at FFmpeg per se, FFmpeg also is integrating third-party libraries like X264, ButlibOpus, and so many others, right?
1:45:26So we all depend on each other.
1:45:28Yeah, that's why I was hoping to do this episode as we're doing that just kind of joins FFmpeg and VLC because it's really two of the same.
1:45:38Like you said, binary star system, and we're all just orbiting it.
1:45:42Can we give a shout out to some of the people along the way?
1:45:45We didn't really quite talk about the history of FFmpeg.
1:45:50So maybe can you tell me about Fabrice?
1:45:54Can you tell me about Michael Niedermeyer?
1:45:56Can you tell me about some of the key figures about the eras of FMPEG?
1:46:01Because there's key eras and key people that made this possible.
1:46:07Fabrice Berlada, as you mentioned, creating the concept.
1:46:10And then probably in the 2000s era, I would call the eras tall of FMPEG is the 2000s era was Michael Niedemeyer.
1:46:17So key things he got done was exhaustive support for DivX and XVID at the time and all sorts of weird variants of what's known as MPEG-4 Part 2.
1:46:27So this predates the MPEG-4 Part 10 that we're used to.
1:46:32So this was 2000s era video codecs where there were flavor after flavor of weird, weird decoders.
1:46:39At the time in the 2000s, you needed a new player to play every different type of file format.
1:46:44So there was Windows Media Player to play Windows Media Formats.
1:46:47There was RealPlayer to play Real Media Formats.
1:46:50And those were the other key thing in FFmpeg at the time were native decoders for those.
1:46:54I actually remember being a teenager.
1:46:57I must have been figuring out there was this one player that could play, could decode these files without having separate bloated players.
1:47:06Because at the time when you downloaded RealPlayer, there was a ton of other stuff in there, a ton of ads, a ton of other things.
1:47:11And just having a simple library that was fast led to that.
1:47:15And then I think 2008 was 2008 onwards was a big change because that's when H.264 got its maturity.
1:47:25And I think something hopefully we'll talk about a bit more.
1:47:28This was the beginning of high definition video.
1:47:32So H.264 was the key decoder of that.
1:47:35So I call that the late 2000s and 2010s.
1:47:37And that's when the big reverse engineers came along and really did astonishing work.
1:47:43The beginning was a single player that could play XVID DivX, Windows Media, and RealPlayer was already a massive achievement in itself without codec packs, without weird stuff you had to download that had weird ads and weird spyware.
1:47:56VLC 1.0 was out on those times, 2009, 2010.
1:48:02And this is like where it exploded.
1:48:05Yeah, without codec packs, it just works across all these different.
1:48:10The fact so, it's just like all the codecs packs are FFmpeg inside VLC.
1:48:14Plus, we have other modules for all the type of...
1:48:16The fact that at the time that wasn't is there were weird in the 2000s, there were weird codec packs with DLLs coming from this place, with spyware, with you-know-what, it wasn't reliable, you didn't know, and having a single player that was open source or single playback module slash player that could do this that was open source.
1:48:34But I think the thing to emphasize is this task in the 2000s that Michael did was Sisyphy, and it was really the number of edge cases are beyond comprehension in terms of you could have a Chinese CCTV system that did one weird variant of MPEG-4 part two, what's known as MPEG-4 ASP, and that was a weird variant, and you had to fix that without breaking everybody else times a million.
1:48:59So you said that that's where a lot of the reverse engineering was happening.
1:49:02It started in the 2000s with the Windows media stuff, because that was proprietary.
1:49:06It started with the real media, so with Benjamin Larson, Kostyashitkov, Kostyashkov, that era.
1:49:12That was the key groundwork.
1:49:14And then in the 2010s was kind of the Paul Mahal, Kostya era, building, doing some of the most difficult codecs.
1:49:22JB maybe can talk about GoToMeeting 4 and GoToMeeting 5.
1:49:26What?
1:49:27What's the go-to?
1:49:28So let's talk about this amazing Ukrainian guy called Kostya, who was at the time living in Germany and who was in love with Sweden, right?
1:49:42And the guy was the most...
1:49:45He's like, a lot of the people in the community are very clever.
1:49:50He's one of those who are like borderline geniuses, right?
1:49:54He was able to reverse engineer extremely complex codecs.
1:49:58And he does that.
1:50:00And we do a bit of engineers with Kiran, but clearly not at this level.
1:50:03No, no.
1:50:04He reverse engineered binary blobs, which are 20 megabytes?
1:50:09Yeah, so just for reference, one megabyte binary blob to reverse engineer is probably order of magnitude, a month of work.
1:50:16And this guy is doing 20, 30 megabyte blobs.
1:50:19Maybe we'll talk about that in a minute, about the subtleties of how you do that.
1:50:22But this guy is doing it for very difficult and very obscure codecs.
1:50:26And did that for fun, right?
1:50:28And so GoToMeeting was a big problem with VLC because that was like the number one feature request for a long time.
1:50:37So I put a bounty.
1:50:39And the guy at some point said, okay, JB, I'm going to do it.
1:50:42And in a matter of two months, and then he explained how he did it.
1:50:46He was just like, oh, I looked at the code.
1:50:48Like this looked like a DCT that I used to see on WMV and so on.
1:50:53He did that.
1:50:54And the funniest part is that the code he's written is a ton of jokes.
1:51:00And there is a ton of JB, right?
1:51:03My name and Kempf and Kostia jokes inside the code.
1:51:08The code is beautiful, right?
1:51:10So one of the things I want to comment is I've gotten a chance to speak to some of the developers, some of this assembly language level people.
1:51:19And they all always make everything sound like it's kind of easy.
1:51:23There's a kind of humility because maybe just the level of what's required to do this stuff is so high that everything else seems easy, I guess, is the lesson to take away from that.
1:51:36So in the community, like some of the most impressive people are the ones doing reverse engineering and the other ones doing the assembly folks, right?
1:51:44And both of those type of people are amazing.
1:51:50X264, for example, became amazing because of a guy called Lorraine Merit, who was from the University of Washington, I think.
1:51:57At the time, yeah.
1:51:58And who was like, who made everything great and fast, doing a ton of assembly.
1:52:05Yeah, so this is like the golden era, I guess, where so many things go.
1:52:10Yeah, if you look at Kostja, for example, he looked at the world as a binary specification.
1:52:14He didn't need documentation or anything.
1:52:16I have a binary and I can figure all of this out.
1:52:19And he regularly used the phrase binary specification.
1:52:22Ah, you know, it's not a problem.
1:52:23And he went and he would go away and he would come back and he would do interesting stuff.
1:52:28Can you actually speak to the details or any add color and texture to what it takes to reverse engineer a blob?
1:52:35Yeah, so let's look at GoToMeeting, for example, is a good one because I record a meeting on GoToMeeting, for example.
1:52:42How do I play it back without needing this GoToMeeting player?
1:52:47There may not even be a player.
1:52:49I may need to send a recording of a meeting to someone that doesn't have a player or whatever.
1:52:53So first of all, there's a ton of other stuff there.
1:52:56There's an actual video conferencing client.
1:52:58You need to go and find, it may be easy, it may not be easy to find the actual module doing the decompression.
1:53:04You need a way to actually dump the YUV data from the module.
1:53:08So often it involves opening in a disassembler, trying to guess where the hooks are to incorporate that module and run that module natively to decode a sample file.
1:53:19So figure out where this module is doing the decoding process and find a way to hook in and output the raw YUV data because you will need that as a point of comparison for when you actually do the reverse engineering because you'll need to be bit exact or in some cases close to bit exact.
1:53:38And then you open up your disassembler, use a lot of intuition to go and figure out where the DCT is, where's entropy coding.
1:53:46There is a kind of not a rule book, but there's always a pattern of some sort.
1:53:51For example, GoToMeeting, you know it will be a lot of screen codec tools.
1:53:55There's also different variants.
1:53:57So often I think there's what's go to meeting four, five?
1:53:59Two, three, four, I think.
1:54:00Two, three, four.
1:54:01So I should mention here, going to perplexity, go to meeting uses its own proprietary codec for older recorded sessions historically stored in WMV files that require a special decoder to play properly on Windows.
1:54:15Without this decoder installed, Windows Media Player and some editors cannot decode the video tracks, so you may only hear audio or see a black screen.
1:54:25Boy, do I remember that.
1:54:26But this is reverse engineering that.
1:54:29This is key, right?
1:54:30Because the GoToMeeting is something that not many people know anymore, right?
1:54:34Well, you know about Zoom and Teams and so on.
1:54:36But like, now let's fast forward 10 years, 15 years.
1:54:40And like, this is a go to meeting.exe for Windows 32 bits, right?
1:54:44Which is like, oh, yeah, but I'm on Android, I'm on an iPad, I'm somewhere else, right?
1:54:48How are you going to do that?
1:54:50I'm going to be on RISC 5 on ARM.
1:54:52Those are blocked, but there are tons of files we need to support for the future.
1:54:57And this is why those type of work are exceptionally useful for humanity.
1:55:04I just have to say, though, that reverse engineering process is mind-blowing.
1:55:09It's crazy.
1:55:10It's like, it's a kind of like, you know, I've been reading a lot and I interview archaeologists.
1:55:16I mean, you just have so little signal.
1:55:18Yes, yes, you know, over time you get so much experience, you understand the structure of the original code so you can kind of start inferring basics.
1:55:27But you're like, like archaeologists with a little brush trying to reconstruct the entire human solution.
1:55:35Kiran is too humble, but Kieran has done some reverse engineering.
1:55:37Of Cineform, yeah, at the time.
1:55:39Cineform, nice.
1:55:40Yeah, at the time before, actually led to the open sourcing of that work.
1:55:45So in parallel to doing the binary side, you obviously have samples.
1:55:48In many cases, you don't have many samples.
1:55:51So you have to figure out what all the different flavors are.
1:55:54And you may have a Cineform, for example, is actually a collection of different approaches and toolkits within that codec, because often it grows naturally.
1:56:02And the hard part is finding the sample that gets you kind of somewhere to start without having to implement 10 different other things.
1:56:10So start there.
1:56:12I think thankfully at the time I found a sample by pure chance that had a lot of flat blocks.
1:56:16It was animation.
1:56:17So that really helped a lot because it wasn't using particularly complex coding tools, et cetera.
1:56:22And you could kind of get somewhere and then build up and build up until you figure, hey, here's a few bits here.
1:56:28I missed this if branch that it does and go, oh.
1:56:30So when we say samples, you mean sample videos and then you're tracking, trying to infer like, what is this product doing by observing the sample and then looking at what at the look at the machine.
1:56:43The machine code saying, oh, I have this byte is six, take this branch.
1:56:48And then a different sample, oh, it's nuts, man.
1:56:50And that is nuts.
1:56:52So you see, this is nuts.
1:56:53Then you go to things like GoToMeter.
1:56:56Mine was easy, right?
1:56:57Imagine two order of magnitude of more complexity.
1:57:02A guy alone somewhere in Germany doing that.
1:57:06And for a long time, you work, you're in a black box.
1:57:09Because a decoder, for a long time, because there is so many steps from the entropy decoding, the intra-prediction, the motion prediction, the IDCT, and so on, for a long time, you don't see anything, right?
1:57:20So you're debugging purely in memory.
1:57:22Debugging guesswork.
1:57:23And you may have the buffer that the coefficients are stored in completely wrong.
1:57:27And so you may be going down a complete rabbit hole thinking it's this and then, oh, damn, that's not, that's something else.
1:57:34And you're doing that on binaries that are tens of megabytes, millions of instructions, right?
1:57:40So you're stepping through the debugger, like one by one, you know, instruction by instruction, going, hey, this instruction changes this, this does this.
1:57:47Pausing the program on the CPU level.
1:57:49Pausing it there on the CPU level, watching what's going on, trying to figure out.
1:57:52Sometimes you need to be in a VM so yes, you can pause the VM.
1:57:56Yeah, pause the VM, dump the memory, because some of the codecs could have encryption.
1:57:59There could be like a DRM on there.
1:58:02So you need to dump the memory from a virtual machine.
1:58:05Like when I joined the École Central Paris in 2003, John Lesh Johansson basically broke the DVD specification and created DCSS.
1:58:14Showed us how he was breaking a DRM which was MP4 FairPlay from Apple.
1:58:19What he did on his laptop, and I was young, I was 21, was just like mind-blowing because he was basically debugging Windows inside a type of VM with like, wow.
1:58:30It's incredible.
1:58:31It's mind-blowing and inspiring.
1:58:33Does it get, like, from your experience and from what you've seen in the community, does it get discouraging?
1:58:38Does it get...
1:58:39People help you.
1:58:40People send you samples.
1:58:41People are keen.
1:58:42Sometimes you don't have access to an encoder.
1:58:44So this is even more difficult because you just ask and you have to ask for samples.
1:58:50I remember Videoland used to tweet for samples at one stage.
1:58:53Hey, I need this obscure sample.
1:58:55For a long time, I was, oh, I need this code egg.
1:58:57And I need this code egg.
1:58:58And if you were really lucky, you would find like, if you were unlucky, you'd get like one or two, you'd get nothing or you get one or two.
1:59:04And then sometimes you'd find a goldmine.
1:59:06It's like, yeah, my company has 100,000 of these files because we dependent on it for some reason.
1:59:11And so those are kind of the best, because then they can test bit exactness across the huge range of coding tools.
1:59:18Can you explain bit exactness?
1:59:20Bit exactness.
1:59:21So most but not all video codecs, certainly from about the 2000s onwards, have a bit exact definition.
1:59:30So every implementation must produce exactly the same bits, bit for bits, in exactly the same data that comes out of a decoder.
1:59:39For like a large number of samples?
1:59:41For a given sample.
1:59:42So Lex's implementation, JB's implementation, and my implementation of H.264 must match bit exactly.
1:59:48That wasn't the case in the 90s of MPEG-2, probably fair to say, one of the biggest mistakes the video industry made.
1:59:56And I think people who were in the room in 92, I don't know, most of both of us were in diapers or something.
2:00:01Have acknowledged.
2:00:03I would give a shout out to Yuri Resnik.
2:00:05He's acknowledged that was one of the big mistakes of the era.
2:00:08And you're saying the encoders needed to be able to run tests, and then the bit exactness.
2:00:15I mean, that's a nice thing to guarantee.
2:00:17Like, there's a parallel sort of development here on the way the web browser works, which takes HTML and displays it, and there's no bit exactness there across the different engines.
2:00:29I would point out, actually, FFmpeg is unique in the sense that it has been a winner-takes-all scenario.
2:00:35Browsers is a good analogy because it has to parse a lot of different content and render it in a particular way, like a decoder.
2:00:42But there still are multiple browser engines.
2:00:43There's Firefox's one, there's Chrome's one, there's a few Japanese ones that are pretty decent.
2:00:48That's not been the case in multimedia in general across a wide range of codecs.
2:00:53FFmpeg is kind of one it all, I suppose, in a sense, because of the fact that you can get every new codec added is actually worth more than the value of that codec itself because it makes the whole thing better.
2:01:05Man, this is really cool.
2:01:07Going to perplexity, Yuri Reznik is a multimedia signal processing researcher.
2:01:11Got his PhD in computer science from Kiev University with over 150 papers and more than 80 granted U.S.
2:01:17patents, contributor to major multimedia standards, including Issues 6.4, MPEG-4 AVC, H265, MPEG-4 ALS, G718.
2:01:30G71 is telco stuff.
2:01:32And so he was more connected to comments.
2:01:34Real audio, real video, right?
2:01:35That was very important, that's encoder, break cove, contacts.
2:01:40Man, I need to hang out with Yuri.
2:01:42He's legit.
2:01:43And he's like one of the most nice persons ever, right?
2:01:47Like, for example, for my startup that I'm doing right now called Kuiber, right?
2:01:53I met Yuri because I met him every year at the Mile High Video conference, which is in Denver.
2:01:59And he gave me so much good ideas and good things.
2:02:03He's like a really amazing person.
2:02:05He tells us how great it is to even know us.
2:02:09And you look at that and I think it's the other way around, Yuri.
2:02:14That reminds me of a thing that you mentioned to me about FATET testing and the insanely rigorous process that's used to test everything that's incorporated into FFmpeg.
2:02:26Can you take me through the testing process?
2:02:27Yeah, so FFmpeg has a system called FATET FFmpeg Automated Testing Environment.
2:02:32Because FFmpeg runs on so many different OSs and can be compiled with so many different compilers.
2:02:38There's been a crazy number of configurations.
2:02:41So you can see the absurd combination of compiler variants, operating system variants, instruction sets.
2:02:51You can see at the top, Mac OS has tons of different variants because it has iOS, it has TVOS.
2:02:55I'm looking at a page, fate.ffmpeg.org, 81 minutes ago, 76 minutes ago, looking at the different architectures, the operating system, the different compilers, Apple, Clang, version.
2:03:10Combinations are insane.
2:03:13These are all run by volunteers.
2:03:14So these are all volunteer systems.
2:03:16The ones at the top, for example, the Macs I host in my office, for example, host all sorts of different stuff.
2:03:22Other people host other things.
2:03:24So it's really there to make sure, because FFmpeg does quite complex C code, for example, you do have miscompilations.
2:03:31So the compiler will sometimes compile C code incorrectly, for example.
2:03:36This happens once in a while.
2:03:38Oh, there's like, there's a log of all the compilations.
2:03:41Yeah, log of all the compilations, all the tests.
2:03:43I think one of the other ones will show all the tests passing.
2:03:46If you click, you can see all the tests back.
2:03:49All tests successfully.
2:03:50Logs tests, yeah.
2:03:52So you see all those tests are passing of all the different codecs, all the different filter transformations.
2:04:00The level of scale is quite crazy on all the combinations.
2:04:04It's not just a matrix at this point.
2:04:06It's like a pivot table of different combinations.
2:04:08That's nuts.
2:04:10And it's a key part of what we do because you may be able to test something locally, you make a change, but actually that breaks GCC version 11 on Mac or something like that.
2:04:21And you're able to then fix that.
2:04:23We also have miscompilation.
2:04:24So the C code, sometimes the compiler can have a bug in it where it creates the wrong output.
2:04:29And that can have quite a big effect sometimes on a video because of the way frames have dependencies.
2:04:35Even a small change in the output can cascade to actually quite big glitches.
2:04:40You see PowerPC, you see risks.
2:04:43CPC, there was risk.
2:04:44There was weird stuff in the past like DEC Alpha.
2:04:48You see Visual Studio, different libraries.
2:04:50Visual Studio, Intel Compiler, Apple Client, you name it.
2:04:54What are some of the pain points?
2:04:55Like maybe do you have emotional triggers, maybe nightmares about a particular operating system, a particular container, codec combination?
2:05:06For me, it's really easy because so I have a day job.
2:05:09My company builds, the company I started builds equipment for broadcasting sports matches between TV stadiums and studios, for example.
2:05:18We have to work with 10-bit video and 10-bit video has a set of challenges that you can't process 10-bit data natively on a CPU.
2:05:28So that means you have to stick it in 16 bits.
2:05:32So that means you have six wasted bits.
2:05:33So there's different packing formats to actually pack the data more efficiently because when you send that over a network, you lose, because you need to save that 40%.
2:05:42For example, on PCI Express, you may only have bus bandwidth to do that.
2:05:46And so I think internally we have about some are industry ones and some are internal to our own hardware that we build.
2:05:54We have, I think, a five by five or six by six matrix of every single format to every single other format conversion.
2:06:01In fact, one of them I sent you, and they're all written in handwritten assembly, and they're all written, and they all support different CPU generations.
2:06:09So this is really traumatic, handling all these different combinations times a million.
2:06:15By the way, the company you're talking about is Open Broadcast.
2:06:17Yeah, so no relation to the free OBS streaming service.
2:06:20Yeah.
2:06:21But JB and I have started companies, broadly speaking, around the FFmpeg VLC ethos.
2:06:27So that's really low-level work.
2:06:29So sorry, most companies, this wouldn't be written in assembly.
2:06:33It would be accepted that C is fast.
2:06:36As you can see from that, C is not fast.
2:06:39So here it says 62 times faster than C.
2:06:44Yeah, so it's taking those, the ethos of doing low-level programming, real-time programming, and using that for commercial applications.
2:06:54And JB and I have started companies around that, in many cases, hiring developers from the open source community to use that ethos.
2:07:02And so that's a great example of some of the things we're doing.
2:07:07In most companies, it would be, I'll write this in C and it's fast and we're done, but actually you can get a lot better.
2:07:12For me, like some of the headaches we have is around some OS that are difficult to support, right?
2:07:20Because if you look at VLC and thanks to Fate and FFmpeg, we run on the last version of VLC runs on Windows XP and still runs there and runs on Windows 11.
2:07:36We work on macOS 10.7 to the latest macOS, whatever it is, right, 26.
2:07:44We work on iOS since iOS 9, where we are actually iOS 26, right?
2:07:50We support many types of Linuxes, BSD, Solaris.
2:07:55The last version still runs on OS 2, right?
2:07:58Like there is maybe 10 users of OS 2 in the world, and one of them is maintaining VLC.
2:08:03Then you realize that this very small team around VLC and using FFmpeg Codecs and all the other ones support more OSs than Microsoft or Google or Apple, and they have infinite amount of power and resources.
2:08:20But for example, the worst is iOS.
2:08:24In order to build on iOS 9, we need to do some very clever mixing of several versions of the Xcode IDE and SDK from Apple, from several versions, and do a type of Frankenstein version of that so that we can still support iOS 9, which is not supported at all by the compiler of Apple in order to still run on ARM32 on iOS 9.
2:08:51And you've seen on FAITE that it was still supporting iOS 9, right?
2:08:54So my headaches are mostly related to the support of so many OSs.
2:09:01And it's important because we receive so many people saying, hey, thank you.
2:09:05I still have my iPad 2 to watch movies and it still works on iOS 9, right?
2:09:11And it's also an impact of not forcing people to buy new hardware when it works fine.
2:09:16If you optimize it correctly, which brings us to what we were saying about assembly, it's also fighting the fact that you need to buy something new non-stop while you could optimize more, which is a lost art.
2:09:31You gotta tell me about this lost art or this carriers of the flame of assembly.
2:09:41What is assembly?
2:09:43Why is it beautiful?
2:09:44Why is it challenging?
2:09:46How does it work?
2:09:47So when you write assembly code, you write this using the instructions that the actual processor is using directly.
2:09:53So most of the time you would write in a language.
2:09:56Let's take C is a good example.
2:09:57The compiler would use that to create assembly language and machine code instructions for you based off your C code.
2:10:06And there's a specific flavor of assembly that we use in FFmpeg that's called SIMD, SIMD, single instruction multiple data.
2:10:14So this means, for example, say I want to add five to a number in scalar assembly.
2:10:21So this is what's known as you work on an individual element.
2:10:24So I want to have a number of, I have a number 10 and I want to add five.
2:10:27I use the add instruction and I add five to ten and I get 15.
2:10:32With SIMD, with SIMD, I can have a whole vector of 16 different numbers.
2:10:36They could all be different.
2:10:38If I want to add five to that, I can run one instruction.
2:10:42And that one instruction sums all 16 elements.
2:10:47And that, as you can imagine, lends itself very well to video.
2:10:51Video is a pixel grid, so I can perform operations on multiple pixels at the same time.
2:10:58The key thing that we do differently in FFmpeg is we don't use any abstractions or any major abstractions on top of that.
2:11:04So there's a part of the world that uses what's known as intrinsics.
2:11:08So these are C functions that behave very similarly, but not quite the same to writing assembly by hand.
2:11:15So the registers that data is stored in on the CPU, the compiler allocates those for you.
2:11:23And so the key thing to understand was when we write SIMD is we have a 10x, not percentage, 10x to 50x speed improvement.
2:11:32That function is 62x.
2:11:34That's nuts.
2:11:35On the FFmpeg account, as you know, posts and tweets a lot about that to try and say, hey, we're doing this stuff.
2:11:42You are a person who sees the beauty in assembly, but it's also extremely useful for these kinds of applications to actually significantly outperform even C, which is crazy.
2:11:53It is necessary.
2:11:54Yes.
2:11:55Right?
2:11:55Because one of the projects that we need to talk about is called David, right?
2:12:00So David is a decoder for the format that was done by Alliance for Open Media, which is a video decoder called AV1.
2:12:11So for people who don't know, we've been talking about H264.
2:12:15AV1 is another hugely popular standard and codec that is increasingly taking over the internet.
2:12:25And when this format was launched, many people said, especially even from the Alliance from Open Media, right, which is Google, Netflix, Amazon, Mozilla, they say, well, this format is so complex, it must be done in hardware to do decoding, right?
2:12:40And well, I arrived with a few other people, mostly Ronald, Henrik, and Martin, we said, we need to have an extremely good software decoder because it's going to take time to have hardware.
2:12:54And so we wrote this project, which is beyond insane.
2:13:00We are talking about 30,000 lines of C, but 240,000 lines of handwritten assembly.
2:13:09Right?
2:13:09Handwritten assembly, 240,000 lines.
2:13:15That's incredible.
2:13:16I mean, some of the stuff we're talking about is probably the biggest assembly code bases.
2:13:22To give you an idea, and Karen can correct me, but I think the FFmpeg has 100,000 lines of assembly for all the codecs.
2:13:30All the codecs.
2:13:30And just this one has 240,000.
2:13:34It's a video land project, of course.
2:13:36And it is optimized at the maximum because the motto when we're starting the project is every cycle matters, right?
2:13:47Every cycle matters because David is used in VLC and in some software AV1 playback stacks.
2:13:53We are talking about probably 3 billion devices which are going to decode video non-stop because, for example, 30% of the video from Netflix are now in AV1, 50% of YouTube, right?
2:14:06So, and you often don't have a hardware decoder because not many devices have a hardware decoder.
2:14:11And with David, we realized that in one or two cores, you were able to decode 720p correctly.
2:14:18So it is like literally incredible, right?
2:14:22David, look at that.
2:14:23Yeah, so this is another spicy tweet from you.
2:14:27This is what peak video codec should look like.
2:14:3179.9% assembly, 19.6% C, and 0.5% other.
2:14:38And what's incredible is with those tweets, which is factual, people get crazy.
2:14:45They are unhappy, right?
2:14:47For the last two years, they go crazy.
2:14:48No, intrinsics is fine.
2:14:49The compiler is...
2:14:50Oh, they go.
2:14:50You can optimize your compiler auto vectorization.
2:14:53It's your fault.
2:14:54You don't understand.
2:14:55And we've tried that forever, right?
2:14:57For two years and two years later, showing hundreds of examples of handwritten assembly.
2:15:03No, no, no, you're doing it wrong.
2:15:04The compiler can do this.
2:15:05So we should actually just articulate a little clearer.
2:15:08So the intuition there from the software engineering folks, when you have code like, okay, let's just take an example, C ⁇ .
2:15:14There's a compiler that's doing a lot of the optimization.
2:15:19And the assumption is if you have a good enough compiler, if you continue to improve the compiler, you're going to generate code that can perform like optimal performance.
2:15:29You cannot possibly beat it.
2:15:31And you're consistently challenging that thought that if you...
2:15:34By orders of magnitude.
2:15:35By orders of magnitude, handcrafted assembly can outperform C.
2:15:40The two things that they tell us is, yeah, but modern compilers have auto vectorization, right?
2:15:45Because SIMD that we're doing is vectorization.
2:15:48And like, it's not even close, right?
2:15:51It's not even close, right?
2:15:52It's not like 5%, 10% slower.
2:15:54It's multiple times slower.
2:15:56So can we, I don't know if you can say something philosophically, because there's a lot of great software engineers, great engineers, great machine learning people.
2:16:04Kaupathi will listen to this and say, what's the intuition he's supposed to get from this?
2:16:09What are we supposed to...
2:16:10Karpathy learnt assembly because of the tweets, by the way.
2:16:13He's like, oh, I think this is assembled.
2:16:14Let me figure out what's going on.
2:16:16And you know the way he documents his work and so.
2:16:18Philosophically, what's important to realize is that we passed the time where hardware was going so much faster, right?
2:16:26We're at the end of the Moore law.
2:16:27We have limitation for AI, for memory.
2:16:31You need to go down in the stack and optimize more to get more power from what you have because our requests for power, CPU power, GPU power are exploding while the hardware is not exploding in speed, right?
2:16:48So what people do is that they add more cores, right?
2:16:51But that's basically like at some point you can't add 250 cores, right?
2:16:56So what we do is to take every inch of the machine.
2:17:00Not just that.
2:17:01We abuse the machine.
2:17:02We go and we use the machine in ways that the creator didn't expect.
2:17:07Sometimes we use an instruction that's completely unrelated to what we do.
2:17:10We use a cryptography instruction in video processing to do nothing related.
2:17:14And one of the other things that we do, for example, in David, which is a bit crazy, is that we don't use the function calling convention from the operating system.
2:17:26We should explain that.
2:17:27That is extremely complex.
2:17:29But basically, usually when you move from one function in code to another, there is a way to save the registry, the state of the CPU to enter another function.
2:17:39And this is like standard.
2:17:41It's a bit complex.
2:17:42I would simplify this a bit.
2:17:44So David does things to abuse the calling convention.
2:17:47You could define the calling convention as I've written a function and I want to call another function.
2:17:52How is the data shared between the functions?
2:17:55Because there's a convention, what's known as a calling convention.
2:17:58And what David does for optimal reasons is create its own calling convention sometimes.
2:18:05So if I want to call Lex Friedman's library, we've got to agree on a convention so that I can share data with you in the assembly language space.
2:18:13And one of the challenges in assembly is every operating system, well, not every operating system, but there are at least four that I can think of on x86.
2:18:20Linux 32-bit, Windows 32-bit, Windows 64, Linux 64.
2:18:24They all have their own calling conventions.
2:18:26And so one of the amazing things Lauren Merritt did, who we talked about before, was create a very lightweight abstraction layer.
2:18:32So you could write your assembly code once and it handled all the calling convention stuff for you, which was always a problem because you had to manage four different variants.
2:18:42But David takes this even further that for speed reasons, it does its own calling convention within itself to bypass the kind of rules, the rules of sort of functions and say, okay, actually, I'm going to call a function this way because I know it's within my library.
2:18:58Does it have to be special to every single operating system?
2:19:01Well, if it's custom, no.
2:19:02But the challenge is in general, yes, and in terms of each instruction set.
2:19:08So the thing to also emphasize is we do this on every instruction set.
2:19:12So every instruction set has its own handwritten assembly, which is even more crazy.
2:19:16And that matrix has got bigger in recent years because of RISC-V, because of ARM64, because of the new SVE.
2:19:25There's SME.
2:19:26x86 has AVX512, AVX.
2:19:30So we do runtime processor detection.
2:19:32We see what the machine FFmpeg is running on or David's running on is capable of.
2:19:36Because you could be on a laptop from 2008 where this isn't there.
2:19:40Runtime detection.
2:19:41We set function pointers accordingly.
2:19:44And then from then on, off you go.
2:19:47Or you could be on a machine with RISC-V.
2:19:49Yes.
2:19:50And in all that, we don't even respect the calling convention of the operating system in order to be faster because we know that we are going to be called from within our binary.
2:19:59So we can share data without saving all the registry in the common way because that can lead to loading and saving registry on the L1 and L2 CPU and gets us faster.
2:20:10So that's why I said that understanding CPU architecture, computer architecture is key.
2:20:17And this is also why it's handwritten.
2:20:19I don't know anyone.
2:20:20I've never heard any other project than David doing that.
2:20:23This is what Kiran calls it an art, right?
2:20:26It is an art.
2:20:28I think in a mass world, there isn't something on billions of devices.
2:20:31I know there are some specialist industries.
2:20:33I know in high-frequency trading, they take this really seriously, where they're receiving feeds from a market and they need to react within X number of microseconds.
2:20:41And so the instructions matter, but that's not a mass, you know, a mass-produced thing that's on a billion devices.
2:20:46That's hyper-specialized, running on hyper-specialized hardware.
2:20:49We're running on all hardware from...
2:20:52Sorry to linger on it, but like that's a really counterintuitive, almost like revolutionary idea here that there's a huge amount of value to assembly.
2:21:03Like what are we supposed to take away from that?
2:21:05Like what, you know, there's a bunch of people listening to this.
2:21:08They're basically like, sorry, from myself included, you know, I programmed for many, many years in C C going up the standards of C ⁇ , fell in love with C ⁇ , even with metaprogramming and so on.
2:21:19And then transitioned more and more because of machine learning about 15 years ago to Python.
2:21:25And so like for me in this Python world, JavaScript world, now vibe coding where I'm just using natural language, sitting in my jacuzzi, drinking a drink and just talking to the computer, like record stops.
2:21:40Why is the value to go back all the way down to the low level?
2:21:44Because you can get more power per dollar invested, right?
2:21:49And sometimes it's going to be a problem that is limited by your hardware.
2:21:54A good analogy is what you see in quantitation in LLMs, right?
2:21:59And people are doing, oh, I'm going to do that in FP8 or FP4 or some crazy things like Microsoft Fear who did in 1.5 because you're constrained by memory, because you're constrained by the machine you can run, because at some point we are doing real time.
2:22:16And I believe this is going to happen on AI inference also, is that at some point you need to get faster.
2:22:22And you cannot always get harder, more powerful hardware, right?
2:22:26So you need to analyze code and see where, like, where is the mission critical?
2:22:32Where is the things that are called non-stops?
2:22:34And for example, David is a good example.
2:22:37It's going to be run billions of hours per day.
2:22:41That makes sense.
2:22:42It doesn't make sense to be on the glue of Fmpeg CLI.
2:22:47It makes sense over there.
2:22:48Yeah, and this has to do, also we'll talk about it more, but your new effort, your new company, Kyber, is doing that kind of thing for ultra-low latency.
2:22:57So the slogan being every millisecond counts.
2:23:00I mean, you're actually extremely highly constrained in some dimension.
2:23:06We're also arriving at a point where we've done so many great things, but the hardware is getting back to us, right?
2:23:14Because cost is increasing, because we need more power.
2:23:17And so you're limited by either your CPU, your RAM, or your networking.
2:23:22And you need to optimize.
2:23:24And this is where value is going to be, especially because like doing AI is going to help do the programming of like business, right?
2:23:33And so the core thing that you will not be able to Vibecode are optimization for the hardware to be as fast as is possible.
2:23:43I'd love to talk to you about who and how should learn assembly.
2:23:49But first, I think we need a bath and break.
Ad · Lexfriedman
2:24:01And now, back to the episode.
2:24:04All right.
2:24:04And we're back.
2:24:05There's this nice repo with the assembly lessons.
2:24:10First of all, do you think developers should learn how to program an assembly?
2:24:14And how would you go about learning it?
2:24:17What is this ASM-lessons?
2:24:21So I personally wasn't happy with the way assembly is taught in books and online because it's very grammar focused.
2:24:29And you don't, in general, learn a language from learning the grammar and the structure.
2:24:35You learn a language by asking someone what their name is, and you start from there.
2:24:39And you go and solve real problems that you have when you want to communicate.
2:24:43You don't learn sentence structure.
2:24:45This is the interrogative and the adverb.
2:24:47And all the assembly books seem to be doing like going through every instruction, even ones that aren't really relevant, explaining what they all do and how they actually doesn't really change much.
2:24:57And the other problem that we have in our community is assembly is taught sort of hand to hand, like person to person, like blacksmithing one by one.
2:25:05That's the only logical sort of analogy.
2:25:06And that doesn't really scale online.
2:25:09It doesn't do other things.
2:25:10So I started a set of assembly lessons in the way it's done in FFmpeg, which is a little bit different to the way assembly in general for, I don't know, trying to think the other good big use case of assembly is in embedded devices, in really low power, cheap devices.
2:25:27And that's completely different to what we're doing here.
2:25:30I think it would be good if you could highlight the requirements, which are quite simple.
2:25:33It's high school mathematics and C.
2:25:36And actually not even C, really, really is pointers.
2:25:38To emphasize, yes, we've talked about how brilliant this stuff is, but high schoolers like Daniel Kang have written assembly in FFmpeg.
2:25:47I think there's been contributions because of these lessons.
2:25:50So it's really about trying to get this dying art to continue because we've shown it's possible with David to produce something amazing.
2:25:59There's still a lot of codecs in FFmpeg that are only maybe partially assembly optimized.
2:26:06And so it really starts with basics and continues, explains a lot of the jargon, a lot of the syntax.
2:26:11It doesn't really try and explain to you, you know, interrupt handlers and interrupt instructions and all of these different jump targets.
2:26:19It actually makes this really vector focused.
2:26:21And describes all kinds of registers, general purpose registers, vector registers, really nice examples.
2:26:30This is cool.
2:26:32It's a classic example of Earth Hampic.
2:26:33But some of this assembly language is really beautiful.
2:26:37And I think it's beautiful because it's kind of like flying a Spitfire.
2:26:40It's really aviation at its purest, but also pushing the aircraft beyond what the designer thought was possible.
2:26:48So we're abusing, for example, sometimes cryptography instructions to do certain things.
2:26:53And there's a level of beauty in art where it's really you and the processor.
2:26:59There's nothing in between.
2:27:01It's you and the joystick of the cockpit.
2:27:04And you move that joystick and it's physically collected to the Elurons.
2:27:07And you can push that plane beyond what it can normally do.
2:27:11And there's a level of beauty and amazingness to go there.
2:27:16But I don't think the sort of person-by-person assembly that someone taught me and I've taught multiple people is going to work long run because of the particular flavor and the way that we do it.
2:27:29It's literally, no, I should, I was going to say wizards handing it down.
2:27:34I realize I look like a wizard wearing this hat.
2:27:37But you're basically just like the sages, the wise sages handing down the craft.
2:27:42Can I say about LLMs?
2:27:44Can they help?
2:27:45They had more of an understanding than I expected, but they are still...
2:27:49I've asked it questions and it still goes and starts hallucinating.
2:27:53Not hallucinating, but making modifications.
2:27:55And then I go, is it bit exact?
2:27:57No, fix it.
2:27:58And then it just goes and does the same thing.
2:28:00And it's going...
2:28:01There isn't the corpus of information like Stack Overflow to work on.
2:28:06There is not enough data to train on.
2:28:09And this is the biggest issue.
2:28:11I started my career actually doing some assembly for Itanium, right?
2:28:16So the Itanium is a dead processor type, right, which was done by Intel in HTTP a long time ago when they wanted to do 64 bits.
2:28:25Well, they lost, and then we got AMD who did it AMD64, which became x64.
2:28:31But Itanium was extremely interesting in the sense that those were processors who had a ton of computing power to do floats, FMAs, which is similar to what we need now for LLMs, right?
2:28:44And you could pack three operations per line that could be loaded.
2:28:50So basically, you had an output of basically six billion of operations per second, but the bus, the memory bus, only allowed 1.5, right?
2:29:00So your CPU was four times faster.
2:29:03So you had to do crazy things to pack things in memory, reuse, registered.
2:29:08And those type of semantics, no language could do that, right?
2:29:12So like I have the Itanium programming book because Intel did amazing books, but that's exactly what Kieran says.
2:29:21If you don't know what you're going to do, it's impossible to read, right?
2:29:26It's a ton of jargon and so on.
2:29:28While those lessons are amazing because they are targeted to a real problem and you can do it yourself.
2:29:34And people have.
2:29:35People have.
2:29:35There are patches and they say, oh, I studied your lessons and here's my first changes.
2:29:39That's amazing.
2:29:40And part of that in the lessons is a framework called x86 Inc.
2:29:45written by Lorraine when he was working on X264.
2:29:49And it allows you to do more things about that to create a type of like not caring too much about different colin convention.
2:29:57And we had a lot of students who gave code to X264 using that a long time ago, right?
2:30:05So it's really doable.
2:30:07And I believe it's necessary to understand assembly language, even if you don't do it much, to understand what's going on inside your computer.
2:30:17And that will make you a better programmer.
2:30:20And I assure you that because doing that, you will understand some of the architecture of the memory inside your computer, right?
2:30:27Understanding register, L1, L2, L3, RAMs, SSDs, disk, and so on, which are very important because then you have a good programming culture that will make you a better programmer.
2:30:40What do you think about the Rust programming language?
2:30:42Because that's a bit of a meme.
2:30:44We have very different opinions with Kieran.
2:30:46I think it's valuable what they're doing in terms of memory safety as a concept.
2:30:50Can it achieve some of the speed up that assembly achieves?
2:30:55Not assembly by hand, no.
2:30:56I think that's a given.
2:30:58C potentially, but I see it very, it has a very big Esperanto vibe about it.
2:31:03It's like, we're going to solve this and we're doing this in a particular way.
2:31:07Meaning is a bit too utopian.
2:31:09There's a lot of focus on the self-importance rather than solving real-world problems.
2:31:13It reminds me of the Sinclair C5.
2:31:16Sir Clive Sinclair of Sinclair Computers built a car and he said, oh, everyone will be traveling around in one of these electric cars.
2:31:23And it was, Rust reminds me of that, where I think the community doesn't quite understand that in order to get people to move, you have to build something that's as good as, if not better than what you have now.
2:31:38Yes, people are doing Rust rewrites, but if they only do 85, 90% of the feature set of what we need, like things like core utils, that last 1% takes 99% of the time.
2:31:53To use Elon's famous quote, prototypes are easy.
2:31:55This kind of stuff is easy, but to get a real electric car, you have to make a car as good as, if not better than what we have now.
2:32:01And Rust isn't in that stage yet.
2:32:04I don't think anyone would object to seeing Rust code in FFmpeg, but it needs to work as well and support the same unit testing as everything else.
2:32:13It needs to be flawless.
2:32:15It can't just randomly break.
2:32:16They can't just randomly break ABI when they want to.
2:32:20It needs to have, I think, more, I think it still has only one compiler implementation.
2:32:25So it's got to be as good as, if not better.
2:32:29And saying, hey, here's my utopia of memory safety isn't enough, even though we probably all agree that that's the goal.
2:32:37So I've done a ton of Rust.
2:32:40And the two major topics I had was adding Rust modules inside VLC.
2:32:45One of the reasons VLC got popular, which was one of the main architecture decisions, is that VLC is a very small core and a ton of modules, right?
2:32:54And so you can write modules in C, in C ⁇ , in Objective-C, and anything that is basically interoperable with C.
2:33:04And so we did some Rust modules.
2:33:07And so I have experience on that, and I wrote some of it.
2:33:10And also, like, my new startup, Cole Kyber, is an open source project, mainly done in Rust.
2:33:16What Rust is extremely good in the sense that it's a better C ⁇ that cares about memory and allows you to do things about memory ownership that no one else can do so far.
2:33:32However, it's great when you start a new project from scratch and you do everything in Rust.
2:33:38But it's very not good when you interrupt with the existing part.
2:33:42And some part of the Rust community believes that they need to rewrite everything and everything will be better with Rust.
2:33:48And the answer is like, no.
2:33:50Like, I'm almost always in all my years of being engineer, manager, CTO of startup and so on, don't rewrite.
2:34:01That's the initial instinct for a lot of people when they show up to a code base, probably before Lams, is like probably because they don't understand the wisdom of the way things have been done in the past, they say, well, we need to rewrite it.
2:34:16Hence why there's a thousand JavaScript frameworks.
2:34:19But the reason is the following.
2:34:21And this is very important to understand.
2:34:24It is an order of magnitude easier to write code than read code.
2:34:29And you see that also with LLM.
2:34:31They can write code.
2:34:33Analyzing is a lot more difficult.
2:34:36And so when you arrive to a very complex piece of code, you don't understand it, right?
2:34:44Because it's so much more effort to understand the code from someone else because you don't have the thought process.
2:34:51And often I joke about some languages, mostly Perl, for example, which has very complex syntax.
2:34:59And imagine I am at my maximum intellectual efficiency in programming, right?
2:35:06And I write the best code ever.
2:35:08I will not be able to understand myself six months later, right?
2:35:11Because reading code is more difficult.
2:35:14So very often you arrive, you don't understand all the wisdom, all the business logic, the reasons that were done that is maybe not documented.
2:35:22And you say, well, I'm going to rewrite it.
2:35:24And the thing is, no, you don't, right?
2:35:27Because that's, as Kieran said, right?
2:35:28I'm going to rewrite core utils in Rust.
2:35:31And then, of course, you arrive very quickly at 80%.
2:35:34Then 90% takes a bit more time.
2:35:37And then you got the last ones.
2:35:40On the other side, so for new projects, it's great.
2:35:43Everything related to parsing files, networking, because of the memory checker, borrowed checker, it's amazing and there is nothing else.
2:35:53To answer a bit differently for us, imagine I take a piece of software like David or S264, right, which has a ton of runtime in assembly, right?
2:36:06I rewrite the C part in Rust, right?
2:36:08So it's more secure.
2:36:09Yes.
2:36:10But then you arrive into the assembly and you can jump anywhere in the memory because we are doing handwritten assembly.
2:36:16So even if I rewrite the C part in Rust for security reason, you break all the security when you write handwritten assembly because we can jump anywhere.
2:36:29So in my opinion, we need to do something that is secure assembly, right?
2:36:35So which is compile time, check the assembly, which is similar to the check assembly project that we're doing on David and X264 with VideoLAN, is to start instrumenting your assembly at compile time to check that it's not jumping anywhere in the memory, because else you might rewrite a part of C in Rust.
2:36:55But if you want to have the same performances, you're going to have inline assembly, and so you destroy your whole security model.
2:37:02So that's a bit what I think about Rust.
2:37:04I just want to say on a personal level, I'm so in awe about the assembly.
2:37:09I actually, once in a while, it never gets old, the speed improvements to show 62x.
2:37:16There are months on a personal level, I run our internal test suite at work and just see, I'm still in awe at the gains we have.
2:37:24There's a source of joy and happiness for programming for different reasons.
2:37:28But I think one of the greatest happinesses is in the optimization of code.
2:37:34And it sounds like you're like at the cutting edge of the wall.
2:37:38That was cool.
2:37:38In the community, I want to speak about two people who are wizards of assembly, right?
2:37:46Two of them are actually working, living in north of Europe, Sweden and Finland.
2:37:53And Henrik Gramner knows so much about Intel x86 assembly that when we ask questions at Intel about things, they tell, like, why are you asking us Intel?
2:38:07You have Henrik.
2:38:08Henrik knows better.
2:38:09He knows all the cycles of almost all the SIMD instruction by all the CPU generation.
2:38:17Oh, yes, this is a P4, this is a Nehalem, this is a Code 2, et cetera.
2:38:21That person is like the best person on assembly in the world.
2:38:25And he's the nicest person that you've seen.
2:38:31He arrives, you don't see it, he's amazing.
2:38:33And the other one is called Martin, Martin Storsio.
2:38:38And he's doing mostly the same on ARM, right?
2:38:42So Neon, right?
2:38:43And iPhones and Androids and so on.
2:38:46And he codes in assembly on his phone, editing it with the crappy keyboard, like virtual keyboard you have, while watching his kids play in the playground, right?
2:39:02Like this is just like wizard level.
2:39:06So those two people are like...
2:39:08Yeah.
2:39:09So a part when you're programming assembly at that high level, a part of that is knowing the architecture that you're programming about.
2:39:15So x86.
2:39:16And ARM in particular, yes.
2:39:17ARM in particular.
2:39:19But XX6, I mean, these are complicated architectures, right?
2:39:22But ARM, in some ways, is more complicated.
2:39:25x86 with out-of-order execution is not so bad.
2:39:28ARM, you really need to understand all the different generations of ARM processor because they're all different.
2:39:33There's A72, et cetera, et cetera.
2:39:36And there's the Apple variant.
2:39:37There's this variant, there's that.
2:39:38And you need to write code that works efficiently on all of them.
2:39:41x86, well, broadly speaking, you have Intel AMD, you have sub-variants, but generally speaking, there's something fast is going to remain fast on all of the variants.
2:39:52Whereas in ARM, it's a completely much more complicated ballgame.
2:39:56We're taking a non-linear journey through history here, but we're
2:40:00Talking about Michael Niedermeyer, I wanted to ask about this.
2:40:07For a time, there was a split in FFmpeg and lib AV.
2:40:13Yes.
2:40:14So in open source projects, sometimes you disagree, right?
2:40:23That's such a nice way of putting it, yeah.
2:40:25And the good thing is, because of the license, you're allowed to basically do your own, right?
2:40:30And this is normal, and this has happened all the time, right?
2:40:34For the point there was GCC at the time of GCC2 and EGCS, which became then GCC3, right?
2:40:42There is what we told KHTML with WebKit, with Blink.
2:40:46It is a same process.
2:40:48And also, like, when I want to do a new feature today in VLC, I fork, I do my thing on my own, and then I merge back to the community.
2:40:56So there was a split in the open source community on FFmpeg, which became Libayv and FFmpeg.
2:41:01And after a few years, well, the community merged back and people moved on.
2:41:05It's a bit drama that is normal in open source community, but forks are even, they're important because they change the statue of a community.
2:41:19Not talking about FFMPEG and LIBE here, but the GCC fork made GCC a ton better because some people wanted to change the architecture fundamentally to make it faster.
2:41:31And of course, it's always a question of people and so on.
2:41:35But in the end, you realize that FFmpeg today is better than it was before the fork.
2:41:42And now, well, we're back all together, right?
2:41:45And I spend a lot of time, and Kian can say, in the community.
2:41:50It's not often, to be honest, very well explained because a ton of the reasons are not very public.
2:41:58But I think that's normal.
2:42:01And that's good.
2:42:02Yeah, I mean, you're making it sound really nice.
2:42:04But there's pretty heated battles inside open source projects.
2:42:08I mean, it is a very passionate community, and you are kind of in a distributed way have to define the direction of things.
2:42:14So here, looking at perplexity, FFmpeg and LibAV split in 2011 mainly over project governance, leadership style, and development processes, not because of a fundamental technical disagreement.
2:42:26FFmpeg effectively absorbed LibAV's work while libAV withered and most distributions and developers moved back to FFmpeg.
2:42:35Yeah, that was a weird, that was, from a user's perspective, that was a weird experience because, you know, I'm a Linux user, so, you know, whether it's Ubuntu and so on, all of a sudden, I think for a little bit, Ubuntu, I feel like, am I remembering correctly, switched to LibAV?
2:42:5212, 14, something like that.
2:42:53Yeah, something like that.
2:42:54And then they switched back to Fitback.
2:42:56I was like, what is happening?
2:42:58So you get to feel the ripple effects of the different internal debates that are happening.
2:43:06To be fair, on Apple, when you type GCC, you get C-Lang.
2:43:09They did something like that as well.
2:43:11Yeah, so to me, it's like the fork was like heated drama, but most of the development from LibAV was merged back into FFmpeg, right?
2:43:21So de facto FFmpeg got a superset around LibAV, and so that gave the user, because in the end we worked for the users, a larger set of features.
2:43:31And a ton of things that were discussed, for example, the debate on reviews and on how we push, are something that now is completely settled in FFmpeg and is following mostly what everyone in the community agrees, right?
2:43:48So de facto, everyone who was active on DBAV came back to work on FFmpeg because the disagreement were fixed.
2:43:57And in the end, FFmpeg is stronger than it was before, right?
2:44:02And I know people love drama, but well, my main concern, I understand.
2:44:08I think looking at the long history, it's all for the good.
2:44:14But I am concerned because there's so few humans that are critical to the success of open source projects that I have seen it be a psychological toll on folks.
2:44:29And sometimes leads to burnout.
2:44:31So you have these incredible people that are at the core of open source projects.
2:44:35There is a moment that happens because what is the motivation of doing it?
2:44:39Ultimately, it's because you're passionate about it and it makes you happy.
2:44:42And at a certain point, you wake up and it's like, this has been a bit too much heat from the drama.
2:44:47So at the project level, the project continues and often flourishes.
2:44:52But sometimes there's these individual humans.
2:44:55They're just like, I've had enough.
2:44:58Yeah, but it's not just about folks, right?
2:45:02What you are referring to is one of the most challenging and most interesting part of open source today is maintenance burnout, right?
2:45:13And AI is a problem because of that.
2:45:16And Daniel Steinberg, which is the maintainer of Curl, who's probably one of the best promoter of open source in the world.
2:45:25He's, by the way, a member of the European Open Source Academy with me.
2:45:29So I'm very humbled to be on the same community as him.
2:45:32He's against what he calls AI slop, right?
2:45:34Because it gives a ton of fake reports or bad reports, bad patches.
2:45:42And then a lot of maintainers have a lot of burden to maintain the software.
2:45:47And this is straining the mind of open source developers much more than folks.
2:45:55And for example, the XZ fiasco was because there was one guy maintaining it and he got basically hammered by two attackants who were asking him questions non-stop at weird times at night to block him.
2:46:08And at some point, he got fed up and said, okay, I can't do that, and gave the commit access to the attackant.
2:46:15So burnout in open source community is something that exists, but mostly it's about maintaining things, right?
2:46:24No, for sure.
2:46:25I wonder how we help that, because those people are so important.
2:46:29The human beings are so important at the core of these projects.
2:46:32So for example, now I am maintaining a ton of multimedia and non-multimedia library as maintainer because the maintainers got fed up, right?
2:46:42Some on VideoRan, some outside of VideoRAN, because sometimes you need a tough skins, right?
2:46:49Because you get like, it's not really attacks, but oh, this is not working, this is not working.
2:46:54And you feel it personally.
2:46:56And this is also why resources or the Google fiasco was a problem, right?
2:47:02They don't realize that in the end, you have, you know, it's like the same graph where you see like everything and it's just like one random open source project that is maintaining the whole thing.
2:47:12The internet, you see the one, right?
2:47:14Yeah, this is the meme.
2:47:15I mean, it applies to a lot of projects, but this is the all modern digital multimedia infrastructure.
2:47:23And then that thing at the very bottom that everything relies on is FFmpeg.
2:47:28It's true.
2:47:29And then there's usually, you know, a handful of folks that are maintaining that.
2:47:32And FFmpeg or VLC, right?
2:47:34You have a community of 10, 15 core developers are not the worst open source project.
2:47:40X, which is even in more installations, is one person, right?
2:47:44There is one guy.
2:47:45LibXML is a...
2:47:46Yeah, libxml, right?
2:47:47There was a big stop.
2:47:48No one is maintaining libxml anymore, which is like the only library that is able to pass XML everywhere.
2:47:54All the crazy edge cases of XML under ridiculous circumstances, and they get attacked by security researchers because there's one other crazy edge case that they haven't thought of.
2:48:04I was like, yeah, but the body of knowledge to actually resolve that is massive.
2:48:09There is one guy maintaining all the time zones for everyone who is in the middle of, I think, was it Nebraska or South Dakota?
2:48:16Like the mental health of the open source maintainers is something that large corporations don't care or don't see, right?
2:48:25It's just like, oh, yeah, I'm just doing an open source report and so on.
2:48:29Some of it is financial, but some of it, and people should definitely support open source financially all across the board.
2:48:37But some of it is also like spiritual on a basic human level.
2:48:40There's something that happens like with this image of FFmpeg and so much of the internet depending on it, where people almost like talk down to the folks who are carrying these projects forward and maintaining.
2:48:54In the security community, they certainly did.
2:48:56That was one of the things I think that argument came out is there was a portion of the security community who's like, no, these guys write crap code.
2:49:04They need to fix their crap code.
2:49:05I'm like, no, no, no, no.
2:49:06This is a guy's hobby project.
2:49:09You've have a security bot that's gone and found some AI generated stuff.
2:49:12That guy didn't write crap code.
2:49:14It's just an edge case to the 99th.99999 percentile he didn't think about because it's his hobby project decoding star wars games look at the hobby project aspect of it it's it's just hard work and it's it's beautiful and the right approach there is to celebrate people for doing incredible incredible work it says it's just incredible that humans step up not getting really paid at first or maybe ever and then they're doing it out of the love of it and we need to like human civilization runs on people like that we need to celebrate that to give you an idea i received death threats on video land right and um you mentioned that to me like what what is what is behind that so that must be what 2009 2010 right um uh apple is moving from power pc to code um that probably in 2006 and by 2009 or 2010 i decided that we are not going to do new versions of vlc for power pc at that time like vlc we were close to the number 1.0 release we were four of us right like just like no this is not possible so i received a death threat with some powder in it right it remember there were some anthrax threats at that time right um and it was because i had taken the decision to not maintain the power pc port anymore and of course it was an anthrax of course it was some type of flaw and so on but i received that as a with a letter of like uh you're a piece of shit you should die uh power pc forever and so on and was 2009 or 2010 right i was i was uh i was young i was just like why what did i do right yeah they can break your spirit it's like why my mother freaked out right we had to go to see the police and so on and now like i i'm going to say that i'm quite happy that this happened at that time it it forged me a lot right i am i i can see i can take a lot of uh of hate on me i'm i'm okay with it right it sucks that that's part of reality because all the people that love vlc all the people that love ffmpeg like me you know i i legitimately hundred probably thousands of times in my life had a smile on my face because ffmpeg made me happy period and how many times did i get a chance to say that zero until i realize there's a twitter account and every once in a while i'm like messaging it one of the things i like on the reddit meme about me which i don't like this meme for a lot of reasons but and someone says oh jb is on is on reddit which i am right and i say and say hello right and then i got so many people who say oh thank you for vlc and like i take pictures and then i share that to to to the signal to irc uh yes we use irc uh on on different i i saw as a quick tangent you mentioned irc is like slack for old people so you still use irc of course yeah i have it on my phone as well of course every day works fine wow it works fine works fine you have to power with the crank no but there's no there's a well there's no there's no tracking there's nothing like it's uh the the biggest issue to be honest right compared to slack is that it has doesn't have threads that's annoying it doesn't have emojis for action sometimes it's nice v3 types yes v3 but no one does it and you cannot edit your messages yeah right and the rest it works perfectly fine for how do you communicate without emojis well that's that's why i said it's for all people all people and we do we do emojis with like you know the columns and that yeah exactly what is this right so so anyway you communicate on irc what were you even talking about yeah we are talking about death threats and but having people thanking you and sometimes they got people who send me a message and oh thank you for vlc and i always answer because i want to to to validate the fact that you need to thank the the the open source community yeah please everybody listening to this celebrate celebrate ffmpex celebrate vlc celebrate all the incredible uh open source projects linux everything there's so many there's so many and you know what i mean even outside of open source just celebrate companies that create software that you use a lot and love celebrate human endeavor celebrate the human effort to not just build something that's okay yeah build something that is damn good yeah this is important right like because as we said right we work for technic we do something very complex for the normal people like we want our excellence in tech to be useful for everyone and this is why like this is why we work right this is why i wake up in the morning is because i want people to use our stuff uh because it's making everyone's life easier we want to solve hard problems work on something interesting work on some interesting technical challenges we are engineers we love to build things right when i was young like very early i knew i wanted to build to be engineer i wanted to do to do cars right maybe at some point i will go back to cars right but um this is like we want to build things that are cool and useful and they need to be challenging right because you want your brain to turn on when the two of you first fall in love with programming with with building with engineering when is the first time you programmed kiaran microsoft q basic as i was on windows 3.1 and windows 95 microsoft q basic wow what did you build uh like a multiplication just counting loops like 10 20 30 40.
2:54:53nice uh then i thought i could do everything after that i wanted i jumped from doing that to i want to create a soccer or a football soccer video game and i drew all the i drew everything out i was like how am i going to do it and i didn't quite grasp that actually uh i think grasp actually is a massive piece of work to jump from basic and drawing some pictures to a video game but there we go i think i did um also basics and then uh churbo pascal when i was yeah um end of elementary school uh but mostly the first time i actually did some serious programming was the the first uh year of um you call that middle school when you're 11.
2:55:35i was uh i lived in italy for a year in florence uh and it was amazing here um and like the math teacher told us to to work in a programming language called logo where you had a turtle that was designing things uh on the screen and you turn left and right and in the end we used that to do uh very complex programming because of course you could do things and and this changed like as i knew i was i wanted to do things with computers and program i don't think we quite talked about x264 properly we talked about david yeah can we return backtrack a little bit to x264 this thing that powers basically all of video on the internet so uh can you tell me the story of x264 and uh karen you're actually a contributor to x264 so x264 is is a video encoder for the h.264 video standard it dominates internet video but also other areas such as blu-ray discs and blu-ray discs are interesting because the people that make them really want the highest quality and there's some really cool high-end films that have been encoded broadcasting and all sorts of other areas X264 was a big step change because it kind of happened at the right time as well a lot of the development took place when HD video was coming out Intel Core 2 and Nihil M CPUs were getting fast you could do real-time video but the most important thing was a key sort of focus on visual metrics so industry and academia for 20 years before was obsessed with mathematical metrics so what's known as peak signal to noise ratio so mean squared error logarithm of mean squared error and that led to tons of issues because mean squared error leads to blurring because you actually want to you want to minimize you want to add a little bit of error to everything to reduce the mean squared error as opposed to having a big error and that led to loads and loads of blurring so hop but hobbyists bucked that trend it was for their own personal videos mostly anime so there were two there were two things they did differently and there's a big iterative feedback loop with the community they did some stuff differently um two two big things psycho visual rate distortion so using block energy trying to compensate for human perception when making decisions so the psycho visual distortion that's the critical yeah thing that's the thing i mean it's kind of revolutionary like that we can like rethink don't don't make it like this kind of theoretic thing of compression make it all about being pleasing visually to the eye yeah yeah so compressing in a way that loses the least amount of information for the stuff that matters for us humans yes exactly as opposed to what industry some parts of industry are still obsessed by this which is mathematical numbers that don't look um good in reality and then adaptive quantization was the other big one where it was biasing bits against um complex areas and and redistributing them to less complex areas like grass grass has some high frequencies but it's kind of it's less complex overall compared to more complicated things and this came around by um park joy so park joy was really the canonical sample that was it's the running around in the past yeah so this guy was really the um so this this was created by swedish television in um the beginning of hd and it was done on film and it was no expense spared in terms of production quality and it was given away for free this was really and this is the sample really that sorts the men from the boys in terms of it has so many challenges with the trees with the water with the grass with the motion with the i don't think there's there's still been any any public test sequence as good as that these days so for people who are just listening we're looking at a bunch of humans running along a river as you have the reflection a lot of really high information textures everywhere the leaves and the lighting playing with the leaves and all of this you could show clearly that encoders with high psnr will blur everything will blur everything and you could see actually i could turn on psychovisual stuff i could turn off adaptive quantization and it would just look so much better but your your metrics and these metrics are at the time what at the time were considered so holy yeah these are the holy metrics that are untouchable psnr is uh the most important thing uh can you speak to how do you measure psychovisual stuff like how do you turn how pleasing a compression is for human eye into a number is that even possible that's what that's what netflix have been trying to do with vMaf they say they've used the machine learning model that's the more recent thing but back in the when XR6 was being developed that's by eye it was by eye it was developers on their laptops so it's not like even with big companies with professional screens or anything it's and that was actually one of the goals which was I don't the developers at the time Lauren Merritt in particular is I don't want to test this on a $30,000 screen it's I want this to look good on someone's laptop at home yeah brilliant and there is another sample which is um a sample that is a planet earth's uh kila sample that i absolutely love and you're going to see why um it's a ton of birds right flying and the more it goes the more there are birds and at at the end right it's almost like you have millions of birds it's the most complex thing ever to encode right and you well you're watching it on youtube and you see how bad the youtube encoding is actually right um and this is like phenomenal to to optimize and get um perfect quality in a constant bit rate um there was a lot of optimization mostly by by lauren also um on anime right for a long time anime was very badly encoded because there was a ton of bending right and so you see those um those issue and there was a ton of things um so x264 is like and today it's still the reference to any encoder new encoder av1 av2 vvc hvc everyone compares to x264.
3:01:51one of my favorite films um cinema paradiso i know the engineer who created the blu-ray and he showed me the comparisons of x264 versus others and uh that's completely different and i think a bunch a bunch of guys in the blu-ray world started using x264 um i think the big one was chris henderson from warner brothers he did the whole fringe box set with that's a quite like a thing that a person on the street actually watches and wants to look good and so they kind of took a risk in their jobs doing that because they're in a big company that big company can buy whatever they want and they said no no no i want to use this free and open source thing so that things look good for my my customers and build the best and to this day i personally still try and avoid watching the most cinematic films on streaming services and buy the physical discs because they look they look good without even having to buy an expensive tv i think that's the key thing and x264 is yet another example of open source project it was started by laurent emart when he was at the école central paris where vlc was born and then you got a generation of people like lauren like jason like uh mons like uh so many and henrik henrik uh and this is anton and this is where the assembly thing that we use now on ffmpeg david and so on was born right so x264 is like amazing project with people who were really all over the world and i think most of them never met each other but all of them according to kieran or large percentage love anime there's several things i've never got into and one of them is anime and i need to i watch anime so much um especially at the time um like at the time it was like a lot of anime content doesn't exist commercially right it were before crunchy roll right so what happens is usually people who love anime who take some things some dvds in japan and rip them because there is no commercial offering and some of the people who are what we call fan subbers are basically translating themselves to make subtitles right and at that time you download completely illegally it was the only way to do that right and so all of that was handcrafted and it fits the open source community right because they needed tools to encode to do fan subbing right one of the most amazing open source projects for subtitles is called a eg sub and it's it's a subtitle it's done for anime for for for um south asian and japanese languages there are weird textures in anime that i don't think you get in real life content i think that was a key one which was optimizing these weird textures that you get because anime is not done in a normal fashion yeah the the way you produce it is not you mostly produce it like on screens right since a bit of time and you have all those gradients right in colors because they are very easy to produce uh digitally very complex to to produce in real life um and um and the subtitles also are very complex because you need to have often the japanese and then um you need to have the diacritics right the the what we call the ruby right which is a hiragana and the katakana for the kanji and then because of course you so that you have the official subtitling but you also need the english subtitles or the french subtitles because you want to to learn that right um and there is so many things crazy on subtitles uh and we had like crazy samples on on subtitles that we've seen all around so um this is an important part of the the culture but also because there was no official offering there was no way of doing that uh can you speak to the difference in h.264 and av1 and then x264 and david this is this big step can you help people understand are some of the streaming sites moving more towards that direction of av1 let's be honest all of those codecs since mpeg 2 video are the same concepts the same concept about inverse transform about intra prediction motion composite entropy coding all of them however each generation gives you a bump between 25 and 50 percent more compression for the same quality um and so you had the mpeg2 you had the divix area you have h.264 which was like changing right h.264 improved so much and then you had more right you had hVc um you had vp9 at the same time of hvc vp9 is a bit similar to hvc in terms of quality compression but it's royalty free because in multimedia there is ton of patents and the licensing after h.264 became out of hand right and could cost hundreds of millions of dollars per year so it made no sense so Google did this VP9 and the Alliance for Open Media did this new codec called AV1 so you can imagine that AV1 saves between 40 and 60 percent less bandwidth than h.264 for for the same quality visual quality at a given bitrate right so that's really like you increase the quality either you you set the bitrate and you increase the quality or you set the quality and you decrease your bitrate but because now you move from from sd to hd and hd to 4k and 4k to 4k hdr like you're increasing the size by like two factor two three four right so you need to have better compression to keep it in terms of something that is manageable more coding tools more bigger blocks lots more subpartitions in each block it's just exponentially more complex it's more complex because the the encoder needs to search more possibilities right so you for example um one of the things that is easy to understand is to predict a block a color block to another you have directions right you can go left right bottom up and then in terms of uh like the other quadrants right uh that would i call north northeast northwest and so on right but that's eight directions then you can do more direction you can do 16 or 69 or 128 right you can and every time your encoder is going to spend more time to see oh well these blocks is exactly this one um and and those type of tools that you can bring and the encoder needs to check which of the tools are going to compress you better and so I guess that AV1 encoding is two order of magnitudes more than H.264 in terms of CPU cycle, right?
3:08:32Order of magnitudes, right?
3:08:34Yeah.
3:08:34And as we discussed, CPUs are not getting faster.
3:08:36You're just throwing more cores at the problem.
3:08:38But also, it's a fact that you encode once and you have hundreds of millions of users, right?
3:08:43So for example, YouTube, a very good example.
3:08:46YouTube encodes almost everything in H.264, but the popular video gets re-encoded in AV1 because it costs more, of course, to encode, but you encode once and you send that to millions, right?
3:08:59So it's a trade-off between encoding time and complexity and CPU usage on the server side and on the client side.
3:09:07Because at the end, if you're distributing a video to hundreds of thousands of people and the size is half of the other, then it's better.
3:09:16It's better for your battery.
3:09:17It's better for your modem, et cetera, et cetera.
3:09:19So we can lay out, let's say, the top five codec container combos would be HSX4 inside MP4 containers, AV1 inside MP4 WebM containers, ProRes for nonlinear editing, inside MOV containers.
3:09:43So for people who don't know, I guess ProRes is...
3:09:45It's Apple's codec for editing, originally for Final Cut Pro.
3:09:49And it's designed to be fast to decode, fast to seek, because an editor will need to move very quickly.
3:09:54So it's a different use case to the distribution element.
3:09:58There's no or very minimal temporal compression.
3:10:02There's none in ProRes.
3:10:03So you can cut, so you can do cuts.
3:10:05This is what we call intra-only codecs, right?
3:10:08So I'm going to explain quickly what is IPB frames.
3:10:12Yes, please.
3:10:14So iframes often keyframes, but is complete frames.
3:10:20It's like an image.
3:10:21It's a GPEG, right?
3:10:22You can start, you see everything, right?
3:10:26And then the next image can be a P frame, which is a predicted frame.
3:10:31So you take some part of the previous image, saying, well, I need the block 5 and 7 and 42, and you replace it, and then you just give the extra information, right?
3:10:42But that means that in order to decode this P frame, you need to have access to a previous I-frame, right?
3:10:48And then, of course, you have more complex ones, which are B-frames, which are B-predicted frames, which can depend on different type of frames, some in the past, some in the future.
3:11:02And so ProS is an intra-only code.
3:11:05For the people who can see, this is a very good one, right?
3:11:08So iframes are complete frames.
3:11:11P-frame basically depend only on I-frame and B-frames can depend on infron.
3:11:17And this GOP group of pictures, I think the default for actually FFmpeg for H264 is like 250 frames, something like this.
3:11:32And to me, it's just like magic.
3:11:35Like you could predict, you can have a complete frame every several seconds, that means.
3:11:41Several seconds.
3:11:42And then you could still, you could have this chain of predictions you make.
3:11:45And the fact that somebody like me can use FFmpeg to compress something and not notice that the result still plays back smoothly, it's like magic.
3:11:57You can even have, and we use that in terms on Kyber, is what we call intra-refresh, where basically it's there is no iframes.
3:12:08You have one at the beginning and you never send an iframe.
3:12:10How does that work?
3:12:11You build up an iframe gradually across as the stream continues.
3:12:16So you refresh certain parts of the image.
3:12:18But so you never have an iframe.
3:12:20This is intra-refresh that we use, right?
3:12:23But for me, the biggest mind-blown when I started was the B-frames.
3:12:28B-frames, means B-predicted frames, can depend on frames that are coming in the future.
3:12:36That means that in order to decode this B-frame, you need to wait for the next frame that is dependent, buffer that, decode that one so that you can decode the B-frame, right?
3:12:48So the way you decode the frame, the decoding order, is not the same as the display order, right?
3:12:56That means the encoder needs to be very clever and decide that, well, you know, I'm going to depend on things like in the future.
3:13:03So this is like mind-blowing.
3:13:06Yeah.
3:13:06The fact it works so smoothly every day is kind of miraculous in some ways.
3:13:10It works so you can have a stream that works across the world on their decoder versus one in the US versus one here of different manufacturers, and they produce bit for bit exactly the same material.
3:13:23That's quite remarkable and do quite complex things and getting more and more complex and still be bit exact.
3:13:29There's a lot of work that goes into that.
3:13:31There's a lot of knobs you can control in this whole process.
3:13:34There's a lot of really fascinating parameters that I've gotten to know more and more over the years that FFmpeg gives you complete access to.
3:13:41Maybe you can speak to some of them.
3:13:42So first of all, like obviously we can lower the resolution.
3:13:45We can lower the frame rate.
3:13:47We can use different kinds of codecs as we mentioned from H264 to AV1.
3:13:52There's ways to tune the trade-off between bit rate and quality as we've kind of spoken to.
3:13:58You know, you could do constant bitrate.
3:14:00You can do constant quality, Sarah, FCQ, QP.
3:14:04You can do the longer or shorter group of pictures, GOP, that we mentioned.
3:14:10I mean, all that kind of stuff.
3:14:11It's crazy.
3:14:12Number of B frames.
3:14:13Yeah.
3:14:14What is crazy is that a ton of people's job is to optimize those parameters, right?
3:14:22A ton of people that you see at YouTube, at Netflix, at Meta, and so on, they're not writing codecs.
3:14:27They're just like finding the right parameters for the file they have, for the format they have, right?
3:14:35Because like something that is for a movie or something that is user-generated content from your phone or a screen recording or something that you're going to video edit, you don't want the same things.
3:14:46And there are thousands of people whose job is just to optimize all that.
3:14:51Yeah, they're wizards.
3:14:52Hats off to them.
3:14:55YouTube, like to deliver all the streaming sites actually, to deliver at scale.
3:15:00And like YouTube is really magical because it's not just doing like what Netflix does, which is one-way broadcasting type thing.
3:15:09It also has to upload videos from all the places.
3:15:14So they're also doing encoding at scale for videos that are going to be watched by like five people.
3:15:20And it still has to deliver them at a moment's notice.
3:15:24No delay, nothing.
3:15:25No late, I mean very minimal latency.
3:15:28And also serve it in all different resolutions.
3:15:33Like YouTube is basically the web version of VLC.
3:15:39Well, actually, it's funny because like a Google video, which was something they did before they acquired YouTube, was actually using the VLC plugin so that you could run VLC inside the web browser using the Activix plugin.
3:15:54And so it worked in Internet Explorer, and you were actually running VLC inside your browser, which is funny because today we have the opposite where we have VLC WebAssembly, where we compile all VLC NFFmpeg to decode, to run VLC inside the JavaScript virtual machine with WebAssembly.
3:16:17Okay, there's this legendary story that you pointed me to that it was discovered via Wikileak's release of all seven documents.
3:16:27The CIA was using a modified version of VLC to basically try and trick people what, to steal their data.
3:16:36Yes, exactly.
3:16:36So can you explain what the heck happened?
3:16:40So this was a surprise, right?
3:16:42Because at some point Wikileaks mentioned some documents.
3:16:46There were a few ones with something related to Blurays and VLC, but the most interesting one was the CIA Vault 7, which, if I understand correctly, was the CIA had like a custom version of VLC where they had a specific plugin.
3:17:03Yeah, exactly.
3:17:03This is like we had to write a press release on that.
3:17:06VideoLAN wrote a press release saying the only safe source for getting VLC Media Player is the official VideoLand website.
3:17:14I mean, I suppose that's a security vulnerability for basically any piece of open source software.
3:17:21Somebody can trick you.
3:17:22To download in a fake website or targeted advertisement, right?
3:17:27That was a targeted advertisement to watch a specific file you need to watch with this custom version of VLC.
3:17:34And it was the normal binaries of VLC, except they added one DLL, I think it was psapi.dll, which was basically reading your document folder, encrypting that, and sending that.
3:17:48And the thing is, this is very clever, to be honest, because once you're watching a movie, right, you're going to do that for two hours and you're not going to touch your computer.
3:17:56And sometimes it's normal because it's HD that your fans are going up and say, and there is a ton of TPU usage because you're using VLC, right?
3:18:04That's normal.
3:18:05But the thing is, what you don't see is that actually a powered version of VLC that is used by CIA.
3:18:13We had exactly the same problem with Chinese hackers that were targeting Indian people.
3:18:21And that got VLC banned from India until I had to fight in courts in India, the Indian government to unban VLC.
3:18:29They didn't use VLC.
3:18:31They took just one DLL because we signed the DLL correctly.
3:18:36And they used that DLL to do another program.
3:18:39So you had the VLC.exe and was calling lib VLC, but it was calling it into a fake one.
3:18:46And they used that to target.
3:18:48There is not much we can do, actually, to block those type of hacks.
3:18:52Yeah, and I think people should, for all open source software, for all software in general, people should pay attention where they download the thing.
3:18:59Yes, because that means that they were not downloading it from our website.
3:19:03Do the search engines help you?
3:19:04No, they don't.
3:19:06Just to clarify, because you can, you know, to prevent threats from people manipulating SEO to get up there on the links.
3:19:13Absolutely not, right?
3:19:14We have a big issue for like more than 10 years is that there is a fake version of VLC in Germany that was reported for now for 12 years.
3:19:24And Google basically decides to not, they know what's in it, but the binary is too big for their virus analyzer to analyze it.
3:19:34And so, well, if you're in Germany, you can go to a website that is a fake version of VLC with a custom installer.
3:19:40And it's very popular in Germany because their website is in German.
3:19:43And Google mentioned that before Videolan.
3:19:47And the weirdest thing is that it doesn't do anything on your machine for three weeks because that's how they do the detection.
3:19:54And after three weeks, there is a small program that is a service that installs at the same time that wakes up after three weeks and installs.
3:20:00Downloading spyware and adware.
3:20:02And Google knows about it.
3:20:03They've decided not to do anything.
3:20:05The guys use Dark SEO in Germany to do that at some point.
3:20:12And this is very damaging, right?
3:20:14Because one of the things that they are downloading is actually something that is replacing your ads inside your machine, right?
3:20:21It's actually quite surprisingly effective.
3:20:24Whoever is doing it with Twitter and X, with X, I'll get emails about your X account has been hacked.
3:20:32And however they phrase it, it gets me to like at least click on the email, not to follow the thing.
3:20:39And then you're like, man, whatever they're doing with the psychology to try to trick you, they're quite good.
3:20:45There is a security version of VLC, right?
3:20:47You received an email saying, hey, there is a security version update on VLC.
3:20:52Think about updating right now because it can hack your computer.
3:20:55You come, it's a website that looks decent and you download it.
3:20:59It's a new version of VLC.
3:21:00Great.
3:21:00You don't know.
3:21:01A month later, you're hacked.
3:21:02You have no idea.
3:21:02You're part of a botnet.
3:21:04Yeah.
3:21:05So make sure wherever you're downloading stuff, it's legitimate.
3:21:09You're part of the botnet.
3:21:11Speaking of which, so you've mentioned that VLC sandboxing is something you're working on, and it's actually something quite challenging.
3:21:19Why is it important?
3:21:20Why is it hard?
3:21:21So VLC is a core with around 500 plugins, right?
3:21:27One of them is FFmpeg, but we support so many other formats.
3:21:31We support new protocols.
3:21:34We support new filters.
3:21:35We support weird architectures.
3:21:38And in this release of VLC, you have modules that are going to call your drivers, right?
3:21:44Mostly the hardware decoders, which are going to call your Intel, your NVIDIA, your IMD driver.
3:21:53And all calling FFmpeg, right?
3:21:56And there might be a security issue.
3:21:58There might be a security issue in the shader.
3:22:00There might be a security issue in VLC, in FFmpeg, that is going to basically crash.
3:22:05The issue is that you're running VLC like every other program, like Adobe, right?
3:22:11You're running it on your machine and it has access to all your documents, right?
3:22:16So the idea is to be sure that you do a sandbox so that we can protect from ourselves.
3:22:23Because inside the VLC process is running some code that is not even ours, either it's open source, the other projects that we integrate in VLC, or it's your GPU driver or something that is provided by someone else inside.
3:22:36And so when we crash, we want to not allow people to do bad things, right?
3:22:42Because one of the common way of hacking people is to crash a program, very often done with a web browser, very often done with PDF files, less often with multimedia, but that could happen.
3:22:52And when you crash, you launch something on the machine of the person.
3:22:57Could be a ransomware, could be a botnet, right?
3:22:59So security of desktop application is important.
3:23:03On mobile, it's a bit different because most of the mobile applications are running inside their own sandbox.
3:23:09But for VLC, we could run it inside one sandbox.
3:23:13But the problem is that we need access to so many things that it's basically we would do, we would have all the permissions.
3:23:21And so if you have a sandbox and you put some holes everywhere, it defeats the purpose.
3:23:27So what we are trying to do and we're actually doing is splitting VLC into several processings.
3:23:33One is decoding, one is demuxing, one is filters, and all of them run into their own sandbox so that the whole VLC, a part of VLC crash, like Chrome crashes on some tab, right?
3:23:48It crashes a crash, but it did not crash the whole program.
3:23:52And this is what we're trying to do.
3:23:53And it's difficult because it's a sandbox that needs to sustain gigabits per second of memcopies.
3:24:00It's not a website which is five megabytes or 10 megabytes.
3:24:03We're talking about hundreds of megabits per second.
3:24:06So this is why it is quite challenging.
3:24:08And this is a research topic that we are working on in order to have multimedia player that is secure.
3:24:16This is all the kind of stuff you have to think about when millions of people are using.
3:24:19You've mentioned something somewhere where like all the different features of VLC, when you have that many people using it, somebody will use every single feature and they will tell you about it.
3:24:33Best feature in VLC is called the puzzle filter, right?
3:24:37So you click the puzzle filter and it transforms your video into a jigsaw puzzle, right?
3:24:43And you can click and move the pieces, right?
3:24:46Yep.
3:24:47It's very, very useful when you're watching a French movie, right?
3:24:50You're bored because it's like very long things or a love triangle, right?
3:24:55We've seen that so many times, right?
3:24:57But you need to watch it because someone, your wife told you to do that or your boyfriend told you to do that.
3:25:04So you're doing that, right?
3:25:05And you can click and move the pieces around.
3:25:08It's absolutely useless, right?
3:25:10Like, who cares about that?
3:25:12First, it was done by a math teacher in high school in south of France to teach his students about Bayesian curves, which is something that everyone should know about.
3:25:22It's very useful.
3:25:24But the code was clean.
3:25:25So it got in VLC.
3:25:26It was merged in 2010.
3:25:28Five years later, I received an email saying, hello, JB, I have a problem with VLC.
3:25:33The puzzle is too simple.
3:25:35And I was just like, what?
3:25:37And yes, the puzzle was in the UI maximum by 16 by 16, right?
3:25:42Only 256 pieces.
3:25:45And he says, I'm sorry, but in a movie, I love puzzles.
3:25:48This is too simple, right?
3:25:50So there is a commit of me, you can check it online, which is JB changing that the dimensions are 256 by 256.
3:25:58My point is so many use features are used by a few people, right?
3:26:04There is a way to watch VLC movies in common line without any UI, right?
3:26:10I saw that you can do ASCII.
3:26:12ASCII art.
3:26:14Is it useful?
3:26:14Very useful.
3:26:17Imagine you're debugging a multicast network, right?
3:26:20You have thousands, very complex, very complex networking stack, right?
3:26:24You can SSH to all of the routers and put VLC on it with no UI.
3:26:29And you're going to see whether it's black or it's not black, right?
3:26:32So you see if, oh, it's all green or not all green, right?
3:26:35So you can see, right?
3:26:37People don't realize there is so many things in VLC that are useful and they have users because once you have hundreds of millions of users, you have people who use every feature.
3:26:53I would love to sort of zoom in and talk a little bit more about the distinction between kind of downloading a file and watching it offline versus streaming.
3:27:04So the complexity, the challenges of streaming.
3:27:07Is there something we could say about what it takes to stream files?
3:27:13Because we've been talking about codecs, and I think a lot of that implies encoding and decoding without having to communicate over the network.
3:27:24Sure.
3:27:24Sure.
3:27:25So can you elaborate what's required to do over the network stuff?
3:27:29Yeah, but it is less complex than it seems compared to everything that we've talked about.
3:27:35Especially because the most complex thing is not about streaming in terms of streaming services, but it was done to actually broadcast through satellites.
3:27:48Because in most of the modern broadcasting services, you can pause and you can go on.
3:27:55But when you're sending live streaming, whether it's broadcast or live for streaming services, which are live, this is much more difficult because you need to encode in real time.
3:28:05When you go on a satellite, you have a specific size of the link, right?
3:28:09You cannot have a burst of bandwidth even for a second, right?
3:28:13Because you don't have the space for that in your total file.
3:28:17However, there is different types of challenges, which are interesting challenges, but I think they are less complex than the one we've seen with late 90s and early 2000s about broadcasting and streaming through satellite.
3:28:30They're different.
3:28:31There are control systems challenges, whereas some are more mathematical.
3:28:35I think there's a difference.
3:28:36In the streaming world, what you have is called what we call adaptive streaming, because the difficulty, and it's not really a video problem, it's mostly a CDN problem, is that you might have too many people watching the same thing at the same time, and it's a congestion of the network, right?
3:28:50So your player has difficulty downloading things fast enough to play them.
3:28:56So what happens is that locally, the player is going to read a lower resolution of it.
3:29:05But there are some very clever algorithms to do that, but most of it is quite basic, to be honest.
3:29:12Even on the buffering side, it's pretty basic.
3:29:15Yeah, you start, you download a segment, what we call a segment, and then you time, right?
3:29:21And if it takes more than 50% of the time to download the segment, you go down to, right?
3:29:27And the difficulty is more about when do you go up in bandwidth, in quality.
3:29:32But this is not very complex to do.
3:29:34When you encode, you're going to encode seven resolutions, right?
3:29:37And you're going to give the bitrate.
3:29:40The difficulty is to have your encoder give the same bitrate, but it's not as strict as it used to be.
3:29:47Probably YouTube has to figure out how the human psychology side of that.
3:29:52Like, how pissed off do you get when it's like very low bit rate?
3:29:59And how long should it wait before it increases the bitrate, even though the connection is better?
3:30:06Because maybe the changes in the bitrate is what like affects you psychologically.
3:30:12I think actually the interesting one is the audio.
3:30:14That's true.
3:30:14You can kind of notice when they move from full fat AAC to the there are compressed versions of AAC that use spectral band replication.
3:30:23You can kind of see it goes a bit tinny and that up and down is very jarring.
3:30:27The video side is a lot smoother and there's less notice.
3:30:31It's really the audio.
3:30:33You can definitely feel it from when it's moved you from a different audio profile to one or the other.
3:30:37I don't know.
3:30:38We're surprisingly tolerant at skipping audio glitches.
3:30:41I'm surprised people I know who are not video engineers, how tolerant they are, how tolerant they are to watching sports at 30 FPS, for example, whereas it should really be 60.
3:30:52The world is a lot more tolerant to that, but audio people are very...
3:30:55It's an immediate feedback mechanism of audio.
3:30:58If you hear a glitch, you realize it directly.
3:31:00Yeah.
3:31:01I get to fully realize that, I suppose.
3:31:02One of the things I'm afraid of when I listen to audio more and more, that I get to notice every single tiny detail and that you can over-obsess when people in general are able to kind of blur their conception.
3:31:18They can look past certain imperfections.
3:31:21But then when you combine an event that is, for example, a sport event, that's probably going through satellite or somewhere else and goes to a central place for encoding.
3:31:34And then you need to encode all the resolution in real time.
3:31:37You don't have time for QA.
3:31:39You need to push that to CDNs.
3:31:41You need to add probably DRM for protection.
3:31:44You need to have that over a ton of different devices.
3:31:48Then, yes, it is complex.
3:31:53And also like you're in the web browser or in very much different devices that you use for television, where you had like a defined set of box or cable box that you know where you control end-to-end.
3:32:06So it's a challenge, but it's less...
3:32:08I think the networking part, while you agree to have 10, 20 seconds of latency, I don't think this is very difficult.
3:32:18Speaking of networking and latency, so your new effort, as we mentioned, is Kyber, which is aimed at ultra-low latency.
3:32:30As you say, every millisecond counts.
3:32:32And you're applying that to remote control machines like robots, drones, computers.
3:32:37Can you tell me about it?
3:32:38Sure.
3:32:39If you start from where we used to be, right, you used to use FFmpeg to encode files, right?
3:32:45And then we used FFmpeg and VLC to encode in streaming services, right?
3:32:51And then you need to go lower and lower.
3:32:54And the question was, where up to where can we go?
3:32:59And this question is very important because there are many use cases where you need to be fast.
3:33:04And it's when you have feedback interaction, right?
3:33:08We are not just listening to something, you're actually controlling it, right?
3:33:12And that's the biggest difference that compared to what we've done so far is that I need video to have feedback on something that is happening live, whether it's a drone flying, whether it's controlling a humanoid robot from a distance, whether it's controlling a rover, whether it's playing a video game in the cloud gaming, because this is what I did on a previous job, right?
3:33:36I was CTO of a cloud gaming startup.
3:33:39And this is a very interesting topic because you push to the limit the network.
3:33:45You need to care not about the quality like we've done on video and we've talked about WizX264.
3:33:53You care about latency because a milliseconds is meaningful when you're controlling a car, right?
3:34:01Well, you've used Waymos, right?
3:34:04When Waymos don't work, and that happens even if 1% of the time, there is someone that is basically remote controlling that.
3:34:13And this is exactly the stuff that we're building.
3:34:16We need an SDK platform to do end-to-end control of machines.
3:34:23So this comes up quite a lot in a lot of different contexts in robotics.
3:34:27So obviously teleoperation, teleop is becoming more and more important, including for training robots via machine learning.
3:34:38Yes.
3:34:39And what we do is a bit different from everyone else is that we take only one socket, one connection, which is a quick protocol based on UDP, which is interesting because it's done for low latency.
3:34:52It doesn't have two of the what we call the TCP end-of-line problem and the HTTP end-of-line problem.
3:34:57It's CIFED by default, but on the same wire, we send multiple streams, like multiple tracks.
3:35:02We send audio, we send video, but we also send the commands, right?
3:35:06Mouse, keyboard, gamepad, and so on.
3:35:09And we do that while maintaining coherence, right?
3:35:12Synchronization.
3:35:14Because what people don't realize is that all the clocks actually drift.
3:35:19And when you're controlling a robot, a robot is going to have like two cameras, five cameras, ten cameras, a ton of captors, GPS, and so on.
3:35:27And if you want to train correctly your robotic AI model, you need to have all those that are in sync and currents.
3:35:34And what we've done, and it's all the stuff that we learn on VLC in broadcast in real time and MPEC-TS that currents know well, is that we account for clock drifting.
3:35:45And so when I record a Kyber stream, a robot, I am sure that it's going to be predictive in the way you play it back.
3:35:54And so when you're going to do recording and training of your AI model, you need to be sure that every time you retrain based on the data, the data is going to stay coherent.
3:36:04And clocks actually drift.
3:36:07Like the existing solution works with one camera.
3:36:10Once you're going to a five or seg, it's more complex.
3:36:13So you want to make sure that the visual snapshot perfectly matches the time it actually happened.
3:36:21Exactly.
3:36:22And also, if you're going to control, right, I do something on robot.
3:36:25I need to be sure that it is actually happening at that precise time, right?
3:36:29And so we have on the server, which would be a robot, a time of like re-timestamping mechanism accounting for clock drift for that, right?
3:36:37So that's one of the use case of Khyber to control robots.
3:36:42I also see like remote drones, remote, whether it's defense or non-defense, remote cars, remote submarines.
3:36:50There is many places in industry or remote surgery where the expert cannot go everywhere the machine is because either dangerous or it's too costly, right?
3:37:01So you allow people to have machines next to you, right?
3:37:07The goal of Kyber is to make distance disappear because it's either projection of skills or projection of power.
3:37:14So imagine we are all like you've seen the Meta Reba and everyone else.
3:37:20You need to stream there, right?
3:37:21Because you're not going to run anything over there.
3:37:23So you need GPU power, whether it's on a cloud, on a phone, to stream that.
3:37:27And so all of these use cases needs to be not about extremely low latency, but real-time latency for video.
3:37:34And so that means you need, we're toying with the encoders so that the encoders encode a frame in four milliseconds.
3:37:42And Kiran, with his company, also goes under those type of latency, because you need to optimize at max the local latency, right?
3:37:55Because it's the decoder, the encoder, and so on.
3:38:00Because this time is going to be added to your networking time.
3:38:05So, and it's not just about low latency, it's also about like reliability.
3:38:09We do clever things like forward error correction, right?
3:38:13So forward error correction is you over-transmit a bit of data, right?
3:38:18A few percent, and while over-transmit, you allow to lose some packets.
3:38:24Because all of that is very difficult over an internet network where you're going to do things very far away.
3:38:32And if you check that all packets are delivered, you add a ton of latency.
3:38:37If you don't want latency, what we do is that we over-transmit some data that you can reconstruct on the client side when there is things that are broken.
3:38:48And a few days, weeks ago, we were doing the demo around Las Vegas for the CES about, we had a rover that is fully 3D printed.
3:38:58It's very simple.
3:38:59It's a car, right?
3:39:00It's a small car with a telescopic arm.
3:39:04And it was actually controlled from France.
3:39:06And the video was with a webcam and a very small server, a small PCB, was basically running and send that to someone that is on the other side of the planet.
3:39:19And so there is so many use cases.
3:39:21You can also think about having AI who are going to control many drones and so on.
3:39:26And technically, we need to be amazing in video.
3:39:29We need to be amazing at networking.
3:39:31We need to care about any milliseconds in networking, in encoding time, in decoding time.
3:39:37And also, you need to integrate very low level.
3:39:39So sync everything together well.
3:39:41But what kind of latency can you get to?
3:39:44Like when you say milliseconds, what's the goal?
3:39:47So my goal is four milliseconds glass to glass latency.
3:39:51What's glass to glass mean?
3:39:52So it's easy, right?
3:39:53You have a computer which is running a program, right?
3:39:56Probably a video game.
3:39:57And this one is actually running, right?
3:39:59It could be an example of a robot, right?
3:40:03And you have the replicate that is donated to the network.
3:40:07And you want, if you take a 1000 Hz camera, you can take a picture and you want that to be at four milliseconds.
3:40:15Four milliseconds means 240 hertz, right?
3:40:19Yes, nuts.
3:40:20So far, we achieve seven milliseconds from a Windows to Windows, Windows to Mac.
3:40:28And if you look in the timing, most there is around 3.5 milliseconds inside the NVIDIA hardware encoder and around 2 milliseconds on the Intel decoder.
3:40:41So the encoder plus the decoder is already six milliseconds.
3:40:45So in order to go down, we need either to have some other type of codecs or some better encoder that are faster.
3:40:54But four milliseconds would be the GRALA.
3:40:57That's pretty nuts.
3:40:58I love it, though.
3:40:59I don't think anyone's ever achieved that, right?
3:41:02That's fast.
3:41:03You can achieve that with custom hardware, with SDI, with professional hardware.
3:41:08But I want that to work over the internet.
3:41:12I want to work with any robots where you're going to have a small Jetson nano in it or N150, right?
3:41:19I want that because there is going to be millions of robots or drones are just rolling robots or flying robots or swimming robots, right?
3:41:28It's just you, a machine that you control.
3:41:31And in order, either you need to teleoperate them or when everything will be fully autonomous, you need to teleobserve them, right?
3:41:41You need to check what's happening.
3:41:43And in my view, in the future, like all those remote cars will be teleobserver observed by an AI model, which is just going to say, well, everything is good.
3:41:53And when it's not good, say, hey, there is a problem.
3:41:56And then you have an operator, right?
3:41:57And this is going to be about safety, right?
3:41:59When you have your humanoid taking care of your grandma or my grandma, I want to be sure that everything goes well and I'm not in those type of horrible scenarios where the robot is dangerous.
3:42:09Or when I'm driving, I want the car to stop when it should stop.
3:42:14And if needed, someone takes care of that.
3:42:17And so there is so many cases, scenarios about real-time.
3:42:21And so the goal of Kyber is to make real-time control of machine distance disappear.
3:42:29It's incredible.
3:42:29And some of the same technology, some of the same ideas we'll be talking about is connected to what you're doing.
3:42:35And for me, it's amazingly challenging, right?
3:42:37Because I would say that on video I'm doing okay, but networking, I have so much more to learn, right?
3:42:43It's about like congestion protocols, bit rate adaptation in real time.
3:42:49But it's quite funny.
3:42:51And so I created this project and we have fundraised in the US, of course.
3:42:56But it's open source, right?
3:42:58This is important, right?
3:42:59Like we've not said that, right?
3:43:00But everything on Kyber is open source.
3:43:03So how do you make money?
3:43:04It's a dual license, commercial and AGPL, right?
3:43:08You remember what you said about licenses?
3:43:11Basically, if you want to use Kyber in your product, you must have your full product open source.
3:43:17If you want to use this amazing technology, but not open source, you pay the commercial license, right?
3:43:23So the small people or the hobbyists and the very small guys who want to do that, they can use the technology.
3:43:30They build something that is open source and commerce.
3:43:32And if you're a large company, you're going to have the support, all the IP, the right to modification, and so on.
3:43:38So yeah, it's really cool.
3:43:41And also, I'm building robots and I love that, right?
3:43:45Like the rover we have is 3D printed.
3:43:48We are finishing a demo with an actual wing, right?
3:43:51Like a type of drone wings that is also fully 3D printed.
3:43:55We are trying to do a sailboat that is 3D printed and we'll work on some humanoids.
3:44:03Of course, they are not going to be very good robots, right?
3:44:06It's not our job, but we're here for everyone to make robots.
3:44:09Cool.
3:44:10Ah, you're talking to the right guy.
3:44:12I love robots.
3:44:12There's a bunch of them upstairs.
3:44:15And Teleop is going to be really, really important, especially as the number of robots kills across the world.
3:44:19So 100%.
3:44:20Let's talk about the future of multimedia.
3:44:25FFmpeg, VLC, but some of the codecs.
3:44:28We didn't really mention AV2.
3:44:30So can we just lay out what is AV2?
3:44:34What is the hope for it?
3:44:36What is H.265, H.266?
3:44:39So AV1 is this codec that is done by the Alliance for Open Media, right?
3:44:43Where there is Google, Netflix, Amazon, Apple, Videolan, where we try to make a royalty-free, very good codec, right?
3:44:52And now it's being deployed.
3:44:53But actually, the codec was finished in 2018.
3:44:57But a codec takes years to be used in wide scenarios, right?
3:45:04So AV2 is the next generation of this codec.
3:45:07It's 30% better, right?
3:45:10So if you keep the same quality, you get 30% bandwidth reduction compared to AV1.
3:45:16What's the connection with the David and AV2?
3:45:19We are going to do a David 2, right?
3:45:21That I call David, because D is 2 in French.
3:45:26And you have to know that David is an actual, what we call recursive acronym, right?
3:45:31Because it means D.
3:45:33David is an AV1 decoder, right?
3:45:36Oh, nice.
3:45:37Nice.
3:45:37I didn't even think of that.
3:45:39And people should know that David spelled with a 1.
3:45:42Yes.
3:45:44And so David 2.
3:45:45It's going to be spelled with a 2.
3:45:46It's going to be D A V 2 D.
3:45:49I don't know how you pronounce that.
3:45:51And again, we did a demo at the CS of VLC running the first demo of AV2.
3:45:57So can you clarify to me the specification of AV2 and then the encoding and the decoding?
3:46:05Sure.
3:46:06So the specification is like the document who explains how the codec is supposed to work, right?
3:46:13And that's really AV2.
3:46:14That is AV2, like H.264.
3:46:17Yeah, right?
3:46:18Then you have an encoder.
3:46:19The current encoder is called AVM.
3:46:22And there will probably be other encoders, probably one called SVT AV2.
3:46:27And those are the encoder.
3:46:28The same way X264 is an encoder to H.264.
3:46:32The same way that X265 is an encoder for the H.265 codec.
3:46:38And the decoders for AV1 is David.
3:46:43The decoder for AV2 is David2.
3:46:46The decoder for H.264 is FFH264 inside FFmpeg.
3:46:54The decoder for HEVC is FFHVC inside FFmpeg.
3:46:59And there is a next generation codec from the MPEG world after H.264, H.265.
3:47:06There is one that is called H.266, also known as VVC.
3:47:12So HEVC is H.265.
3:47:15VVC is H.266.
3:47:19Why is H.266 Super Sexy so much better?
3:47:23So the question often we have is why are there two names?
3:47:26Because most of the time it is a conjunct work from the ISO world and the ITU, which is the International Telecommunication Union.
3:47:37These are these two regulatory bodies.
3:47:39One is a private entity and one is the United Nations.
3:47:41Which one is the private entity?
3:47:42ISO is private.
3:47:44In theory, H.264 is MPEG-4 Part 10 H.264 slash AVC.
3:47:55And this is the full name.
3:47:56Nice.
3:47:57So it's the concatenation of the ISO name and the ITU name.
3:48:01Yeah.
3:48:01Even though they work together.
3:48:03This is politics, historical, you know.
3:48:06And for HVVC, it's MPEG-H H.265 HGVC.
3:48:12And there is H.266, which is also named VVC.
3:48:16Is there a high-level thing to say about the improvement?
3:48:1830% each generation is a best summary.
3:48:22This is true both for the AV products and the H26456.
3:48:28So the professional who are listening to us are going to kill us because they say, no, it's 35%, 25%, 50%.
3:48:35But globally, you need to know that HVC is 30% better than H.264, H.260 is 30% better than H.265 because there is so many cases and so many scenarios.
3:48:45For example, there are cases, especially for screen recording, where the gains are humongous because you arrive, you have the right tool that is done for that.
3:48:56And so for a specific video, a new generation is going to give you 70% gain or 80% gain.
3:49:03But there used to be a ton more codecs, but now the two main codecs for transmission are the H.264, H265, H.366, and the other is AV1, AV2.
3:49:13And I guess the major difference would be the cost of encoding.
3:49:18Yes, and the royalty of the patents.
3:49:21And this is the reasons why you see the AV version of codecs is because they try to be as royalty-free, which means no cost for the patents as much as possible.
3:49:32Because what you need to know, and we've not talked about that so far, is that multimedia is what we call a patent minefield.
3:49:40There is two places where you have the most patents.
3:49:43It's everything related to 3G, 4G, 5G, RF, and multimedia, because it's very mathematical and you can get great gains and so on.
3:49:53So Google and Meta and Netflix wanted something where it was royalty-free.
3:49:59There are people who say that they have patents outside, but they are fringe patents, right?
3:50:03So it's mostly true that it's patent-free.
3:50:06So you should extend patent checking was done as part of the standardization process in AV1, AV2, whereas patents are not even discussed in the MPEG world.
3:50:19Patents are off topic completely.
3:50:21Can you give me the patents side?
3:50:23So usually, so MPEG does a format, right?
3:50:26And then there is everyone comes around and says, well, I have all those patents or formats.
3:50:31And they do usually a union was called MPEG-LA, MPEG Licensing Association.
3:50:38And you put all your patents in, and then you ask everyone who's using this format to pay for it.
3:50:44Wait, can you elaborate?
3:50:45What does it mean to have a patent of a codec?
3:50:47Why are there many patents?
3:50:50Imagine I'm doing something where I'm going to, instead of doing blocks which are square, I'm going to do rectangles, right?
3:50:57Also, every idea, somebody patents it.
3:51:00Yes.
3:51:02Oh, man.
3:51:04Yes.
3:51:04Oh, man.
3:51:06People and how many lawyers are...
3:51:09I mean, it pays for a lot of lawyers, right?
3:51:11The biggest issue is not the following, right?
3:51:13Because at the time of H264, the patents were, let's call it like sane.
3:51:18But there was so much money in that that for HEVC, there were a ton of things that were pushed inside the specification, which are not useful in 99.9% of the time, but just one could add a patent on it.
3:51:35And so it became that for HGVC licensing, there was MPEG-LA plus another patent pool called HEVC Advanced, plus, I think was Nokia was outside of the patent pool.
3:51:47Yeah, a few of them are outside and some other one.
3:51:49And so it was impossible to license, right?
3:51:52And I think that several months ago, HP decided that they were going to remove support from HGVC in their Windows laptops because the cost was increasing of those patents.
3:52:04And it arrived where a point where, and there was uncapped pad.
3:52:09And so for YouTube or Netflix, we could talk about hundreds of millions of dollars of licensing for patents per year.
3:52:18And they said, you know what, at 100 million per year, you know, I could create my own codec.
3:52:23And this is what they did.
3:52:24And so that's why we have the open media alliance, alliance for open media, where we are part of, that is, that created AV1 and creates AV2.
3:52:33We create also audio codecs.
3:52:36But yes, so the main difference would be that.
3:52:39And because you need to work around the patents or go do some things that are not patented, a lot of things are different, right?
3:52:46The basic things that were done in MPEG-2, 30 years ago are caught out of patents.
3:52:52But so, for example, there is things like a golden frame, S-frame, or different type of...
3:52:59These are all patented ideas.
3:53:01Yeah, no, I can't believe it's not butter.
3:53:03I can't believe it's not a B-frame.
3:53:06I mean, it's kind of what it is in some ways.
3:53:07It's like a...
3:53:08Oh, so it's a different variant of a B-frame.
3:53:10Yeah, that's to try and sidestep things like that.
3:53:13And so you need to have double creativity, right?
3:53:16Creativity in terms of being more efficient, but creativity of being sure that you don't infringe existing patents.
3:53:23And so, for example, VVC has all the patents of HEVC plus new ones, right?
3:53:29While AV2 tries to be as royalty-free as possible.
3:53:33To what degree does FFmpeg and VLC have to think about this kind of stuff?
3:53:37We don't.
3:53:38And one of the reasons why VLC was in France is that France rejects software patents.
3:53:44So most of those patents are illegal in France.
3:53:48Because I once made the calculus that if I had to pay all the licensee fee for VLC, I needed to pay more than 200 euros per user, right?
3:54:00It's the same in dollars.
3:54:02But most of those patents are invalid in Europe because those are called, it's basically mathematical patents or idea patents, and they are not valid in Europe.
3:54:13Let me just at a high level, just out of curiosity.
3:54:16So the meme online and the interwebs on X and Twitter and so on.
3:54:21And my own friends in Europe, the sense is that Europe is not friendly to entrepreneurship.
3:54:30They over-regulate.
3:54:31There's too much bureaucracy and so on.
3:54:35Is there anything positive to say?
3:54:37Is there hope for entrepreneurship in the future of Europe?
3:54:40Is Europe over from a tech perspective?
3:54:45Just look at the two of us, right?
3:54:46It's notable that there's two people from the European continent on this podcast talking about video.
3:54:52It's fair to say the community is weighted heavily.
3:54:55What you probably don't see yet is that there is a new generation of entrepreneurs in Europe and mostly in France.
3:55:05UK has done it since a long time because, well, it's more Anglo-Saxon type of business, look at business, but especially like what happened in France.
3:55:16And of course, sometimes it's a bit overdone with everything called French tech.
3:55:19But today, most of the people who come on the market wants to create startups.
3:55:2415 years ago, it wasn't the case.
3:55:27Everyone wanted to work on big companies because when you failed in France, for example, 20 years ago, 15 years ago, and you destroy your company, which is normal for startup, right?
3:55:39You were not allowed to create a new company, right?
3:55:41There was a lot of stigma.
3:55:42This stigma is gone.
3:55:44There is so many things happening on AI in France and so on, right?
3:55:48So there is sure over-regulations.
3:55:52I know that, right?
3:55:53I'm an entrepreneur.
3:55:55But it has some good things also.
3:55:58I mean, is there some paralyzing aspects?
3:56:01If I look at the case of somebody I've become close with, Paul Adurov, he was blamed directly by the French government for the kind of things his, quote, platform was hosting.
3:56:18I could see the same kind of stuff basically, just as an example of VLC being blamed for the kind of videos that people are watching.
3:56:26We tried, right?
3:56:27Like we, we, like, we, we had issues.
3:56:30Like, we, like.
3:56:31I mean, that's the pressure that people worry about because if you have to think about that kind of stuff, when you're kind of just obsessed about it.
3:56:38No, you don't think about it.
3:56:40And that's okay, right?
3:56:42But what if they come in?
3:56:43What if they show up?
3:56:44There is no office.
3:56:45Fideland doesn't have office.
3:56:46I mean, it's what happened with Pablo.
3:56:48They arrested him, right?
3:56:49So arrested him for particular videos or particular content that's being shared on the platform.
3:56:55Sure.
3:56:55I don't have any platform.
3:56:56Everything is on the client side.
3:56:58Yeah, but they can still arrest you.
3:57:00On what ground?
3:57:01I'm not sharing anything.
3:57:03The content doesn't go through my stuff.
3:57:05For sure.
3:57:05But it's still lawyer fees.
3:57:07That's the problem.
3:57:08Yes, that's correct.
3:57:08It's paperwork.
3:57:10So actually, if you had infinite trillions of dollars, you would win easily because you're on the right side.
3:57:20But the thing is, there is a degree to which they suffocate you with paperwork.
3:57:24That's the downside of bureaucracy, through paperwork, through process.
3:57:28Yes.
3:57:28You know, it's the Kafka-esque.
3:57:30You have to realize that one of the good things, for example, in France or most of Europe is that answering to a court order does not make you bankrupt, right?
3:57:43It's not like in the US where it can actually bankrupt you, right?
3:57:48The way the law system works is that I receive lawyers' letters every week, right?
3:57:56And I can tell you that the cost of lawyer fees for Videolan is less than $10,000 per year, right?
3:58:05So that's not really scary.
3:58:06I mean, similar with Pavel.
3:58:07The intelligence agencies try to say, can you put a back door on VLC?
3:58:12Yes, two of them.
3:58:14What do you say?
3:58:15No.
3:58:16I was a lot less polite.
3:58:19I see you.
3:58:19Yeah, yeah.
3:58:20You're basically saying, hell no.
3:58:22Like, if we had to compromise our software, we would shut it down.
3:58:25This is clear.
3:58:27And what's the definition of compromise, like allowing a government to do a backdoor?
3:58:32There is no code that gets into VLC that we don't control.
3:58:36And the way we compile VLC, you would call me completely paranoid.
3:58:41Like we compile on boxes that are offline where we start by compiling the compiler.
3:58:48We do everything offline on places that have never been connected to the internet.
3:58:54The way we do signing, there is double signature.
3:58:58Especially because, for example, we've seen and we believe it's a governmental agency that is not from the Western world to try to push a fake binary into our own servers.
3:59:10And that scared us a lot.
3:59:12And Videoland is open source.
3:59:14How can you kill it?
3:59:16Like, I moved to where, right?
3:59:18I moved to Malta.
3:59:19I moved to, I don't know, Cayman Islands.
3:59:21And I changed the domain name and I start again, right?
3:59:25Like VLC is a tool.
3:59:29It's a tool that is going to help people doing things.
3:59:33We are not a platform.
3:59:35And for patents, well, I'm sorry, but most of the patents like you shouldn't be able to patent math and matrixes.
3:59:43Like this is wrong.
3:59:44Sh does VLC ever like censor the kind of videos it can play and not based on the content of the video?
3:59:52No, never.
3:59:53We never do that.
3:59:55Because like a a VLC is completely offline, doesn't talk to any server.
4:00:00So, we don't know anything that you're using the software for.
4:00:02So, again, there's no government that can say, you know, like the French government came in and say, We don't want, uh, I think anime is destructive to society, we don't want any anime, not a lot of people.
4:00:15No, they cannot, they cannot do that.
4:00:17And also, what they tried is to say, Hey, I want to know if that person watched that type of video.
4:00:22And the answer is like, no idea.
4:00:24So, no on that.
4:00:25So, for surveillance, no.
4:00:27No, no, because the only infrastructure we have is a downloading infrastructure.
4:00:31There is no telemetry in VLC.
4:00:33It would be difficult because of the international nature.
4:00:36It would be difficult for you to incorporate that code because there would be someone in the UK and someone in Germany and someone in the US as part of Videoland who'd be able to see that.
4:00:45It would be extremely difficult.
4:00:46The only things that we can do which happen is like we had the issue, we had the case with some police in the US who said, we have a murder case, right?
4:00:54And the file is destructed or doesn't play in that version of VLC.
4:00:58Could you help us?
4:00:59We never have access to the video.
4:01:01It's like a normal support, right?
4:01:03Oh, it's really about playing the file?
4:01:04Yes, and like I remember in the middle of the Afghan war, right?
4:01:08I received an email from someone in the army, right?
4:01:12I don't remember the grades, right?
4:01:13It was just like, we have a big issue with the latest version of VLC because it doesn't play correctly the file on an RTSP server that we have where there is all the movies.
4:01:25And he says, VLC is very important for the more on the troop on the ground, right?
4:01:29Because at night, I think it might be boring, right?
4:01:31So they have a collection of videos to watch or movies over there, right?
4:01:35And of course, I did an update and I broke some support of RTSP, right?
4:01:40So I gave them another version just for them, right?
4:01:43Because it was important.
4:01:44And because VLC is completely open source, I think it is allowed on the US Army laptops, right?
4:01:51Because I guess someone in the US military actually looked at it and said, well, okay, this is okay, right?
4:01:58And the way we document, how we process, that was okay, right?
4:02:00So the only way we work with authorities is to help them doing support.
4:02:06That's amazing.
4:02:07That's really amazing.
4:02:08That's an amazing story.
4:02:09Yeah.
4:02:09We don't see anything happening on how people use VLC, and this is strong.
4:02:13Do you feel the stress of this?
4:02:16So first of all, millions of people using it.
4:02:18Second of all, the military using it.
4:02:21Maybe sometimes pressure from governments.
4:02:25Does that...
4:02:27That's a small team, right?
4:02:29Yeah.
4:02:29How big is VLC control, like the core contributor?
4:02:33How many?
4:02:33Six, eight?
4:02:37And everything legally is on me.
4:02:39Everything that is legal is on him.
4:02:41You are stressed about this.
4:02:43I used to stress about that a lot.
4:02:45Yeah.
4:02:45But the thing is, we're doing what we can for everyone, for the greater good.
4:02:51We work that we make some extremely complex technology easy for everyone.
4:02:56We're a tool, and every tool is going to be used for great things and for bad things, right?
4:03:02You cannot blame a tool, I think.
4:03:05And this is very important for us.
4:03:09I used to be in a lot of stress.
4:03:12I'm not anymore, right?
4:03:13What's the secret to your Zen?
4:03:14I mean, over and over in the chats I've had with you in the conversation today about every even tense topic.
4:03:23You're very Zen.
4:03:25What's the source of Zen?
4:03:27I have a way of thinking about what is the worst case scenario, always.
4:03:35And the answer is, at the end, if I take like a chess player, in the end, am I dead?
4:03:41Yes or no?
4:03:43Right?
4:03:43And I do that non-stop, right?
4:03:46And that's also how I do my startups, right?
4:03:49Is that I'm here to get something right.
4:03:51What is the worst case?
4:03:53It gets bankrupts.
4:03:54That's life.
4:03:55A company lives, a company dies.
4:03:57That's okay, right?
4:03:59And so my moral way is always like, am I dying in the end?
4:04:02Am I hurting someone?
4:04:04If I'm, the answer is no, then too bad, right?
4:04:07Like, oh, some lawyers are not going to be unhappy.
4:04:10What are they going to do?
4:04:11Take all the money of Vidolan.
4:04:12Wow, they're going to have 50 grand.
4:04:15Amazing, right?
4:04:16What are they going to do with that?
4:04:18The source code is out there.
4:04:19It's not stoppable.
4:04:21Also, because what we do is good and it's done for everyone.
4:04:26That's beautiful.
4:04:28Karen, you said that there's an active archiving preservation community.
4:04:33I think that's super fascinating.
4:04:35You wrote that they're stretching budget, but they see the extreme importance of FFmpeg as a Rosetta stone so that multimedia can be played a thousand years from now.
4:04:45I mean, that's a beautiful way to see FFmpeg VLC as a tool for preserving visual knowledge.
4:04:54Yeah, so one of the coolest communities in open source multimedia, mainly led by someone called Dave Rice.
4:05:00I'll give him a shout out, I think from City University of New York is the archiving community.
4:05:05They've done so much stuff that they value open source, one, because yes, they lack budgets, but two, they see the fact that archiving video is important for the world.
4:05:18But being able to play that is a big problem.
4:05:20Famously in the UK, there was something called the New Doomsday Book, and they archived lots of stuff on BBC microcomputers.
4:05:28And within 10 to 15 years, no one had the right software to play that.
4:05:31I think it was 20 years or something like that.
4:05:33And someone had to go and reverse engineer this.
4:05:35And that was like 20 years.
4:05:36Imagine that in a thousand years.
4:05:39I think one of the great things about FFmpeg is it's written in C.
4:05:42C is the closest to mathematics you're probably going to get, the closest to logic.
4:05:47Do you think in 1,000 years we'd still have C compilers?
4:05:50Yes.
4:05:50We have languages that exist that haven't changed too much.
4:05:53We have mathematical notation that exists.
4:05:56It will be like Latin.
4:05:57C will be like Latin.
4:05:58It will be a thing that you learn from the past, but it will still be usable in certain contexts.
4:06:04So the archiving community are really great practically.
4:06:07Again, limited funds.
4:06:08They funded the development of the FFV1 codec.
4:06:11So that's a lossless codec.
4:06:13So the archiving community is really scared about the act of compression losing things.
4:06:17And they have a fair point in this.
4:06:20If they compress too hard, it could change the view of the material.
4:06:26There could be something slightly different here and there.
4:06:28So they're really concerned about things need to be not just compressed well, but lossless and be fast.
4:06:34And so they worked with FFmpeg to develop a whole new codec designed for fast software-based encoding.
4:06:40They're really concerned about resilience.
4:06:42So if they're storing on tapes or other hard disks, I lose some bits.
4:06:48I need to recover quickly.
4:06:49I can't lose a whole GOP because I've lost a bit or something like that.
4:06:54So they're a really great bunch of people.
4:06:55They funded GPU encoding in FFmpeg to make FFV1 encode faster.
4:07:00And it's really about preserving the world's multimedia heritage in a way that's usable.
4:07:07And there's a lot of great teams and a lot of archival groups across the world who've chosen FFmpeg and FFV1 as their archiving solution.
4:07:17And they can really provide us also super specialist advice.
4:07:20They can explain, ah, in the 1950s, colorimetry was done like this on this certain type of tape.
4:07:28And so there is this special case that you need to handle.
4:07:32And you'll never get this anywhere else.
4:07:34They know things on video that we don't.
4:07:37Yes.
4:07:37Like every time I talk to Dave Rice or the people from the British film, it's just like every time I just learn something new.
4:07:45And I've been doing video for 20 years.
4:07:48They have, especially on colorimetry and colours.
4:07:52Storage, these other things.
4:07:53I mean, they have a deep, deep appreciation of the content itself, of the video itself.
4:07:59And like, especially when you're thinking of lossless, they're terrified of losing something essential about the thing.
4:08:06And in so doing, they're deeply understanding the thing that is to be preserved, which you sometimes might not be thinking about when you're obsessing about the actual technology of the encoding and so on.
4:08:16And when you enter the habit hole of film scanners, right?
4:08:21So you take those things to make to digital, it's like a huge topic that would take another five hours of podcasts just on that topic.
4:08:32And there's a lot of film that needs to be archived.
4:08:33Film is degrading.
4:08:34It's maybe not stored in the right environment.
4:08:37The other thing is they can, what they also do is because it's open source, they give this away, their workflows to countries who can't afford to have archiving institutions where archiving is done by volunteers.
4:08:46It's done by other things.
4:08:48They go and teach, you know, in India, they teach children to do FFmpeg commands.
4:08:53They're really great.
4:08:54They're really the model community, the model ethos of what we're trying to achieve.
4:09:00They are such a great bunch of people, so interested in participating and being part of something much bigger because they realize the work they're doing in a thousand years is going to tell a lot.
4:09:11You know, in a thousand years, we may be drowning in AI slop.
4:09:15This stuff needs to be important and archived well.
4:09:18What was life like?
4:09:20Yeah, it feels like capturing the 20th century and the 21st century is essential because it feels like a transition point where we went from a scarcity of data to slob, oceans of slob.
4:09:35And that transition point is good to archive.
4:09:38People don't realize we are losing today a ton of films.
4:09:42There is a ton of things from the 30s, from the 40s and the 50s that were there is no value.
4:09:50And tape.
4:09:5070s and 80s, there's tape, and there's not enough tape heads in the world to read all the tapes.
4:09:55So they have to decide what they want to archive and throw away the rest of the tapes.
4:09:59There's huge moral hazard, I guess, for want of a better phrase around this topic because this is a digital record of human history and they have to make decisions.
4:10:10And there's digital stewardship, I suppose, for want of...
4:10:12I made that phrase up, but it's not a real phrase.
4:10:15To make sure the world can have this information in something that's playable by everybody, not playable on some device that doesn't exist anymore.
4:10:26And then there's like, realistically speaking, there's a needle in the haystack where there's a lot of value in archiving all that footage and then over time finding the gems that we don't know are there.
4:10:38Hey, there was something in that corner that we just didn't.
4:10:41And that would have been compressed away because some little thing.
4:10:44Oh, wow, there's something there.
4:10:46And they've made sure that it's lossless.
4:10:48They can prove mathematically that it's lossless.
4:10:51They can run different trade-offs for if there's bit for they lose a bit, a single bit flips.
4:10:57I can make sure that I only lose a portion of a given frame.
4:11:01They can do error recovery on previous frames.
4:11:03They can do all sorts of different things.
4:11:05Do you think VLC and FFmpeg will be here 100 years from now?
4:11:10FMPEG, yes.
4:11:12VLC, maybe.
4:11:14What's the future of...
4:11:16Where is FFmpeg going?
4:11:18Where is VLC going?
4:11:19Like in the next, if you think about like five years, 10 years, 20 years.
4:11:23Five years, 10 years is easy.
4:11:25The question is after that, right?
4:11:28The question is, do we arrive at something called holograms, right?
4:11:32Yeah, so will VLC and FFmpeg expand to whatever multimedia?
4:11:40Yes.
4:11:40So multimedia might become, sorry for the pothead expansion of topic, but if you look at something like Neuralink with brain-computer interfaces, it's very possible that we start to consume what multimedia means is whatever codec, whatever data that our brain wants to consume through the brain-computer interfaces.
4:12:03That's one.
4:12:04And virtual reality, of course.
4:12:05You will have VLC for Neuralink.
4:12:08And you'll have ffmpeg-i input format human brain.
4:12:11There's going to be codecs for the brain.
4:12:14Sure, 100%.
4:12:16Of course.
4:12:16I mean, compressed neural information.
4:12:18Today there is like there are new codecs for, for example, what we call point cloud, right?
4:12:22Or volumetric videos, right?
4:12:24There is a ton of research on what we call RGBD, right?
4:12:28So codecs for depth that is useful for robotics and for 3D things.
4:12:32There is a ton of codecs for compression of 3D elements.
4:12:35Compression for astronomy.
4:12:37For example, on VLC, we also have already a VR, an XR version of VLC.
4:12:41And also on Kyber, right?
4:12:43We talk about Kyber.
4:12:43On Kyber, we also do streaming of XR content for the glasses who cannot have enough power inside the Apple Vision or the Quest.
4:12:53So we already work on streaming 3D, XR, interactive, low latency.
4:12:59There is something called volumetric video, point cloud videos.
4:13:03So it's not stopping.
4:13:04And yes, at some point, it will manage 3D data inside VLC and FFmpeg, right?
4:13:10It's obvious.
4:13:11So that's where it is moving.
4:13:12Like the community is open.
4:13:14Not everyone in the community sees that, but like as Kiran and I, we are entrepreneurs, we know where it's going.
4:13:21We see that, right?
4:13:23So I suppose that there is a tension probably inside FFmpeg.
4:13:26It's like, hey, listen, folks, we're really good at doing video and audio.
4:13:33So like, why expand?
4:13:35Like, let's do the thing we're really good at doing.
4:13:38In order to answer that question, we need to answer the definition of what is multimedia.
4:13:44And multimedia is a digital representation of several streams for the human senses.
4:13:55And we will do that, right?
4:13:57So imagine there is now a way to not have a mic, but have an odor sensor and a diffuser of odors.
4:14:05It will get into FFM pairs.
4:14:07So your demuxer, yes.
4:14:09Yes.
4:14:10Of course, your demuxer has a new track type that is basically odors, right?
4:14:14And you already have...
4:14:15Smell, touch.
4:14:16It's like, oh yeah, you have a left and right nose track, you have a left and right audio pair.
4:14:19It's easy.
4:14:20Yes.
4:14:21Of course.
4:14:21It's the stereo smell.
4:14:23So in VLC, for example, we already have a plugin for Aptic.
4:14:27It's mostly for what we call 4D cinemas, right?
4:14:29You know, those ones on hydraulic.
4:14:31I don't know how you say that.
4:14:33Hydraulic arms, hydraulic arms.
4:14:35And where everything is moving, like you have in theme parks, right?
4:14:38And there is a data feed synchronized, which is basically transporting this information.
4:14:45Is there yet a standard for you?
4:14:46There are many standards, right?
4:14:49You make me so happy.
4:14:51And so, of course, like we have a plug-in, which is not in the normal version of VLC, that is basically transporting those type of movements, which is physical movements, which is haptic movements, right?
4:15:02It is a human sense, so it will get in.
4:15:06That's such an exciting feature.
4:15:08Was it, I mean, it's a small community of developers.
4:15:12How do you pull that off?
4:15:14Like, if you're a contributor to FFmpeg or VLC, it feels stressful.
4:15:19Like, just looking at Twitter, it's like it's a huge amount of work to make it work on all these different operating systems.
4:15:29It's an incredible effort.
4:15:30No, see it in the other direction.
4:15:32We are not the contributors.
4:15:35We are the maintainers.
4:15:37Right?
4:15:38So we maintain for everyone, meaning that, for example, every year there is around 150 people who contribute to VLC and maybe 300 on FFmpeg.
4:15:50Our goal as a small team is to get all the contribution in.
4:15:54So if there is more usage, there will be more contributions and those people will do the right module, the new format and so on.
4:16:02We care about the architecture of VLC, the architecture of FFmpeg, right?
4:16:07Now we're doing things in VLC, which is a spatial audio, right?
4:16:11We did the demo not long ago.
4:16:13There was changes needed on the architecture.
4:16:17And we did the first spatial audio module.
4:16:20When it's going to add the second one, it's going to be easy, or the third one is going to be easy, right?
4:16:23Our goal, and it's going to be the same for Odos or Aptic, right?
4:16:28We need to work the architecture so that modules can be added to add future capabilities.
4:16:34So yes, we are multimedia frameworks.
4:16:37So that's not just audio and video.
4:16:39It's everything that is timed and represents something that you can sense.
4:16:46And if it's brainwaves, it's going to be brainwaves.
4:16:49I think that's inevitable.
4:16:50Sorry.
4:16:51I love this on so many fronts because FFmpeg and VLC are pushing companies and pushing the world to standardize.
4:17:00So for example, to standardize brainwaves.
4:17:03So standardize, it would push, like I hope New Link comes up with a standard for multimedia via brain computer interfaces or for robots with haptic.
4:17:18By experience, what happens is always the same, right?
4:17:21You start, it's a new topic.
4:17:23There is like five different standards because everyone starts to do this.
4:17:27The hype goes down because every time the hype goes down, then people start to say, well, you know what?
4:17:32We need to do a standard.
4:17:33People, because two or three companies, usually not the leader, but the two or three followers, do a standard.
4:17:40And then we implement the standard.
4:17:42And then it's the end of the curve.
4:17:44It starts to be more powerful.
4:17:45And then the leaders kind of pressured into it because it's better to do a standard.
4:17:50Example, 3D audio, right?
4:17:52Six or seven years ago, it was everything about 3D.
4:17:54You had the cardboard on Android.
4:17:56You had two audio formats.
4:17:59They're all dead, right?
4:18:00And now it's coming back with actual use cases and we learn from the mistakes of the past standard.
4:18:06So it will be the same everywhere.
4:18:09And not try to avoid closed.
4:18:12I saw somewhere you didn't have too many nice things to say about Dolby.
4:18:16No, I don't.
4:18:18Can you educate me on why, where they went?
4:18:23What they do bad that made you mad?
4:18:26It used to be an amazing company doing tons of great things with amazing engineers.
4:18:33They define what sound was.
4:18:35And now it's mostly lawyers and licensing things.
4:18:40Oh, so they're, yeah, they're closing stuff off.
4:18:42They're trying to get it.
4:18:43No, it's just like they don't innovate as much as they did and so on.
4:18:46It's a bit like, I'm sorry to say, right, like HP, right?
4:18:51Not true.
4:18:53Oh, since we talked about Twitter a bunch in a bunch of different contexts, do you have a favorite and least favorite, the most embarrassing tweet on either VideoLand or FFmpeg Twitters?
4:19:06My two favorites are talk is cheap, send patches.
4:19:09I think that that embodies a lot of the stuff doesn't get, as we've talked about, stuff doesn't get built unless someone does it.
4:19:16It doesn't just appear from the ether.
4:19:18The other one that I like is FFmpeg, nothing is beyond our reach.
4:19:23I think that comes from a US military satellite patch where I think they invented some kind of monitoring system that could see the whole world and this was released.
4:19:32Wasn't there something where FFmpeg was running on a rover on Mars?
4:19:35Yeah, so FFmpeg is used by the Mars rover, the Mars 2020 rover to compress pictures.
4:19:43They wrote a paper about it and they really wanted to use as much commercial off-the-shelf technology as possible.
4:19:47FFmpeg runs on Mars, so we are a multi-planetary open source library.
4:19:52Nice.
4:19:54Very often we've seen tweets for people using VLC in weird places.
4:20:02A lot of the people doing Formula Ones are in all the paddocks.
4:20:06They use VLC to play the live feed.
4:20:08We've seen the European Space Agency, we've seen SpaceX monitoring the launches with VLC and it fills you with joy, right?
4:20:18I've seen particle accelerator.
4:20:20Oh yeah, yeah.
4:20:21We had one of the most amazing thing that I went for was to go to the CERN at the LHC because they were using VLC to monitor all the captures on the ring because the ring is 27 kilometers.
4:20:36And so they had some analog cameras and they were using some of the capture cards to go to analog to VLC so VLC could stream on their multicast network for the whole CERN to access to that.
4:20:49And like I visited that in 2010 with Laurent and like we fixed their issue in an hour or something like that, right?
4:20:59Because with some parameters maybe not well documented at that time.
4:21:04And he said, okay, for the whole day, what do you want to do?
4:21:06And we visited everything, like things were always antimatter and colliders and so on.
4:21:13And that was like one of the most amazing day of my physic background.
4:21:19Yes, he was like everywhere.
4:21:22Any tweets, Karen, you regret?
4:21:25No tweets of regret?
4:21:27Or is it like that?
4:21:28Well, how's the French song go?
4:21:30Regret nothing?
4:21:30Je néme regien?
4:21:32Yes, that's very important for me, right?
4:21:34Don't regret anything.
4:21:36No, it's because regrets are a tax on your mind, right?
4:21:41So learn from your mistakes, but don't regret because you've done it.
4:21:45So except if you have a time machine to go back in time, don't regret, right?
4:21:51It's going to just tax your brain.
4:21:53Learn from your mistake?
4:21:54Sure.
4:21:54Don't regret.
4:21:56It's like, it reminds me, it's beautiful.
4:21:58It's a tax in your brain.
4:21:59It reminds me of the Johnny Depp quote I saw where he was saying, hate, you know, I don't hate.
4:22:05Hate is a very expensive emotion.
4:22:09Are you comparing me to Johnny Depp?
4:22:11Because that would be your first one.
4:22:13Well, gentlemen, like I said, I'm internally grateful for the software that the two of you and the bigger community have been part of building with FFmpeg and VLC and everything else.
4:22:25I'm eternally grateful for the spicy tweets never stop.
4:22:30And I'm grateful that you would talk with me today and give me this sexy hat.
4:22:37I feel like a wizard.
4:22:39I feel special.
4:22:41And I feel special to get a chance to talk and celebrate the piece of software that brought me so much joy over the years.
4:22:46So thank you for everything.
4:22:47And thank you for talking today.
4:22:49Thank you for having me.
4:22:49Thank you so much.
4:22:51Thanks for listening to this conversation with Jean-Baptiste Kempf and Kieran Kunha.
4:22:56To support this podcast, please check out our sponsors in the description where you can also find links to contact me, ask questions, give feedback, and so on.
4:23:04And now let me leave you with some words from the legendary Linus Torvalds.
4:23:10Most good programmers do programming, not because they expect to get paid or get adulation by the public, but because it is fun to program.
4:23:21Thank you for listening, and I hope to see you next time.