The important is, is your code good? We care about excellent code. We don't care who you are. Like maybe you're a dog. I don't care, right? I don't care where you come from. I need to look at your code. Oh yeah, but I'm engineer at this very large company in in Italy, in Germany, in the US. We don't care. We care about the quality of your code because this is what defines our community. And which means that we have a lot of people who contribute who are from very different backgrounds and and and very introverts. Sure. But that's okay, right? >> FFmpeg is probably one of the biggest CPU users in the world. Everything we've just said in the past couple of minutes, every sentence is someone's lifetimes work. There are books about every sentence. So the level of complexity >> in many cases is inordinate. FFmpeg has 100,000 lines of assembly for all the codecs and just this one has 240,000. Every cycle matters. We are talking about probably 3 billion devices which are going to decode video non-stop
[00:01:01] because for example 30% of the video from Netflix are now in everyone 50% of YouTube. This is what peak video codec should look like. 79.9% assembly 19.6% 6% C and uh 0.5% other. And what's incredible is with those tweets, which is factual, people get crazy. For the last two years, they go crazy. No, intrinsics is fine. The compiler, >> you can optimize your compiler autoacctorization. It's your fault. You don't understand. And we've tried that forever, right? For 2 years and two years later, showing hundreds of examples of of handwritten assembly. No, no, no. You're doing it wrong. The compiler can do this. intelligence agencies tried to like say, "Can you put a back door in VC?" >> Yes. Two of them. >> What What do you say? >> No. I was a lot less polite. >> Basically saying, "Hell no." >> Like if we had to compromise our software, we would shut it down. This is clear.
[00:02:00] >> Any tweets uh Karen, you regret? >> No tweets of regret. >> Or is it like that? Well, how's the French song go? Regret nothing. Don't regret anything. No, it's because regrets are attacks on your mind. The following is a conversation all about FFmpeg and VLC with Jean Baptiste Kemp and Karen Kuna. FFmpeg is an open- source software system that is the invisible backbone behind YouTube, Netflix, Chrome, VC, Discord, and basically every platform that touches video or audio on the internet. It can decode, encode, transcode, stream, and play almost any video or audio format ever created. To me, it is one of the most incredible software systems ever developed. And it's all done by volunteers. VC is also a legendary piece of
[00:03:02] software. It is an open- source media player that plays basically anything you throw at it, any format, any platform. No ads, no tracking. It has been downloaded over 6 billion times. And 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. So 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. Thank you. and about the two great engineers and human beings I'm uh talking to in this episode. John Baptiste is the president of Video Land and is a key figure behind VLC and FFmpeg. Kieran is a longtime Kodak engineer, FFmpeg contributor, and
[00:04:02] the man behind the now infamous FFmpeg account on Twitter X that I recommend everybody follow for the memes and for the unapologetic celebration of open source and great lowlevel software engineering. Let 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. We live in a world where billions of people consume video every day without ever thinking about the invisible machinery underneath it. But that machinery matters. Open- source infrastructure matters. It 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. And so this conversation is not just about codecs
[00:05:00] and media pipelines. It is also about the deeper spirit of engineering and generosity that makes projects like FFmpeg possible. Again, I can never say it enough. Thank you. This is the Lex Freedman podcast. To 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. And now, dear friends, here's Jean Baptiste Kemp and Karen Kuna. So, the legend goes VLC can open everything. What's the weirdest thing that you know that it can open? You know there is a ton of people who are using VC to record VHS videos, right? Like it's just like you plug it with a capture card and you can basically record VHS video. >> Well, how does that work? >> Basically, it's you know those type of capture card where you can put a perel in or or RGA and you put that and
[00:06:00] actually VC can play those type of cards and there is a module which allows to control directly some those VCR camcorders. We support DVD audios lately, right? We spend the the summer working on DVD audio support and like there is no no one's making any DV audio support. There is a custom encryption schemes. What about Lucasfilm? >> Oh yeah. And there is of course all the weird codecs support game codec supported by by FFmpeg. >> The 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 disc that existed at one time of one little sequence in the game. And then finally there was a at one video land conference we made a competition to make make the weirdest and most horrible file ever and see if VC could play it. >> What did it end up being? What's the file? >> It was an MKV file made by Derek which each of the frame was changing resolution, aspect ratio, rotation and it was like did it work? Yes. And there
[00:07:02] was another one where the whole video was actually animated subtitles, right? SSA, right? So each this one was so each each frame was a black frame, but on top of that there was a a subtitle that was animated for each frame. >> There was a file that's a valid zip and a valid MP3 at the same time or something like that. So >> So yeah, we made a competition of stupid files >> and it worked. It opened all of the stupid files. >> Yes. By the way, uh for people who are not familiar, I am wearing a hat. Would it be fair to say this is the best worst logo of all time, the cone? >> Yeah, by far. Right. The logo of VC is so iconic, right? Like we are a team with a small number of people and and the icon is known everywhere. I go to middle of nowhere in India or in China. People know the cone, right? And and 25% of the website traffic that comes to uh our main website is cone player, right? So, so many people don't know VC, right? They know the cone player. >> That's the thing that Google for is cone
[00:08:01] player. >> Yeah. They go on Google and they they put cone player and they download VC, right? So, that's iconic. And once we tried to change it as a joke, right? We said it was going to be a type of um uh Caterpillar construction and we said that during April 1st and we had around 10,000 emails saying no, don't change the logo and so on. Right? So, it's so iconic, right? It's so distinctive, right? If you want to do a video player, you're going to put a play button on the TV, right? And that's a YouTube YouTube logo, right? It's an original. This one is orange, right? Very bright. Uh, and and it's weird >> and it's ridiculous and it's absurd and it's hilarious. It becomes meme and meme becomes culture >> and you keep it and you know about it and you know that in 20 years like you still have going to have the cones and remember, oh yeah, that was a video player. >> Yeah. And we'll talk about, you know, the the mission of FFmpeg being a kind of the archival aspect of it. So you can think about a thousand years from now, we'll have all these videos that only VLC can open. Humans, human civilization
[00:09:02] has already destroyed itself multiple times and the only thing that will remain is this like, you know, the cockroaches will be crawling around. It'll be the VC logo with our some of the archival footage that VLC can open and the aliens will show up and they'll press play and they'll get to see. really hope so, right? But there is also so many memes where people say, "Well, I'm sure I can put a pancake inside my DVD drive and VC will play it." Can they? >> No, we tried. It doesn't. But we actually have a video of us trying that. Uh, didn't work. >> A codec for physical reality. I don't know what that would even look like. >> There was a guy who did that, right? He he he printed a small cone, right? Like the the ones we we distribute as goodies. And inside he put an RFID chip um which was his way of playing a movie, right? And so he put this on FID player and when he put that it was playing like the last Star Wars and so on. So instead of having like DVD boxes he had like VC cones all around and he plugged that and there was like physical objects. So the
[00:10:01] 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, the entire ecosystem enabling free media. We'll talk about FFmpeg. talk about video land VC and all the other incredible video technology uh that is used probably by billions of people. So JB, you're the lead developer behind the legendary VLC player. Kieran, amongst many other things, you're lead developer behind the legendary FFmpeg handle on Twitter. And both of you have spicy opinions, I would say. So today I want to talk about FFmpeg and VC. Uh for 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. So FFmpeg underlies basically most video on the internet
[00:11:01] including YouTube, Netflix, Chrome, Firefox, of course VC and countless other video platforms. It is estimated that over 90% of video processing workflows online and offline involve fmpeg VC has been downloaded at least 6.5 billion times but likely that number cuz it's impossible to really count the number uh is much higher than that. Virtually any operating system supports virtually any media format. The limitation being it can't open pancakes. So, uh, can we just lay out some of the basics to to help people understand what's involved in all of this? So, when we press play on a video player like VC, what happens? What how does it go from the the file or the stream to the pixels on the screen and the sound on the speaker? What are the big stages to be aware of?
[00:12:01] >> So, there are several stages, right? The first stage is to get from an address, right? Which is the type of URL to give you a bite of streams, right? So this would be for example HTTP file DVD, right? You give the path to the media and gives you a stream of data. The stream needs to be cut up by what's known as the container, the demultiplexer or demox. Um we'll try and keep the jargon light throughout this, but um it needs to go and start demarcating video and audio frames. So it just gets data from the operating system blocks at the time and needs to start cutting these frames up into compressed data. It 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. >> We're very sort of used to assuming the GPU will play all of these things. There'll be hardware acceleration. I think it's up to 45% of files are not GPU decodable. So these need to be probed. They need to be detected. There can be variants of a given codec, some
[00:13:01] of which are decodable on the GPU. Different vendors of GPU might have different capabilities. So those need to be detected. So if if it's GPU capable, you pass it through to the GPU blackbox. So now if there's a software fallback, that means in the beginning is is to first do deentropy coding. So removing the mathematical coding of the bitstream. So this uses capabilities such as Hoffman coding or arithmetic coding to actually decompress the mathematical layer of the bitstream. We then need to start reading the syntax elements for intra prediction. So intra prediction are like still images of the video. So your frames. So this works and operates in the spatial domain. So you do your intra prediction spatial domain. You you have a residual because your prediction isn't quite matching that of reality. So you've made a prediction but then there's a little bit left and that's what's known as the residual. This is stored in the frequency domain and these are quantized to decompound their space. We then need to do the
[00:14:00] inverse transform to bring them back to the spatial domain and apply these residuals. So a lot of the process of the decoding is this thing is compressed. Yes. >> Yes. And you have to predict the highest quality thing that's supposed to go there. I frame is the best representation you have spatially >> and then you and then there's a lot of temporal compression that can happen depending on the codec >> and then you're predicting you're predicting what the reality that was captured in this raw form. >> Yeah. Because what people don't realize is that the compression on video and audio is 100 times, right? Like people don't realize how compressed we we do, right? For audio you move you compress by when you go from normal audio to MP3 you compress by 10 times right when you move to video you need 100 time 200 times right so you need to remove all the details but that you don't care about because all the compressions that we do and that's very important people forget about that is to be viewed by humans
[00:15:01] right so all the codecs either for audio mimic basically how your ear works right and and a lot of things about like the the the response on the ear and same for for your eyes right and and so for example on video we don't work on RGB right everyone expect to work in RGB we don't right we move to YUV which is basically one is luminance brightness and the other are colors and this matches your eyes where inside your eyes you have the cones and the buttons right some of them look on brightness and more on the other on colors right so we need to compress a lot and so we need to degrade but in order to degrade we need to match the human perception and this is why it's so difficult and then we need to use the maximum power mathematical power very complex technologies we move to the frequency domain as Karan said we do a ton of the quantizing and and in order to get the best compression but it still looks good >> you're trying to compress in order to
[00:16:00] maximize the highest quality thing for human perception that is correct and that is correct and this is very important right compression is not like a zip Right? A zip you have data in, you get data out, right? And you try with all the the zip compression to arrive with uh the limit. Here we are degrading the signal, right? And so we need to degrade both the audio and the video signal in the best way possible. And we can do that, but it involves first a lot of theoretical knowledge about how it works, the eye works, but it a lot of mathematical uh change, a lot of mathematical tricks, right? For example, when you move to RGB and you do go to YUV, for example, what we do very often is that we scale down the resolution of the color compared to the brightness and most of the time and just this without compression it divides the size by two but most people don't see it right um and so on and so on right and then you go to very complex mathematical change
[00:17:02] so of course uh 4 years transformed which the factor are not for transform they have like um discrete continuous transform but that's the same idea. So frequency domain um we split the video by blocks right so 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 and each generation of the codec is like 30% less >> Mhm. for the same quality, right? And this requires amount of power um of computational power that are huge. >> No, you should you should elaborate. It's 30% better, but an order of magnitude perhaps perhaps even two orders of magnitude more compression power. That that's the big difference. >> What do you mean by compression power? >> Sorry, CPU power to achieve that level of compression. >> Oh, yeah. So, you have to be able to leverage the CPU and sometimes GPU like you mentioned. And then we should mention that a lot of this programming uh is done at the lowest possible stack
[00:18:01] whether it's C and of course as as a legendary Twitter handle um reemphasizes over and over a lot of assembly. So what happens is globally is that you have an address right which gives you uh with the operating system a stream of bytes a stream of data right and this is the first step and the second step arise with demoxing where you're going to separate audio video or subtitle in type of different tracks and then on each of those tracks you're going to decompress them decode them either audio with an audio codec video to video codec and subtitle to subtitle codec um and once you've decompressed those type of things you have raw images row and then you're going to talk with your uh graphic card in your screen and display that. And same for the audio, you're going to talk to your audio card, which then is going to go um in analog to to your audio speakers. >> And everything we've just said in the past couple of minutes, every sentence is someone's lifetime's work. There are books about every sentence. So, the level of complexity in many cases is
[00:19:00] inordinate. You know, it's it's every sentence has thousands of people working on this in in the industry as a whole. books written about it. So there's a lot of detail, there's a lot of subtleties, there's a lot of both academic and practical realities. Um, both of which matter. Uh, we mentioned Kodaks, but I don't think you mentioned containers. So what what's the actual containers for some of the stuff we're talking about? So people are familiar with MP4, uh, MOV, MKV. So anyway, what what are containers versus uh the thing that goes inside? >> So the container is what we call also the muxer right when I say demoxing it means decontainerizing right. So actually if you look Mox multiplexer and de multiplexer right MX and demox are those and same codec is actually coder decoder right um and um so containers
[00:20:01] are this collection of multiple tracks right so it's a what normal people call the file format but it's a bit more um subtle than that but the most known one of course is MP4 but uh when I started it was AVI right as the the video format from from uh Microsoft and uh move which became MP4 was a format from Apple. Um in the open source community one of the person that is still active on video land is called Steve Lom and started this Matroska format which is like a bit more complex and and more feature proof um and um there are so many others. So I mean there's it's a pretty common thing and maybe it'll even happen in this conversation that people confuse container and the codec right. So confuse MP4 and H.264 for example. Is that a horrible violation? >> No it's not because technically the name of H.264 264 is ME 4 part 10 because ME 4 is actually a meta specification which
[00:21:02] has several things in it right there is the part two uh so there is like audio codecs right AEC is the factory is MP4 audio something there is actually several video codecs right inside the ME 4 specification one of them is ME 4 part 10 called also AVC called also H264 right So it's completely the fault of the industry to to to to make things difficult to understand. So that's very difficult so that people then don't understand why sometimes you talk about me 4 part 10 where you mean H.264 and why it's not MP4. So you can technically shove in all kinds of different codecs inside containers and horribly so. But broadly speaking though MP4 is understood to generally be H.264 plus AAC audio. 99% of the time that's that and that the the rest are dimminimous the small effects you know edge effects really compared to that so it's not the
[00:22:00] end of the world that there are people who do get annoyed by that but also in reality something like VC just to point out the file may saympp4 but it may be something completely different and that's one of the challenges both ffmpeg and VC have is the real world is a completely different place to a threeletter file format >> and this is very important to say right like for example in VC and ffmpeg We discard the file format, right? We we look into the file to understand what's in it because 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?" So, we analyze in real time everything that we have and we don't trust uh the the the format. >> So, what information does the fact that it's MP4 give you? >> It helps, right? It gives you a hint, right? just like oh it it's finished by MP4 I will start first by opening probing it with the MP4 container demoxer to see well it should be that but I don't trust it and if I'm lost I
[00:23:01] say okay maybe I'm going to try to so it bumps the priority of the module so how do you get to uh just to take a bit of a tangent there you know the dumb thing is if you try MP4 but it turns out it's a different codec than you would have expected Uh most players just break there. >> Yes. >> So how do you not break? There's just a philosophically I'm sure there's a bunch of stumbling blocks along the way where you it's easy to just break and stop, freak out. That's it. How does VC not? This is why VC is popular. Um but the reason is because actually VC was is just a client of a streaming solution called videoland from from from very long time ago from the late '9s and when you're playing video which are on UDP right in network they might be damaged right so you don't trust your inputs and this is very important in today's security is that you don't trust your inputs so everything in VC is prepared
[00:24:03] to um work with broken files. Mhm. And it's a philosophical idea from the beginning and everything is engineered into that and it's a culture, right? And so for example, NVLC became very popular on that because a long time ago when people were pirating content um which they do a lot less today um >> and none of us ever have >> no um the metadata to play some files like AVI is at at the end of the file, right? And when you're downloading you don't have that, right? So VC was just like, "Hey, this file is broken, but I'm still going to try to interpret it." And this was very useful. We hinted at the awesomeness of the various different stages. We hinted at the awesomeness of codecs, the depth and the richness and the complexity of everything involved there. What let's try to define what is a video codec? What what's involved there? What what does it mean to compress something? You already started to hint at it, but can can we elaborate
[00:25:00] a little bit more? So there's a huge amount of redundancy in any video uh both spatial and temporal and the point of any video codec is to remove this redundant data. Use mathematical properties as part of this reduction process. So 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. So it's asymmetric in that respect. Often the case because compression is done once but there could be lots of viewers of another file. >> So 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. So as as JB suggested VC in the beginning was was used to play UDP network feeds and UDP network feeds lose packets. And so some of the design goals of a codec is also to be recoverable. >> You you need to actually be able to join a stream. It's not necessarily a file.
[00:26:01] You need to join get on the decoding process and start decoding. >> And and to give a more image to to to to people who are not familiar, right? Like when you're going to see any type of movie, right? You're going to see the camera is going to pan, right? and and and travel and you realize that for example all the background is the same from for like a minute right or 30 seconds right so you can reuse the cloud that you see uh on the background you can reuse that from a frame to another right and so it's >> gets the more the more memory you have the more power the more comparisons you can make right and so the more compressed you can be and most of the modern codecs are basically doing that so just to make it even more explicit. So what is video? Video is a bunch of pixels off an RGB have three values and you have a grid of pixels and you have let's say 24 or 30
[00:27:00] or 60 frames a second and you just have all these pixels repeating and showing different stuff 30 times a second. And so the question, the philosophical, the technical question is how can I compress all of that, store all of that at 100x >> or 1,000x, right? >> 1,000x. >> The target is 1,000x, right? >> And the goal is when you say redundancy, what is redundant? Meaning stuff at best that humans wouldn't notice if it was missing. So for example, you have a picture of a cloud, right? and from the next frame there's still going to be the same cloud. So it's redundant. You could just put it once and not do it right or you have a a black background behind me for example the black is the same on the whole picture. Right? So 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. I'm just going to tell you it's the same at the top left. And then you can say for frame one um
[00:28:02] reuse something from the previous frame or the previous previous frame and so on and so on. Right? So you could basically it's unlimited but then it's limited in terms of memory or in terms of compute power because for example if you need to compare pixels on 200 frames in the past on 4K resolutions it's a huge amount of compute and then when you're showing it you have to do the decompress of all of that. So is it the codec the has the encoding and the decoding is is a coupled process that you're developing. >> Exactly. Right. And those are two different um uh trade-offs. Right. Are you going to compress more uh but then it might be more difficult to to to decode? Um are you going to comp to make it a codec that is more complex to encode and easier to decode? Are you going to make a codec that is easier to encode because you need to be fast. But then the the client side the player is
[00:29:00] going to spend more time. That's why you have so many different type of codecs is that it's not always easy. And to make it even more complex, modern code decks like AV1, AV2 or VVC are actually not codecs. They are a collection of tools, right? There are multiple tools, multiple codecs in the same codec to depending on the image get the more compression. So just to elaborate codecs like AV1, VVC have a much wide have a wide audience. It could be a screen share content. It could be video, it could be animation. All of these require different coding tools. So what happens these days is a collection of tools are put in and called AV1, called AV2, called DVC to allow for different use cases. So 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. >> And like you said, there's a bunch of
[00:30:01] incredible engineers behind each part of that, each part of the tools that make up AV1, for example. >> Sure. Uh so we've uh kind of danced around it. We talked about VC, the logo, the hat. Uh let's talk about FFmpeg. What what is ffmpeg exactly? >> FFmpeg is basically the low-level libraries for codec. So compressions and decompression mixes and demoxes and filters. It's the core is this and then you have a several tool which allow you to create a type of pipeline to process any type of video files. uh and it's used as a library absolutely inside everything from VC to Chrome to your smart TVs to basically any video that you see online. um you usually use ffmpeg and ffmpeg in it has all those type of tools and sometimes depend on other libraries like x264 uh lib vpx and
[00:31:00] others right so so it's really now the de facto um tool to process images from a philosophical level I think it's incredible that your home videos your your grandmother's home videos and trillion dollar corporations effectively are on a level playing field using the technology stack. Uh >> it's it wouldn't be a surprise, you know, these big companies just have 3,000 line ffmpeg commands. There are some that use the API, but there are some that just have long command lines. So yeah, there's a bunch of tools like literally command line tool, ffmpeg of course, ff probe, there's libraries, libby vc codec, lib format, libby v fil filter, but the ffmpeg on the command line is like legendary because you can cut there's so many parameters you can customize everything to help. >> It's a language. It's an actual >> It's an actual Yeah, you could think of it as a programming language. >> Yeah, of course. I'm sure because so most of people they're going to take
[00:32:01] ffmpeg file in file out and specify the format right but you can we've seen thousands of characters and we've seen also like people like doing um programming um uh generation of common lines to to to make ffmpeg there is a ton of people who are using AI to generate common lines for ffmpeg because you have no idea what it is but you can do specify so many filters right uh on common line right so um ffmpeg is this collection of toolbox for multimedia processing that everyone everyone uses and everyone that is watching your videos are also using right you you're on YouTube well it's ffmpeg on on the client side well the your server side on the server side the client side is polychrome well you're using ffmpeg also and and you're using OBS to record well it's ffmpeg right you're using a ton of important like big box professional boxes well it's very possible that inside some part of ffmpeg is I mean there there's like so many just to give people idea like I I use FFmpeg a lot on
[00:33:03] on everything just trivial stuff like uh take a video add an intro video and an outro video and fade one into the other like uh what is it called dip to black like where it it dips and then shows the next video and does the same thing with the audio. Uh there's like a cross dissolve of the audio. It's a quiet it quiets the audio and makes it loud again. And there's a bunch of stuff like uh showing the captions on screen hard like baking the captions in. You can customize the font. You can do all kinds of layering of audio and video. There's a million things. And of course, all of that works like magically with basically any codec. Like anything you could shove in on the audio and the video side, it works. But it's like if you if you look like for example you can do things that you would do with adob after effects >> in command line on ffmpeg right it's and
[00:34:02] it's very interesting because for example for for for images there is not such tool there is a few tools but not with the breath of ffmpeg >> so image magic has a similar kind of >> yes but we not do some filters complex filters you don't have the equivalent of photoshop in common line right but you for video you have ffmpeg in common Yeah, it's incredible. I 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. And the vision behind and the same for VC and FFmpeg is that we make every everything that is very complex easy to use for the normal people, for everyone, right? Our goal is to make something that is insanely complex technically and make it easy to use, right? and and people they use VC they drop a file they don't realize how complex the file is but they they play it or or people put any type of thing inside ffmpeg with complex filters and
[00:35:02] it just works like magically right and people >> and this is our mission right make very complex things we wouldn't be here and you wouldn't be here if this required you know a traditional television studio setup >> it's tools like ffmpeg that democratize this the the podcast and streaming revolution The YouTube revolution >> was caused, you know, FFmpeg was a big player in that because it it democratized this technology that was once in the in the '90s, for example, you needed equipment that cost hundreds of thousands of dollars to do compression. It was the size of a car. And now everybody has that at almost an exact level playing field. And that's something that's so remarkable. It gave voice to a lot of people. And we just to clarify, we say you you wouldn't be here, not the human, but the podcast. >> The podcast. Sorry. you you as a sorry VLC did not have anything to do on a biological leveling me as a human >> you realize also everything move from text to images and images to video right
[00:36:02] look look at social networks video is everywhere it's the most powerful um medium there is right and and when you see shorts and and in reals and and Tik Tok right it's amazingly powerful to to to give video is amazing for that right but the complexity is important. >> This what people don't realize. I mean this is really it gave power to the individual all across the world. It's real freedom and 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 opensource and there's a open- source community of users and developers behind it. So it's really it's a movement. So like we'll talk a bunch in a bunch of different ways about the community behind it but uh can you speak to the open source element? So when we say what is ffmpeg it's an opensource project. Yeah. So ffmpeg VC x264 video everything we do is fully
[00:37:02] open source. And for the people who don't understand how open source is my usual analogy is about a chocolate cheesecake right. Um usually for your when you want to buy your cheesecake you go to a bakery they give you the cheesecake. Um, the other one way of having a cheesecake is have your grandma give you a recipe of how to make that. When 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 times tell you how to build the oven and also how you're allowed to modify the recipe and resell it to someone else. And this is because software is just a very long recipe of small instruction. Computers are not very clever. they go very very fast. So a normal program has tens of billions of instruction instead of the tens when you have your chocolate recipe. So a lot of the software industry was about selling software like like where you just have like the final cheesecake in open source. We make we give you everything
[00:38:00] and that managed to get a lot of people work together, right? because then you decide that you're going to make the best program, the best recipe for video and you create communities in um FFmpeg since the beginning of FFmpeg probably >> 2,000 to 3,000 people have contributed from the beginning, right? And then it's exactly like the Linux kernel, right? The Linux kernel has probably 10,000 people contributing everywhere and they get together well mostly online, right? So they virtually get together to create the best tool for something and on ffmpeg and VC is just like well this codec doesn't work so 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 because again we work for the greater good we work for everyone and that is what open source is >> and we should mention depending on the licensing uh you could probably build a billion
[00:39:00] dollar maybe even a trillion dollar company around basic as a rapper. >> Well, yes, people do. People do, right? Uh there was a lot of uh um problems with mostly uh cloud providers who are basically running some open- source tools um in in the cloud and just give you uh the API to access to that. And there was a lot of uh um databases like or Elastic who change their license in order to avoid those type of uh of scenarios. This is a question we get a lot in FFmpeg is why don't you do that and you can't we have we have thousands of contributors some of whom aren't even alive anymore. >> You would need all of their agreement to do that and and JB will go maybe a bit later and talk about how challenging that process was in VC to do the relicensing. The license is a social contract in the terms of who the facto of the community. The community does not agree on much beside the license. people
[00:40:00] go around discuss around because of the license and that also allow those license fork right sometime the community splits but it's possible because of the license then to merge back and we've seen that so many times right GCC and GC um and EGCC in the past we have seen for example all the web browsers right they started as web KHTML which becames webkit and then which becames blink right so open-source license is like the the core of the community and um people are coming from all around the world, very different type of uh religion, um political borders. They they work in the same way on a project to solve a specific problem and the specific problem we're working on is to make multimedia easy for everyone. Uh looking 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
[00:41:01] left share alike requirements for derivatives below is a brief practical summary of the main ones you'll see in the wild MIT license BSD ISC uh Apache uh GNU GPL GNU AGPL where's LGPL yeah LGPL let's see there's the the Mozilla public license there's Eclipse public license. It goes on. There's a lot of variety. I mean, I think I think the really popular ones is MIT, GPL, LGPL, >> NBSD, >> NBSD, Apache. Sometimes you >> license, that's an option attempts to dedicate code to the public domain with a fallback permissive license. >> There are many licenses for many different thing. What people don't understand that public domain is something that doesn't exist worldwide, right? So it's um all the open source licensing use the copyright law right the international copyright law in order to give rights on how you use the
[00:42:02] software or how you modify it's the facto a a copyright license contract that you give to the end user or to the developer and so you have like the first one which are basically very permissive MITBSD you give the code and basically you do whatever you want right you take it you want you modify you do what you want. Um and this is popular for uh uh JavaScript and the type of BSD operating system. >> So some of them one one of the parameters is whether they require attribution meaning if you use the code you have to say >> yes. So in those type of permissive license some you need to say if you use it which is called attribution and some you don't and then there is a 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 um some weak uh copy left license like um the modzilla public license to some which are a bit stronger uh like GPL or even
[00:43:02] very strong like AGPL. So all of those are different um type of licensing that depends on what your goal are and how you want to structure your community which is why I spoke about social contract because this is very important to understand. Um ffmpeg and VC are mostly GPL or LGPL. Uh the Linux kernel is GPL. Uh but Android is Apache. Uh a ton of uh JavaScript framework that are using mostly MIT. um all the BSD kernels open BSD, NetBSD are of course BSD um and and so the it's philosoph philosophical change on how you want people to contribute back basically. >> So there's uh I think you talked about that uh you've moved at one point from GPL to LGPL on certain parts of the project. What what can 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
[00:44:01] permissive LGPL is more permissive than GPL. Yeah. So you have to realize that you can always go from more permissive to less permissive right because of course those license are basically statement. So if you restrict you can always restrict more right. So in a GPL project you can take MIT code but you cannot do the opposite right because they are more constrained to to match. Um indeed in fact I changed the core of libc which is the engine of >> from um GPL to LGPL. >> Uh and there were two reasons to do that. The first one is that so people can use um the VC engine lib VC into third party application. So a lot of applications which are playing video on your phone or on your tablet are actually VC engine in it which is calling ffmpeg in it. >> Yeah. Yeah. Um so that was one of the way to create uh one of the company I
[00:45:00] created which is doing consulting and integration of those application where you integrate VC into third party solutions um like inside game engines or stuff like that. With DPL you couldn't do that because that means you needed to open source everything and those are for a lot of like commercial companies who don't want that. So you can create a company with LGBL you can create a company around it. You can do a commercial thing. You don't have to open source it. So that's a big big leap. >> So you can play video in your game. >> Yes. >> The the problem is I'm a game developer and I want to play some videos. >> Mhm. >> And I don't want to be forced to open source the entire game just to play those videos. So that's where the the consulting business the libc LGPL >> allows you to do that. The LGPL the library GPL as it used to be known allows you to do that. >> And FFmpeg is exactly the same. It forc LGPL forces you to give back what you change on this component this library which is why it's library GPL and so you can use FFmpeg as LGPL into like any type of application even non-open source
[00:46:01] but you need to give back the modification you did on FFmpeg same on lib VLC is it limiting from an open source perspective to go GPL because if you if your uh library if your code is GPL it means means you're not you you're basically discouraging companies from building a business around it right is that is that fair to say >> it depends on it depends on the company but the company whose business model requires the source the application to be closed source yes it's limited so that's why for example I moved to LGB the second reason um is a bit more obscure is that the terms of condition of the uh 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. So VC on Windows and on Mac uh and on Linux is GPL, the core is LGPL, but on iOS uh the iPhone version and the Apple TV version is a type of different license called
[00:47:02] the MPL. Um and yes, I I went and changed the license and it was a long story. >> Yeah. So I I think basically to change the license, you have to contact all the contributors. Yes, it's very important to understand that open-source projects are what we call in the US copyright uh law joint work or in um civil law um collective works or collaborative works is that you work all together in terms of the same goal and then it creates one software which is one release um but the copyright is kept by all the individuals. Some open source projects don't do that they force copyright assignment but this is not what do we do with communities. So everyone has basically copyright on what they changed. Um and this copyright stays even if at the end your your contribution was deleted because the new contribution was based on your previous one. Right? So if you want to properly relic you need to find all the contributors and at that time I had to
[00:48:00] contact more than 350 people and sometimes well they are just an email right so it's you need to actually track down I actually like travel to some place to go somewhere that I was like sorry that had found online to see to go to their job and say well you licensed that can you do you want to change from GPL to LGL most of the times they don't even care they wanted to help PLC but also So it brought me to very complex situation. I arrived to the work of a person who was a factory worker. Um and I said well I need to you to sign that because it was his son who died who actually wrote the code right so I had to explain all those type of open-source meaning and no I was not a company trying to rip out the two lines or five lines that that guy did but was useful and the whole community agreed on that and he had no idea I was a factory worker this and I was a lot younger right like it was 14 years ago and like
[00:49:00] like I was almost in tears right it's we very difficult right we are talking about lives of people and he explaining and we went to talk about the photo of this guy right so it's important to do it right and to do it correctly um but yes that means tracking down everything because every contribution works >> there are some projects who don't respect that and we do relicensing a bit like aggressively >> but as I said it destroy the whole heart of the community because it's >> we only agree on this on the license so That's important. >> I would emphasize the community is such a wide ranging group of people. There's people in a Syrian war zone with electricity part-time. There's there's all people from all walks of life, rich, poor, young, old. Um, so it's quite remarkable to get, you know, a group of people aligned on something and now that's an achievement in itself. >> Yeah, it's incredible. And a lot of them are introverts. So you coming coming to
[00:50:00] find them and getting them and getting them to answer an email might be quite quite difficult. >> Most of us are introverts, right? You you need to be more precise. You are extremely introverts, extremely extremely introverts and introverts, right? It's just like a whole spectrum of different people. It doesn't matter. >> The important is is your code good? Is your code great? Is your technology great? We care about excellent code. We don't care who you are. Sorry. It's just like we have no idea to check. We cannot check, right? Like maybe you're a dog. I don't care, right? I don't care where you come from. I need to look at your code. And 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 just like sorry it's not up to our standards. Oh yeah, but I'm engineer at this very large company in in Italy, in Germany, in the US. We don't care. We care about the quality of your code because this is what defines our community and which means that we have a lot of people who
[00:51:01] contribute who are some very different backgrounds and and and very introverts. Sure. But that's okay, right? So one one of the legends of the community is uh of course Lionus Torvalds who uh created Linux and is a longtime maintainer of the Linux kernel. As the legend goes, he can be pretty harsh on this meritocratic process of reviewing the code and saying it's not good enough. Can can you just speak to to the legend of Listo Wallet? Linux is one of a kind, right? And and I would even go and say that what he did on Git is more interesting than what he did on the Linux kernel. >> He'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? So they know him, right? So he's not very harsh like that to everyone. The thing is what he created in his room is basically powering every server online, right? Even at Microsoft cloud called Asia, I'm quite sure 70 80%
[00:52:03] of the servers are running Linux. All your Android phones are running Linux. What he did um with the power of a of a boot sure is amazing. Um and yes the quality of the Linux kernel is very high and yes it's difficult but we cannot compromise on that we cannot compromise on quality because in the end and you have to understand that is the core community of VC is five people the core community of ffmpeg is 10 to 15 and we are the ones who are going to maintain your code right because 1,000 contributors in the timeline and just 10 staying it's 1% chance that someone comes and stays 1%. So you will have change of job, change of wives, you have children, you have accident in life, you're going to change jobs, whatever. You're not going to come back. It's most likely. So we are the one going to m maintain your code. It needs to be
[00:53:01] maintainable. It needs to be excellent. And yes, sometimes that means that you need to rework your work because it was good, but it's not excellent. And we need excellence because we have very few to maintain something that is critical for the whole. >> But we should also mention that there is some some spiciness, some harshness to the language that's sometimes used when you're uh keeping this high bar of excellence. Uh is there something to say to that? >> It's it's true, right? Um it's also the fact that for example what we're doing is lowlevel. It's extremely technical. uh you get into this community. the tone gets um very like a type of it's a subculture right so people who arrive from the external are basically not known to the subculture most of those people around fmp and VC we do videoand dev days v every every year they are so fun in real life and they love it but it's true that you're online and sometimes like the the tone you don't realize how it is uh but that's okay
[00:54:01] it's a culture I mean you get this in the gaming culture there's pretty harsh intense It's the way people communicate and it's everyone understands that the way you show love and respect just looks different in different communities. Sometimes people it depends if it's a book club usually people are going to be much sweeter. if it's a open source project that's very high stakes and used by millions of people >> but it's very not often insults that you see for example in the gaming right so Linux tone is a bit unusual even for the open source community it's more like it's more harsh on the result saying no this is not good this is crap those type of things that you will see try not to make it about the person make it about the code yes >> it's very very matter of fact and I think you've got to look at it in terms of you know the famous ffmpeg is developed almost entirely by volunteers. And that's true. And you've got to imagine someone's done a hard day's work at their day job. They come home, you know, tursess might be a thing, you know, and that's not something to take
[00:55:00] personally. You're tired, you're busy, but you still care about this open source stuff, >> but you may not be able to explain and and handhold someone on every subtle detail. >> And also, you have to realize that most people don't speak English as native language. And and this is especially for for open source projects like FFmpeg and VC which are mostly centered out of Europe sometimes like um people who are from the US or or just like are very not happy about the tone but most of the time it's also like they don't know better right it's difficult language is English is a difficult language there is so many subtilities and tones and so on that you don't have right so um often it's also difficult in those type of community about like different cultures and languages So, as the legend goes, JB, you uh repeatedly turned down millions of dollars to uh keep VC open source, free for everyone without ads.
[00:56:00] So, take me through the reasoning behind that decision of leaving millions of dollars on the table. >> Yeah, that's like almost a meme, right? On on Reddit, >> there literally is a meme on Reddit. >> Nine gag and Yeah. Yeah. I see there's you looking like a wizard in the in the VC hat on Reddit. This is uh JB the creator VLC media player. He refused tens of millions of dollars in order to keep VCs free. Thanks, Jean Baptisk. You can even summon him on Reddit. >> Yeah. And usually if you see right, it's usually like people tag me, right? And and then there is me and like I say, good morning. I got 24K up votes, which is great, right? My karma on Reddit is amazing at least on that account. Um, so the question is needs to be answered first. What is a story about VC? Right. Um, because yes, this is true. I refuse dozens of millions of dollars. Yes, several time. Yes, I could be a
[00:57:00] multi-millionaire and be somewhere on the beach. Um, but I did not do it because I thought it was not moral and it was not the right thing to do. And this is very important for myself is to be like I work for the greater good. I work for people and I don't want it's not just by my by myself. But the reason is also because I I did not feel that I'm completely legitimate to do that. And let me explain you why. VC story is a very weird story. In France we have university and we have a type of top colleges. Um and those top of excellency schools are engineering school, business schools and basically lawyers and medical, right? But they're outside of university. And in order to enter those, you spend two years working like crazy mass physics to enter those best engineering school. One of the school is called the EKL Central Par has changed name since, but it was called the EK Central Par. And because it was central,
[00:58:00] they had to move it because it was too small after the World War II. And and they moved it. They wanted to move it to the central of France in a place called Clare Ferron. And the alumni decided that this was not okay, right? It is a the school that Eel, right, the one who did the Eel Tower attended to, right? So they said, "No, no, we are amazing great school. We cannot do that." And so they bought a piece of land south of Paris, uh, very near Paris. Um and it was a campus managed by a nonprofit of the alumni. Okay. Because of that everything on the campus was managed by students. The university did nothing right. So uh radio, uh TV, uh supermarket, uh library, um defining who was going into which rooms. Um everything was managed by the student. >> That's amazing. That's an amazing experiment that it all all didn't go to hell quickly. it somehow flourished. It worked great and I learned so much in my life doing those side activities, right?
[00:59:01] Because you're you're 22 and you need to run your compass else you don't have electricity, right? So you care about that, right? But anyway, in the 80s um they did a full experiment of deploying a network uh mostly sponsored by IBM and 3COM which was a token ring network. So token ring is something that probably almost no one knows about anymore. It's a networking technology where you don't have routters, right? Everyone is linked. Um, it's like really a ring and when you want to send a message, you talk to your neighbor who's going to put the message to the next one who's going to put the things to the next one. In terms of ring, the issue with token ring is of course is that it's very slow because every computer on the network needs to open the message, see if it's okay. Is it for me? No, it's not. And then send it back like a token which is traveling around the ring. In the 80s, you're doing some TNET and sending mails as university. That's okay, right? But starts the '9s in the '9s um and start
[01:00:03] video games. And when you have high latency in video games, basically you die, right? So in 1994, 1995 around Doom and Duke Nukem coming around, they want a faster network. So the students go and see the university and say, you know what, we want a faster network. We need to work also play video games. Um, and the university tells them that basically, oh, I'm sorry, we cannot help you because you understand the compass is not ours. You manage it. So do something and you should see some basically partners of this university and basically go away and they go and they actually go and see um the the the CIO of uh Buig which is a large uh French company and who's doing some TVs in France and he says well you know what the future of video is satellite well today we know it's not but at least it was a good idea in 1995 the first of satellite dish and he says that instead of having like one satellite dish and a
[01:01:01] 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. >> Mhm. >> And that required a very fast network. Today it's obvious but at the time was like the first to do video streaming. So they built this project which was called network 2000. Of course, right? We are in the '9s, right? Everything is futuristic is called 2000. >> 2000. Yeah. >> And so they do the network 2000 project. It's completely hacked. It crashes after 45 seconds. That's okay. The demo is 40 seconds. It leaks memory. That's okay. They put 64 megabyte of RAM instead of the eight or 16 you have. And the demo should have stopped there. And that was the network 2000 project by the students. >> What was the format of the video that they had to work with? Meek 2 because satellite is meek 2 TS for transport, meek 2 video and meek 2 audio at that time and the project should have stopped
[01:02:01] there. Everyone was happy. They had like amazing ATM network at 155 55 megabits pers. They had probably one of the best network in Europe at that time and they stopped the project. Six months or a year later, two students arrive and say, "Well, you know what? Maybe other people care about video streamed on a local network and they create the video project video." And one of them is called Kristoff Masio that is a good friend of both Kieran and me and they start the project. It's not even open source yet. and they spend around 3 years to get the school to agree to make it open source because the university wanted to get because of the IP and copyright of the student wanted to basically monetize these ME2 decoders. >> Just to be clear, so what was the main application streaming on a local network? >> It was streaming on a local network. >> By the way, this is like to state the obvious. This is before YouTube. This is >> 10 years before YouTube. You have a Pentium 60 or 75, right? you the main
[01:03:01] machine was 488 86 DX at 33 MHz, right? Bear in >> mind tele television was the main form of video at the time. You could get new channels in the ' 90s. Having even one new channel when you you grew up with four channels, having a fifth or a sixth was a big deal. And so having this satellite service with, you know, dozens, even hundreds of channels was so groundbreaking, especially because this is university where you had ton of different nationalities, right? So there was a ton of people who wanted so they in the end they had like several dishes on different type of satellite right because for example a lot of people were coming from the Maghreb or the Middle East and and they they so they went to different type of uh uh of satellites. Anyway the solution worked great and they started the video project. The villain project has several and some are completely crazy solutions like one how to create multiccast on an uniccast network but let's not come to that it's too too complex but video client part is what became VC.
[01:04:01] >> Mhm. actually they basically strong armed the the university to force it to open source because the university did not understand that and in 2001 it's still early but basically yes the university agreed early 2001 to make it open source I joined the project in 2003 because that's when I joined the university so the first thing is I'm not the one who created VC because actually no one did right just kind of naturally emerged from the video land project and we should mention that like again you you said it Just but to make it clear V is what it became was at the time is a set of technologies around video the VC what you call the client that's the thing that most normies uh >> that is correct think of like as the thing which is like the thing that pops up when you click on a video and you play it. So I arrived in 2003 and then I will create u the open-source um nonprofit organization called video and
[01:05:01] I took everything out of the university to created a a nonprofit project and something sustainable. It's yes it's true that I spent more time than anyone on VC and video land that is sure um but it's a continuity of a previous project video land the student project which is a competity of the network 2000 project which is a continuity of that in that I'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 cuz as as the internet is blowing up and there's companies I mean for people who don't remember like there's companies is making huge amounts of money >> and I can tell you that in 2005 the project should have died. Um and I made it to continue the project. At some point we were only two active developers. Um and I thought it was great technology and was useful and it will be useful and and and I made that my my my life and my my time. Um and I
[01:06:02] made that grow from a few hundreds of thousands of users, millions of users to what we have now, which is probably billions of uh version of VC around the world and used everywhere. Um so that's a bit the story of VC. 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 uh toolbarss, right? You remember those horrible toolbars which were basically spyware or changing your web browser or your search engine or even like advertisement inside VC and I didn't like that. Right? I am and and people don't understand that is 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
[01:07:02] 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 VC 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 3 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? 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 or whatever, right? But I believe there is right and wrong,
[01:08:00] 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 work. Yeah. Well, I should say me and uh most 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 BLC became as successful as it was cuz it it it's an embodiment it's a symbol of like you know freedom and 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 installed some spyware. >> It was it was buried in very faint text or in the license text box that nobody
[01:09:02] 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?" It 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 or whatever it's just like it wasn't right
[01:10:00] well once again thank you from 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 uh 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 uh 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.
[01:11:00] 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 pass untrusted data. That's very normal. But recently what changed was Google started using AI to create security reports on an open source project. 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 report 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 90day industry deadline um without potent without really understanding the nature of volunteerdriven development. In addition, this vulnerability was on an obscure 1990s game codec. um
[01:12:00] the way and 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 fishes 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 the language they use is extremely
[01:13:01] aggressive. They use very strong language like you will get popped. Um and to to Joe public get popped, you know, it means something quite bad. Um 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. Um 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 Fort 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 locks your locks 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.
[01:14:00] They're very very it's almost a denial of service by AI generated bug reports on very niche codecs. Um 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 vulnerable scary scary on a game codec used on one disc in 1993. >> Yeah. And that that's where the dichotomy lies going around telling everyone that their padlocks not safe. Well, that's a hobby project of somebody that the safety of that codec is consumate 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 may recently also um see that um there was another quote unquote vulnerability. It wasn't a Google in this case, but um a filter could overflow and have an integer overflow and one of your pixels could be the wrong color. And this was
[01:15:01] marked high 7.5 severity in red. And 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. You know, you can't just keep crying wolf every day. and and I appreciate you know that's their modus operandi is to create as much scared and fear but from the Google standpoint at the end of the day they need to contribute either financially or with patches Google uses ffmpeg and a scale probably you or I couldn't even contemplate millions of CPU cores and yes they contribute in areas mostly regarding their own products so VP9 AV1 on but in a wider sense there's a disproportionate level of contribution yes they fund students yes they fund summer of code and I think uh so Alex Strange is a former ffmpeg developer um I think
[01:16:01] posting in a personal capacity so he uh posted about security engineers on hacker news uh his post reads the problem with security reports in general is security people are rampant self-promoters in parenthe parenthesis. Lionus once called them something worse. Imagine your humble volunteer open source developer. If 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, Google is going to give them a million dollar bounty. They're going to go to Defcon and get a prize and I assume go to some kind of secret security people orgy where everyone is dressed like they're in the Matrix. Nobody is going to do any of this for you when you fix it. Uh basically commenting on the sort of the incentives for the different uh people involved and
[01:17:00] misaligned. The problem here is is a disproportion of means on discovery compared to patching it, right? And this is the biggest issue, right? Um and after that debacle, Google did some changes now starting to send patches which is >> and they also now have rewards to for fixing issues. So it has changed a bit because of that uh debacle. So it's good, right? But we've seen and we talked about Google, but we have seen like some some other large companies saying, "Oh, you need to fix this bug because it's critical in our product. Can you explain XZ fiasco?" The FFmpeg tweet reads, "The XZ fiasco has shown how a dependence on unpaid volunteers can cause major problems. Trillion dollar corporations expect free and urgent support from volunteers." Microsoft Microsoft Teams posted on a bug tracker full of volunteers that their issue is high priority.
[01:18:02] After politely requesting a support contract from Microsoft for long-term maintenance, they offered a one-time payment of a few thousand instead. This is unacceptable. We didn't make it up. This is what Microsoft Microsoft Teams actually did. And then they uh 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. >> They think they think an open source project is a traditional vendor that they have an SLA. They think a public bug tracker is actually, you know, a third party vendor's Jurro where you can do all of these things. It's not. It's there to report bugs. I think the thing that made this particularly heinenous was the name dropping of Microsoft. the name dropping this is a visible product if this was if this was a just a general bug report I think that would have made it a lot better. >> Yeah. So they literally said like this is a big deal because a lot of people are using it in Microsoft. I wonder what happens psychologically. So I think what
[01:19:01] happens in these companies, maybe you can correct me, is they, you're you're right, they just think of FFmpeg as like a vendor that Microsoft surely is paying a huge amount of money to. >> They 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 FFB?" And this is a very big problem in large like we're talking about some companies but it's the same everywhere right um a lot of those companies like the the when we talked to that person right he was just like a manager on one project in Microsoft teams right he had like never really discussed with open source community he had no idea right it was like and but the problem is that usually there is what we call opos right open source program offices in those type of companies companies and they are the ones who are supposed to discuss with open source vendors um or or open source
[01:20:00] communities but like they often don't explain that correctly internally right and here it's just like >> we are not your supplier if you want me to be your supplier I'm very happy right I will send you a contract and SLAs like I created a five companies who are doing that around open source projects so that's okay >> we should say that some some of the spicy tweets that Karen you're behind And some of the debacle produced results, positive results. >> Donations have increased substantially. They're still not enough to cover even a single full-time developer, but on both a, you know, 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 and what's happened. I can say, you know, it it solved its purpose. people realize the level of importance ffmpeg has >> and on video it's the same right like for example a very simple example
[01:21:01] for more than a year we couldn't update VC on Android because of a bug on the play store on Android play store right the only way we got someone to answer was to put an very spicy as you say um tweet saying that we were going to stop distributing VC for Android Right. And we have around 100 million people using that. Um and now then someone from Android actually came and discussed to us. Right. Um we had the same issue with with Microsoft or or like saying that we are going to stop distributing VC on the Windows store. And 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 nos and now they listen to us but those large companies often have difficulty talking to us like for example VC right
[01:22:00] is probably one of the top 10 software used on Windows I am not part of Microsoft ISV programs. Right? I don't have a point of contact at Microsoft's. Right? Well, I'm sure any other software, Adobe, Spotify has a a point of contact. I don't have that. Right? So, raising awareness works. It's sometimes very spicy, lot of drama. Well, X and Twitter are okay for that, but it's efficient. Uh, so everybody listening to this should go uh follow FFmpeg on Twitter on X. Follow Video Land on Twitter on X. Uh, go donate donate to FFmpeg. And thank you, Lex. Over the years, several years, you've been a supporter of, you know, FFmpeg and Video Land OnX, you know, giving us shout outs, appreciating, you know, what we do. >> FFmpeg for life. And for example like um Tim Sweeney Carmarmac and a few others
[01:23:01] like very high level people have raised also the awareness on on our ex accounts and that helped a lot also. Kopathi Kapati as well. >> Yeah. I mean also, you know, outside of the fact that so many people use it, it's so impactful on the world, it's also a great representation of a great open source project. Like the value of assembly and C and making sure that like you take programming seriously for real world systems. It's not just that. We we'll talk about assembly later I'm sure because that's its whole topic in itself. But it's also celebrating people like Andreas Reinhardt who do maintenance is I believe unpaid I believe as a volunteer he's doing massive refactorings. Uh Andreas 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. The files are exactly the same, but wow, the the the airplane has
[01:24:01] been rebuilt whilst it's in the air. >> Christian Garcia said, "As a teenager running this account," referring to the FFmpeg account, and you responded, "Teeneageners 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. Like JB said, we don't care who you are, where you're from, what you do. teenagers have written thousands of lines of assembly um over the years. Give a shout out back in the days to Daniel Kang. So, also highlighting the work of people like Ruka Peng. This 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 act by actually finding issues and fixing them and being 16. There's no barriers. There's no barriers to you have to study on at college under this person and understand these. It's you can learn C and let's be honest that it's from it's from the KN&R book learn C. Uh you can learn assembly. We'll talk
[01:25:02] about that maybe a bit later. You can contribute to worldclass technologies in VC. Um one of the oldest contributors called Felix. He's the one doing everything on Mac and iOS. He's starting working on VC. He was 16. Um we had a guy called Edward Wong who used to be a Google Summer of Code student who stayed for 3 years around video land. He was 14, right? Um and and part of Google Summer of Code and Google coding which were programs where uh basically we have students or high school. Um we wrote a ton of assembly for x264 and for VC and for ffmpeg, right? everyone can contribute. >> And he also did a good job because he didn't play the alarmist um CVE high create a CVE which is like um public exposure of security and do these big scary red 7.5 priority. He just fixed an issue in git after three days and just fixed it. He didn't need to go and play
[01:26:00] a big security drama about it. And I think I posted, you know, the kids are all right, whereas there's there's 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. They would have happily raised this is a high priority CVE 8.0 or whatever on a on an issue that actually was in Git. It wasn't even in a release. It was in development and 3 days later was fixed. Well, I just want to put a little bit of love out there even to the bigger community. Uh much love and respect to Google engineers. Like you said, they're uh some of the the best software engineers in the world. They do contribute a lot even on the security front. And also, you know, I'm a big fan of Theo. Much love to Theo. He was part of this uh debacle and drama a little bit. I think when you just zoom out on the grand arc of human history, the drama contributed positively to everybody involved. Donations went up.
[01:27:02] It brought more attention to the topic, allowed uh everybody to bicker in a way that ultimately uh got them to figure out what FFmpeg is all about. >> So the way the way we looked at this is like it's a rap battle at the end of the day, you know. No, but it it is we say stuff. We say stuff. >> Yeah. But we can we can leave it on the X is a perfect place for you know international rap battle. You say stuff I say stuff about your mama but it doesn't mean you know I'm have an actual personal issue with her. >> Yeah. And that's what it looks like. The Theo situation you know JB can maybe expand went a little bit too far and there was a little but >> you know it's just a bit of fun. It's just a bit of rap battle. It's a bit it's WWE. You know everyone's having a bit of fun on X. It it doesn't need to be taken seriously. you know that the teenagers thing you know that so that that guy was a Google employee saying hey you know there are other ways to run an open source business you know go just have a bit of fun you know that's what the point of this account is and and furthermore if you can teach people about the ways of open source projects
[01:28:01] assembly etc by doing that I think there's a lot to be offered here it's not dunking on people for dunking sake it's showing actually the story that I think X learned is these are not big corporate open source projects this is not Kubernetes where there's you hundreds maybe thousands of people paid to develop this stuff. These are just people in their basements in their spare time. >> And if you can address that topic in a fun and entertaining way, >> I think that that that's the good thing and that's that's the value of X and the reach we have >> and and to be honest right like even on at Google, Google is one entity but so many different people, right? and and some and there is a ton of Google engineer we work with um all the time and even like Google from YouTube to Chrome to Chrome media to the rest of Google those are very different type of entities but what we do is efficient and for example for for Theo right it went a bit too far I had him like I call everyone down I had him on the phone we say okay like this goes too
[01:29:01] far and so on but in the end um yeah it's a hard battle but it's positive for the project it's like the awareness we have on open source and and I mean true open source from communities right not is increased dramatically in the last two years and this is useful uh what do you think motivates all the incredible contributors that we've been talking about like what's the what's the engine it's so interesting to see like you said they're sitting in the basement what's the driver what's the engine there >> there are many uh drivers but weirdly the main one is that what we do in multimedia uh plays videos and video is cool, right? And and for example, we have so many people in the community who arrive because they loved watching anime, right? And and this is like the advice when people ask me what should I work on in open source? How do I start? And my question, my answer is always the same. Work on something you love. >> I am working on VC because I love movies, right? And I love watching the
[01:30:01] same movies over and over even if my wife hates me when I do that right but because it's interesting right because it's a topic that you like right the first that's the first thing where people come to usually to VC and FFMP the second thing is that technically we because we search for excellent this is the best school ever right this is the best school ever of programming if you're good in C in ffmpeg if you know how to write assembly I sure you you're going to be one of the best programmers ever even if you're working on writing TypeScript because this is the most amazing thing to do and you will like 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. It's like we are the best teachers that you've ever had in programming. Right. >> Andrew Kelly started Zig. He was an FFmpeg developer and started Zigg after his FFmpeg school. I mean it it's the
[01:31:00] place to learn so many aspects of programming in the real world in a thing used by billions of people. You have nowhere to hide. You have to be open and honest about your flaws and and how you can learn and be better. And what is also interesting in multimedia is that you have 16 milliseconds to display a frame. It's not like a game engine where you can basically slow down and wait a frame like so it's you need to be good, right? There is no choice else you don't have your video. and and because of how codecs if you miss a frame you're going to destroy the look of the video, right? So, you need to be good. You need to be perfect to have the right thing. But also is that it's not just pure programming in the mathematical fence, right? A lot of people don't understand, but um in order to program correctly on the open source multimedia community, you need to understand how computer works. And and when you write assembly, you need to understand about uh CPU pipelining, right? You need to
[01:32:00] understand how SIMD works, how the AU works, right? You need to understand how IO works, right? And this is what I think that is missing to a lot of engineers and software engineers today is understanding what we call computer architecture. Um and like seriously like some of the debate is like should we use this assembly coil or this one and people say well no it's going to be like three cycle on this type of CPU and this one and has massive impact on the output right we should expand ffmpeg is probably one of the biggest CPU users in the world that's probably it's probably running >> as we speak easily 100 order of magnitude 100 million maybe even a billion CPUs as we speak so every instruction matters there's not the the the impact at least in terms of CPU is massive for everything that we do. So first you come because it's an interesting subject then you stay because it's excellent and in the end you're very proud of it because it's on the end of everyone like so many people
[01:33:03] like oh I'm working for whatever consulting company and I'm doing some portal to download invoices for your PG& wow great like so many jobs are like that you're not going to to tell that to your grandma but if you go to see your run mine say I do this so that you can play video on your laptop they understand and this is very important right because you're working on VC ffmpeg x264 it's in the end of hundreds of million of people and you have an impact um and so you can be proud of yourself and so I think that in addition to great doing a great resume all those things are why people contribute >> yeah those are side effects my favorite quote on this topic is John Collinsson he said the world is a museum of passion projects you know everything out there is is it's a passion project and open source multimedia and open source in general you can just do that so much faster there's such a faster network effect you know >> I can open a cafe and that can be my
[01:34:01] passion project but I have to get building codes I have to build a building I have to find a find a location I have to do all the you know all sorts of things well in the software world that passion project can be can move quickly it can be amplified by the network effect and that amplification can be more than the the sum of the sum of the parts You know, you can be you can find people interested in extremely obscure things and have a network effect and make something that is truly amazing. >> And uh on that topic of passion projects, Tim Sweeney actually said in a reply to a tweet that was uh complimenting JB. He said, quote, "Many things in the world only happen because an awesome person decides to do it. This is the case with VLC. And that speaks to something interesting to me that it does seem that a small number of people, sometimes one person can create something incredible in the software
[01:35:00] world. Like you said this over and over and over. I think JavaScript is an incredible thing created by by uh initially a single person. the some 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. >> Yes. Linus built git in two weeks. >> Yeah. >> Wow. >> Yeah. Changed the world. Git I mean it really changed the world. >> Linu passion project. Hey uploading this toble to an FTP like deal with it. But for me it's not just in software right and I believe in in in individuals that are going to change the world right and it's with a good as you said vision right I want to do that um it is useful it will be useful and whether it's going to like build trains or cars or rockets or something like I I believe people who believe in themselves and have a vision can have a huge impact for humanity. Let's actually uh zoom out before we zoom back in. We'll just keep going up
[01:36:00] and down the the stack. So, uh you know, we've been talking back and forth VC and FFmpeg. Karen, you said that FFmpeg and Video Land VC coexist and there's no central point of importance. Is it kind of what you call the binary star system? >> Yeah. >> Uh they succeed because of each other. Can you explain the difference how they interact? What is the >> Are they competitors? >> I don't I don't think they're competitors. is I think I think the simple answer is the short answer before I go into detail is VC is to ffmpeg as Android is to Linux. So they depend on each other but they they coexist because of each other. So they are a binary star system is the analogy I used. By the way I feel horrible that I just recently learned that Alpha Centauri the closest star system to us is a triple star system. >> And and when you start doing the physics it's a nightmare right but >> hence the threebody problem. But anyway, >> so a lot of ffmpeg pipelines involve the
[01:37:01] x264 project which is a videoand project. I I would put a finger in the air that's say 80 plus% of those pipelines are dependent on a videoand project. VC obviously we've discussed a videoand project uses ffmpeg gives it reach exposure to weird files. uh historically used some donation money to fund FFmp FFmpeg development and we'll talk a bit maybe about some of the reverse engineering later. So it's a binary star system. They they work and feed off each other. Many of the developers are shared. There's no central location. It's a virtuous cycle working together. >> And we should mention that x264 is the encoder for H.264 video standard. So H.264 is the standard. >> Yes. X264 >> is the implementation open source implementation of the standards >> that's used by basically everybody for everything. >> Yeah, >> it's that is the main driver of this. When you think of an MP4 file that has H.264 codec in it >> if it if it came from a software
[01:38:01] environment like a data center or somewhere the chances are it was created with x264 >> and that's under the flag of uh video land. >> That's a video land project. So in the video land graphic it sits in the videoand world >> and videoand has a say has a bunch of stuff in it. Go to the video land website. There's a bunch of icons like if you look there is so many libraries right um lib DVD CSS lib DVD nav lib DVD PSI live VLC of course VC unity lib roof Blu-ray >> uh yeah there >> and there is so many more right lately the David project that we might talk about is the last project from video it's everywhere right and we do we We have a lip special audio lately that we announced. We have Czechm which is like an insane project but amazing. Um so and x264 is one of those video land project
[01:39:00] and my opinion for example is that x264 was it is the most amazing encoder ever designed and this helped the adoption of ffmpeg. A lot of people and large companies went through ffmpeg because they wanted to use x264 and x264 increased the popularity on ffmpeg but also VC had its popularity because it's played so many files that were done by ffmpeg right so it's it's many project that are interwined and work together. Yeah, unfortunately there's a there's a thing on X where um VC is mentioned and there's people a quick reminder it's FFmpeg inside doing the actual work and and that's like I said it's not that that's not the case that we work together and to give you an idea right when I compile VC for Windows I compiled around 16 million lines of code right 1 million of those are inside the VC repository and ffmpeg in total is probably two around two right but that
[01:40:01] means that so any dependencies outside and if you also look at ffmpeg per se ffmpeg also is integrating third party libraries like x264 but lib opus and so many others right so we all depend on each other >> uh yeah that's why I was uh hoping to do this episode as we are doing that just uh kind of joinsf and vc because it's really it's it's really two two of the same like I said binary star system and we're all just orbiting it uh can we give a shout out to some of the people along the way. We didn't really quite talk about the history of FFmpeg. So, uh maybe can you tell me about Fris? Can you tell me about Michael Nemar? Can you tell me about some of the key figures about the the eras of FMPE? Cuz there there's key eras and key people that made this possible. uh Fabric Bard as you mentioned creating the concept and then probably in the 2000's era I would call the era era tall of fmpg is
[01:41:01] the 2000s era was Michael Neidmaya so 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 Meg 4 part 2. So this predates the Meg 4 part 10 that we used to. So this was 2000's era video codecs where there were oh flavor after flavor of weird weird decoders >> at the time in the 2000s you needed a new player to play every different type of file format. So there was Windows Media Player to play Windows media formats. There was real player to play real media formats and those were the other the other key thing in FFmpeg at the time were native decoders for those. I actually do remember being a teenager. I must have been figuring out that there was this one player that could play could decode these files without having separate bloated players cuz at the time when you downloaded Real Player there was a ton of other stuff in there, a ton of ads, a ton of other things and just having a simple library that was fast
[01:42:01] led to that. And then I think 2008 was it 2008 onwards was a big change because that's when H.264 264 got its maturity and and I think something hopefully we'll talk about a bit more. This was the beginning of high definition video. So H.264 was the key decoder of that. So I'd call that the late 2000 and 2010s and that's when the big reverse engineers came along and really did astonishing work. The beginning was a single player that could play Xvid, DivX, Windows Media, and Real Player was already in a massive achievement in itself without codec packs, without weird stuff you had to download that had weird ads and weird spyware. VC 1.0 was out on those times, 200, 2009, 2010. And this is like where it exploded. >> Yeah. without codec packs it just works across all these different >> the fact so it's just like all the codec packs are ffmpeg inside VC plus we have
[01:43:02] other modules for all the type of >> at the time that wasn't is there were weird in the 2000s there were weird codec packs with DLS coming from this place coming 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/player that could do this that was open source but I think the thing to emphasize is is this task in the 2000s that Michael did was was cisify 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 meg 4 part two what's known as meg 4 ASP and that was a weird variant and you had to fix that without breaking everybody else >> times a million. >> So that's uh so you said that that's where a lot of the reverse engineering was happening. It start it started in the 2000s with the Windows media stuff cuz that was proprietary. It started with the real media sort of with Benjamin Lson, >> Koska Shishkovk, >> Koskashiskov that era those were the key that was the key groundwork and then in
[01:44:01] in the 2010s was kind of the Por Mahal Costa era building doing some of the most difficult codecs. Um JB maybe can talk about go to meeting four and go to meeting five and >> what >> these what's the go >> so so so so like let's talk about this amazing Ukrainian guy called Costa who was uh at the time living in Germany and who was in love with Sweden right and the guy was the most he he's like like a lot of the people in the community are very clever he's one of those who are like borderline geniuses, right? >> He was able to reverse engineering extremely complex codecs. Um, and he he does that and we do a a bit of engineers with Kieran, but clearly not at this level. >> Um, he reverse engineered binary blobs which are 20 megabytes. >> Yeah. So, just for reference, uh, a 1 megabyte binary blob to reverse engineer
[01:45:00] is probably order of magnitude a month of work. And this guy is doing 20 30 megabyte blobs. Maybe we'll talk about that in a minute about the subtleties of how you do that. But this guy is doing it for very difficult and very obscure codecs >> and and did that for fun, right? And and um so go to meeting uh was a big problem with VC because that was like the number number one uh f request for a long time. So I put a bounty and the guy at some point say okay GB I'm going to do it. And in a matter of two months and then he explained how he did it. He was just like, "Oh, I looked at the code like this looked like a a DCT that I used to see on WMV and so on." He did that and the funniest part is that the code is written is a ton of jokes and there is there is a ton of JB right and and Kemp um and Kemp and Costia jokes inside the code. The code is beautiful, right? So, one of the things I I want to call is uh
[01:46:00] I've gotten a chance to speak to some of the developers, some of the assembly language level uh uh people and they all always make everything sound like it's kind of easy. There's a a kind of humility because I 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. So in the community like some of the most impressive people are the ones doing reverse engineering and the other ones doing the assembly forks right um and both of those type of people are >> amazing. Um x264 for example became amazing because of a guy called Lauren Merritt who is was from University of Washington I think >> at the time. Yeah >> and who was like who made everything great and fast doing a ton of assembly. Um yeah so this is like the the the the golden era I guess where so many things got >> if you look at Costa for example he looked at the world as a binary
[01:47:00] specification he he didn't need documentation or anything it's I have a binary and I can figure all of this out and and he he regularly used the phrase binary specification you know it's not a problem and he went and he would go away and he would come back and he he would do interesting stuff >> can you actually speak to the details or any any add color and texture to what it takes to reverse engineer here a blob. >> Yeah. So, so let's look at go to meeting for example is a good one because um I record a meeting uh on go to meeting for example. How do I play it back without needing this go to meeting player? They may not even be a player. I may I may need to send a recording of a meeting to someone that doesn't have a player or whatever. So f first of all there's a ton of other stuff there. There's a actual video conferencing client you need to go and find. It may be easy. it may not be easy to find the actual module doing the decompression. You need a way to actually dump the YUV data from the module. So often it rever it involves opening in a disassembler trying to guess where the hooks are to
[01:48:01] incorporate that module and run that module natively to decode a sample file. So figure out where this module is doing the decoding process and 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 and then you you open up your disassembler use a lot of intuition to go and figure out you know where the DCT is where's entropy coding there there is a kind of not a rule book but there's always a pattern of some sort um for example go to meeting you know it will be a a lot of screen codec tools there's also different variants so often I think what's go to meeting four five >> 2 3 4 I think >> 234. >> Yeah. So 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
[01:49:00] play properly on Windows. Without this decoder installed, Windows Media Player and some editors cannot decode the video track. So you may only hear audio or see a black screen. Boy, do I remember that. But this is reverse engineering that >> this is key, right? Because because the go to meeting is something that not many people know anymore, right? You know about Zoom and and Teams and so on. But like now let's fast forward 10 years, 15 years. And like this is Goto Meeting.exe for Windows 32 bits, right? Which is like, oh yeah, but I'm on Android, I'm on an iPad, I'm somewhere else, right? How are you going to do that? I'm going to be on Ris 5 on ARM. Those are blocked. But there are tons of files we need to support for the future. And this is why those type of work are in exceptionally useful for humanity. I just have to say though that reverse engineering process is mindblowing. It's crazy. It's like >> it's a kind of like you know I've been
[01:50:00] reading a lot and I interview archaeologists. I mean you you just have so little signal. Yes. Yes. You know over time you get so much experience you understand the structure of the original coast you can kind of start inferring basics >> but you're like like like archaeologist with a little brush trying to reconstruct the entire human >> K is too humble but Kieran has done some reverse >> engine of ciform yeah at the time um >> capform nice >> yeah at the time before um actually led to the open sourcing of that work and so in parallel to doing the binary side you obviously have samples in many cases you don't have many samples. Um, so you have to figure out what all the different flavors are and you may have a soap form for example is actually a collection of different approaches and toolkits within that codec cuz often it it grows naturally and and the hard part is finding the sample that gets you kind of somewhere to start without having to implement 10 different other things. So start there. I think thankfully at the
[01:51:00] time I found a sample by pure chance that had a lot of flat blocks. It was animation. And so that really helped a lot because it wasn't using particularly complex coding tools etc. And you could kind of get somewhere and then and then build up and build up until you figure, hey, here's a few bits here. I missed this. I missed this this if branch that it does and go, oh, >> so when we say samples, you mean a sample of videos and then and then you're tracking trying to infer like what is this codec doing by observing the sample and then looking at what at the at the machine >> the machine code saying I have this bite is six take this branch >> and in a different sample. Oh, it's >> nuts and and nuts. So you see this is not then you go to things like go to meeting it's like >> mine was easy imagine >> right >> two order of magnitude of more complexity a guy alone >> somewhere in Germany doing that >> and for a long time you work you're in a black box >> because a decoder for a long time because there is so many step from the
[01:52:00] entropy decoding the intra prediction the motion prediction the IDCT and so on for a long time you don't see anything right so you're debugging purely in memory debugging guesswork and you may have the buffer that the coefficients are stored in completely wrong and so you may be going down a complete rabbit hole thinking it's this and then oh damn that's not that's that's something else and >> and you're doing that on binaries that are tens of megabytes millions of instructions right >> so you're stepping through the debugger like one by one you know instruction by instruction going hey this instruction changes this this does this >> posing the program on the CPU level >> it on the CPU level watching what's going on trying to figure out >> sometimes you need to like be in a VM. So yes, you can pause the VM. Yeah, pause the VM, dump the memory cuz it could some of the codecs could have encryption. There could be um like DRM on there. So you need to dump the memory from a virtual machine. Like when I joined the Colar in 2003, John Le Johansson basically broke the DVD specification and created DCSS. Showed
[01:53:01] us how he was breaking a DRM which was MP4 fair play from Apple. what 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 it's incredible. It's mind-blowing and inspiring. Does it get like from your experience and from what you've seen in the community does it get discouraging? Does it get people help you? People send you samples. People are keen. Sometimes you don't have access to an encoder. So this is even more difficult because you just you just ask and you have to ask for samples. I remember video land you used to tweet for samples at one stage. Hey, I need this obscure sample and >> for a long time I was oh I need this codec and I need this codec >> and and and if you were really lucky you would find like if you were if you were unlucky you'd get like one or you'd get nothing or you get one or two and then they would sometimes you'd find a gold mine like yeah my company has a 100,000 of these files cuz we depended on it for some reason. Um and so those are those are kind of the best if if because then
[01:54:01] they can test bit exactness across the huge range of coding tools. >> Can you explain bit exactness? >> Bit exactness. So um most but not all video codecs certainly from about the 2000s onwards have a bit exact definition. So every implementation must produce exactly the same bits bit for bits in exactly the same data that comes out of a decoder >> for like a large number of samples >> for a given sample. So Lex's implementation, JB's implementation and my implementation of H.264 must match bit exactly. That wasn't the case in the '90s of Meg 2. Probably fair to say one of the biggest mistakes the video industry made. And I think people who were in the room in '92, I most of both of us were in diapers I suspect, but um have acknowledged um I would give a shout out to Yuri Resnik. He's acknowledged that was one of the big mistakes of the era. And you're saying the encoders needed to be able to run tests and then the the the bit
[01:55:00] exactness. I mean that's a nice thing to guarantee like there's a parallel sort of development here on uh the way the web browser works which is a you know takes HTML and displays it and there's no bit exactness there across the different engine. I would I would point out actually FFmpeg is unique in the sense that it's it has been a winner takes all scenario. You have brow browsers is a good analogy because it has to parse a lot of different content and render it in a particular way like a decoder but there still are multiple browser engines. There's Firefox's one, there's Chrome's one, there's a few Japanese ones that are pretty decent. That's not been the case in multimedia in general um across a wide range of codecs. FFmpeg has kind of won it all, I suppose, in a sense because of 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. >> Man, this is really cool. Uh going to Perplexity, Yuri Resnik is a multimedia and signal processing researcher. got his PhD in computer science from KE
[01:56:00] University with over 150 papers in more than 80 granted US patents, contributor to major multimedia standards including H64, MEG 4 AVC, H265, uh, MEG 4 ALS, G718. >> G71 is telco stuff. >> And so he was more connected to >> real audio, real video, right? That was >> Oh yeah, >> very important. coder Bride Cove context is man I need to hang out with Yuri he's legit >> and he's like one of the most nice person ever right like like um for example for for my for my startup uh that I'm doing right now called Kyber right I met Yuri because I met him every year at the mile high video uh conference which is in Denver um and he he gave me like so much good ideas and good things he's like really amazing person >> he tell he tells us how how you how great it is to be, you know, even know us and just, you know, you look at that and it's I think it's I think it's the
[01:57:00] other way around. Yuri, >> that reminds me of a thing that you uh mentioned to me about fate testing and like the insanely rigorous process that's used to test everything that's incorporated into um into FFmpeg. Can you take me through the testing process? Yeah. So, FFmpeg has a system called Fate FFmpeg automated testing environment. >> Because FFmpeg runs on so many different OSS and can be compiled with so many different compilers, there's been a crazy number of configurations. So, you can see the absurd combination of um compiler variants, operating system variants, instruction sets. You can see at the top Mac OS has tons of different variants because it has iOS, it has tvOS. I'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, uh >> combinations are the combination.
[01:58:00] >> These are all run by volunteers. So these are all volunteer systems. The ones at the top, for example, the max I host in my office for example, uh host all sorts of different stuff. Other people host other things. So it's really there to make sure and because FFmpeg does quite complex C code for example you do have miso compilations. So the compiler will sometimes compile C code incorrectly for example. This happens once in a while. >> Oh there's like there's a log of all the compilations. >> Yeah log of all the compilations all the tests. I think one of the other ones will show all the tests passing. >> If you click you can see all the tests >> back all tests successful >> in logs test. Yeah. So you see all those tests are passing of all the different codecs, all the different filter transformations, all the the level of scale is is quite crazy on all the combinations. It's it's not just a matrix at this point. It's like a pivot table of different combinations. >> That's nuts. >> And it's a key part of what we do because you you may be able to test
[01:59:00] something locally. you make a change but actually that breaks GCC version 11 on Mac or something like that and you're able to then fix that. We also have miso compilation. So the C code sometimes the compiler can have a bug in it where it creates the wrong output and that can have quite a big effect sometimes on a vid on a video because of the way frames have dependencies. Even a small change in the output can can cascade to actually quite big glitches. You see power PC, you see Risk, you see PC, there was Risk, there was weird stuff in the past like DEC alpha, >> you see Visual Studio different, Intel compiler, Apple client, you name it. >> What are some of the pain points like maybe do you have emotional triggers uh maybe nightmares about a particular operating system, a particular container codec combination? >> For me, it's really easy because so I have a day job. Um my company builds the company I started builds um equipment
[02:00:01] for broadcasting sports matches between TV stadiums and studios for example. We have to work with 10 bit video and 10 bit video has um a set of challenges that you can't process 10 bit data natively on a CPU. So that means you have to stick it in um 16 bits. So that means you have six wasted bits. So 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 you need to save that 40%. For example on PCI Express you may only have bus bandwidth to do that and so I think internally we have about some some are some are industry ones and some are internal to our own hardware that we build. We have a I think a 5x5 or 6x6 matrix of every single format to every single other format conversion. In fact, one 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. So, this is really traumatic handling all these different combinations
[02:01:01] times a million. >> By the way, the company you're talking about is Open Broadcast. >> No, no relation to the free OBS streaming service. >> Yeah. But JB and I have started companies broadly speaking around the FFmpeg VC ethos. So, that's really low-level work. So, so in most companies this this wouldn't be written in assembly. It would be accepted that C C is fast. Um, as you can see from that C is not fast. Um, >> uh, so here it says 62 times faster than C. >> Yeah. So it's taking those the ethos of doing low-level programming, real-time and take using that for commercial applications and JB and I have started companies around that in many cases hiring developers from the open source community to use that ethos and and so that that's a great example of of some of the things we're doing. In most companies, it would be say I'll write this in C and it's fast and we're done. But actually, you can get a lot better. For me like some
[02:02:01] of the headaches we have is around some OS that are difficult to support, right? Because um uh if you look at VC and thanks to Fate and Fmpeg, we run on the last version of VC runs on Windows XP and still run there and runs on Windows 11. Um we work on Mac OS 10.7 to the latest Mac OS whatever it is, right? 26. Um we work on iOS since iOS 9. Well, we are actually iOS 26, right? We support um we support uh many types of Linuxes, BSD, Solaris. The last version still runs on OS2, right? like there is maybe 10 users of OS2 in the world and one of them is maintaining VC then you realize that this very small team around VC and using ffmpeg codecs and and all the other ones support more oss than Microsoft or
[02:03:00] Google or Apple and they have infinite amount of uh of uh power and resources but for example the worst is iOS um for in order to build on iOS 9 we need to do some very clever mixing of several version of the Xcode ID 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 the compiler of uh of uh Apple in order to still run on ARM 32 um on iOS 9 and you've seen on fate that it was still supporting iOS 9, right? So, um, my headaches are mostly related to the the support of so many OSS and it's important because like we receive so many people saying, "Hey, thank you. I still have my iPad 2 to watch movies and it still works on iOS 9, right?" And it's also an impact of
[02:04:00] like not forcing people to buy new hardware when it works fine if you optimize it correctly. Which brings us to what we were saying about assembly. It's also fighting like the fact that you need to buy something new non-stop uh while you could optimize more which is a lost art. You got to tell me about this lost art or this uh >> the the carriers of the flame of assembly. What what is what what is assembly? Why is it beautiful? Why is it challenging? How does it work? So when you write assembly code, you write this using the instructions the actual processor is using directly. So most of the time you would write in a language, let's take C is a good example. The compiler would use that to create um assembly language and machine code instructions for you based off your C code. And there's a specific flavor of assembly that we use in FFmpeg that's called SIMD, SIMD, single instruction multiple data.
[02:05:01] So this means for example say say I want to add five to a number in scala assembly. So this is what's known as you work on an individual element. So I want to I have a number of I have the number 10 and I want to add five. I use the add instruction and I add five to 10 and I get 15. With SIMD with SIMD I can have a whole vector of 16 different numbers or could all be different. If I want to add five to that, I can I can run one instruction and that one instruction sums all 16 elements. And that, as you can imagine, lends itself very well to video. Video video is, you know, a pixel grid. So I can perform operations on multiple pixels at the same time. The key thing that we do differently in FFmpeg is we don't use any abstractions or any major abstractions on top of that. So there's a part of the world that uses what's known as intrinsics. So these are C functions that behave very similarly but not quite the same to
[02:06:00] writing assembly by hand. So the registers that data uh is stored in on the CPU. The compiler allocates those for you. And so the key thing to understand was when we write SIMD is we have a 10x and not percentage 10x to 50x speed improvement that that function is 62x >> that's nuts >> on the ffmpeg account as you know posts and tweets a lot about that to try and say hey we're doing this stuff >> you are a person who sees the beauty in assembly but it's also extremely useful for these kinds of application to actually significantly outperform even C which is correct it is necessary, right? Because like one of the projects um that we need to talk about is called David, right? So David is a decoder for the format uh that was done by Aliens for Open Media, uh which is an a video decoder called AV1. >> So for people who don't know, we've been
[02:07:00] talking about H.264. AV1 is another hugely popular standard and codec that is increasingly taking over uh the internet and when this format was launched uh many people said especially even from the aliens from open media right which is Google, Netflix, Amazon, Modzilla they say well this format is so complex it must be done in hardware to do decoding right and well I arrived uh with a few other people uh mostly um Ronald uh Henrik and Martin and we said we need to have an extremely good software decoder uh because it's going to take time to have hardware and so we wrote this project which is beyond insane um we are talking about 30,000 line of C but 240,000 lines of handwritten assembly right handwritten assembly 240,000
[02:08:00] lines Nice. >> That's incredible. That mean I mean some of the stuff we're talking about is probably the biggest assembly uh code bases to give you an idea and Ken can correct me but I think the ffmpeg has 100,000 lines of assembly for all the codecs and just this one has 240,000. Um it's a vidoland project of course um and it is optimized at the maximum because the moto when we starting the project is every cycle matters right every cycle matters because David is used in VC and in some software AV1 playback stacks we 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 everyone on 50% of YouTube, right? So, and you often don't have a hardware decoder because not many devices have a hardware decoder. And with David, we realize that in one or
[02:09:01] two cores, you were able to decode 720p correctly. So, it is like literally >> incredible, right, >> David? Look at that. >> Yeah. So, this is uh another spicy tweet from you. This is what peak video codec should look like. 79.9% assembly, 19.6% C and uh 0.5% other. And what's incredible is with those tweets, which is factual, people get crazy. They are unhappy, right? They say, >> well, yeah, for the last two years, they go crazy. No, intrinsics is fine. The compiler is Oh, they go >> you can optimize your compiler auto vectorization. It's your fault. You don't understand. And we've tried that forever, right? >> For two years. and two years later showing hundreds of examples of of handwritten assembly. No, no, no. You're doing it wrong. The compiler can do this. >> So, we should actually just articulate a little clearer. So, the intuition there from the software engineering folks when you have code like okay, let's just take
[02:10:00] an example C++. There's a compiler that's doing a lot of the optimization. >> Yes. And the presumption 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. You cannot possibly beat it. And you're consistently challenging that thought that if you >> by orders of magnitude >> by orders of magnitude, handcrafted assembly can outperform >> C. The two things that they tell us is, yeah, but modern compilers have auto vectorization, right? because SIMD that we're doing is vectorization and like it's not even close, right? It's not even close, right? It's not like 5% 10% slower. It's multiple times slower. So, can we I don't know if you can say something philosophically because there's a lot of there's a lot of great software engineers, great engineers, great machine learning people like Karpathy will listen to this and it's like what's the intuition he's supposed to get from this? What are we supposed >> He learned assembly because of the tweets by the way. just he thought he
[02:11:00] went he's like oh I think this is a let me figure out and and you know the way he documents his work and so >> philosophically what's important to realize is that we passed the time where hardware was going so much faster right we at the end of the m low we have limitation for uh for AI for memory you need to go down in the stack and optimize more to get more power from what you have because uh request for power CPU power GPU power are exploding while the hardware is not exploding in speed, right? So you what people do is that they add more cores, right? But that's basically like at some point you can add 250 coursees, right? So what we do is to take every inch of the machine. >> Not just that, not just that we abuse the machine. We we go and use we use the machine in ways that the that the creator didn't expect. Sometimes we use an instruction that's completely unrelated to what we do. We use a cryptography instruction in video
[02:12:00] processing to do nothing related. >> And one of other things that we do for example uh in David which is a bit crazy is that we don't use the function calling convention from the operating system. >> We should explain that >> that is extremely complex but basically usually when you do move from one function in in code to another there is a way to save the registry the state of the CPU to enter another function. Um, and this is like standard. >> It's a bit complex. So I would I would simplify this a bit. So So David does things to abuse the calling convention. You could define the calling convention as I've written a function and I want to call another function. How is the data shared between the functions? Because there's a convention what's known as a calling convention. And what David does for optimal reasons is create its own calling convention sometimes. So if I want to call Lex Freedman's library, we got we've got to agree on a convention so that I can share data with you in the assembly language space and one of the
[02:13:00] challenges in assembly is uh every operating well not every operating system but there are at least four that I can think of on x86 Linux 32-bit, Windows 32-bit, Windows 64, Linux 64. They all have their own calling conventions. And so one of the amazing things Lauren Merritt did who we talked about before was create a very lightweight abstraction layer. So 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. But David takes this even further for speed reasons it does its own calling convention um within itself to bypass the kind of rules the rules of the rules of sort of of functions and say okay actually I'm going to call a function this way because I know it's within my library. >> Does it has to be special to every single operating system? Well, if it's custom, no. But the the the challenge is in general, yes. And in terms of in terms of each instruction set. So the thing to also emphasize is we do this on every instruction set. So every instruction set has its own handwritten
[02:14:01] assembly, which is even more crazy. And that that that has um that matrix has got bigger in recent years because of risk 5, because of ARM 64, because of the new SVE, there's x86 has AVX 512 AVX. So we do runtime processor detection. We see what the machine FFmpeg is running on or David's running on is capable of because you could be on a laptop from 2008 where this isn't there. Runtime detection. We set function pointers accordingly and then from then on off you go or you could be on a machine with risk 5. Yes. And 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. So 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. So that's why I said that understanding
[02:15:01] CPU architecture computer architecture is key. And this is also why it's handwritten. I don't know anyone I've never he than David doing that. This is why Kieran calls it calls it an art, right? It is an art. I think I think in a in a mass world there isn't something on billions of devices. I I know there are some specialist industries. I 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 microsconds and so the instructions matter. But that's not a mass, you know, a mass-produced thing that's on a billion devices. That's hyper specialized running on hyperspecialized hardware. We're running on all hardware from >> Sorry 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 like what are we supposed to take away from that? like what you know there's a bunch of people listening to this they're basically like sorry for myself included you know I I programmed for many many years in C++
[02:16:02] going up the standards of C++ fell in love with C++ even meta programming and so on and then transition more and more because of machine learning about 15 years ago to Python and 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 like record stops. Why is the value to go back all the way down to the low level >> because you can get more power per dollar invested, right? And sometimes it's going to be a problem that is limited by your hardware. A good analogy is what you see in quant quantization in in LLMs, right? And people are doing oh I'm going to do that in FP8 or FP FP4 or some some crazy things like Microsoft feud who did in 1.5 because you're constrained by memory because you're constrained by the machine you can run
[02:17:00] because at some point uh we are doing real time and I believe this is going to happen on AI inference also is that at some point you need to get faster and you cannot always get harder uh more powerful hardware right so you need to analyze code and see where like where is the mission critical where is the things that are called non-stops and for example David is a good example it's going to be run billions of hours per day >> that makes sense it doesn't make sense to be on the glue of fmpe cli it makes sense over there >> yeah this has to do also we'll talk about it more but uh your new effort your new company kyber is doing that kind of thing for ultra low latency so the slogan being every millisecond count. So when you're actually extremely highly constrained in some dimension, we also arriving at a point where we've done so many great things but the hardware is getting back to us, right? because cost
[02:18:02] is increasing because we need more power and so you're limited by either uh your CPU your RAM or your networking and you need to optimize and this is where value is going to be especially because like doing AI is going to help do the programming of like business right and so the core thing that you will not be able to uh v code are optimization for the hardware to be as fast as it possible So, I'd love to talk to you about who and how should learn assembly, but first, I think we need a bathroom break. Quick 10-second thank you to our sponsors. Check them out in the description. It really is the best way to support this podcast. Go to lexfreedman.com/sponsors. And now back to the episode. All right, and we're back. There's this uh nice repo with the assembly lessons. First of all, do you think uh developers should learn how to program an assembly? And
[02:19:02] how would you go about learning it? What is this ASM- lessons? >> So, I I personally wasn't happy with the way assembly is taught in books and online cuz it's very grammar focused and you don't in general learn a language from learning the grammar and the structure. You learn a language by asking someone what their name is and you start from there and you go and solve real problems uh that you have when you want to communicate. You don't you don't learn sentence structure. This is the interrogative and the adverb and all all the assembly books seem to be doing like 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. So, and the other problem that we have in our community is assembly is taught sort of hand to hand like personto person like blacksmithing one by one. That's the only logical sort of analogy and that doesn't really scale online. It doesn't um the other things. So this this this I started a set of assembly lessons in
[02:20:01] the 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 I'm trying to think the other good big use case of assembly is in embedded devices in really really low power cheap devices and that's completely different to what we're doing here. I think it would be good if you could highlight the requirements which are quite simple. It's high school mathematics and C and actually not even C really really is pointers to emphasize. Yes, we've talked about how brilliant this stuff is, but high schoolers like Daniel Kang have written um Assembly and FFmpeg. I think there's been contributions because of these lessons. So, it's really about trying to to get this dying art to continue because we've shown it's possible with David to produce something amazing. Mhm. >> There's still a lot of codecs in FFmpeg that are only maybe partially assembly um assembly optimized. And so it really it really starts with basics and continues explains a lot of the jargon, a lot of the syntax. It doesn't really try and explain to you, you know,
[02:21:02] interrupt handlers and interrupt instructions and all of these different jump targets. It actually makes this really vector focused >> and uh describes all kinds of registers uh general purpose registers, vector registers. Uh really nice examples. Oh, this is cool. >> It's a classic. Yes. It's a classic example of But um some of this assembly language is is is really beautiful. And and I think it's beautiful because it's kind of like flying a Spitfire. It's really aviation at its purest, but also pushing the aircraft beyond what the designer thought was possible. So we're abusing, for example, sometimes cryptography instructions to do certain things. And there's a level of beauty in art where it's really you and the processor. >> Mhm. >> There's there's there's nothing in between. It's you and the the the joystick of the cockpit and and you you move that joystick and it's physically connected to the aerons and you can push that plane beyond what it can normally do. And there's a level of yeah beauty
[02:22:01] and amazingness to go that but I don't think the sort of person by person assembly that is 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. >> It's literally uh No, I should I was going to say wizards handing it down. I realize I look like a wizard wearing this hat, but you're basically just like the sages, the wise sages handing down the craft. Can can I ask about LLMs? Like, can they help? >> They had more of an understanding than I expected, but they are still >> I've asked it questions and it still goes and starts hallucinating. Not hallucinating, but making modifications and then I go, is it bit exact? No, fix it. And then it just goes and does the same thing. and it's going it there isn't the corpus of information like stack overflow to work on >> there is not enough data to train on um and this is the biggest issue um I started my career actually doing some uh
[02:23:01] assembly for itanium right so itanium is a dead um processor type right which was done by Intel in HP a long time ago when they wanted to do 64 bits well they lost and then we got AMD who did it AMD 64 which became x6 executive or but itanium was extremely interesting in the sense that um those were processors who had a ton of computing power to do floats fas which is similar to what we need now for for LLMs right and you could pack three operations per line that could be loaded so basically you had an output of basically 6 billion of operation per second but the bus um the memory bus only allowed 1.5, right? So your your CPU was four times faster. So you had to do crazy things to to pack things in memory, reuse the registered and those type of themantics. No language could do that, right? So um like I I I have the
[02:24:02] Italian programming uh book because Intel did amazing books, but that's exactly what Kieran says. If you don't know what you're you you're going to do, it's impossible to read, right? It's a ton of jargon and so on. While those lessons are amazing because they are targeted to a real problem and you can do it yourself >> and people have people have their patches and they said I studied your lessons and here's my first changes. >> That's amazing. And part of that um in the lessons is is a framework called x86 inc written by Lauren when we was working on x264 and it allows you to do more things about that to create a type of like not caring too much about different cooling convention and we had a lot of students who gave code to x264 using uh that a long time ago right so it's really doable and I believe it's um necess necessarily to understand uh assembly language even if you don't do
[02:25:00] it much to understand what's going on inside your computer and that will make you a better programmer and I assure you that because doing that you will understand some of the architecture of the memory inside your your computer right understanding register L1 L2 L3 RAMs SSDs disk and so on um which are very important because then you have a good programming culture that will make you a as a programmer. >> Uh what do you think about the Rust programming language cuz that's a bit of a meme. >> We have very different opinions with Khan. >> I think it's valuable what they're doing in terms of memory safety as a concept. >> Can it achieve this some of the speed up that assembly achieves? >> Not not assembly by hand. No, I think that that's a given. C potentially, but I see it very it has a very big Espiranto vibe about it. It's like we're going to solve this and we're doing this in a particular way. meaning is a bit too utopian. >> There's a lot of focus on the self-importance rather than solving real world problems. It reminds me of the
[02:26:01] Sinclair C5. Slive Sinclair of Sinclair Computers built a car and he said, "Oh, everyone will be traveling around in you know, one of these electric cars and it was um Frost reminds me of that where I think the community doesn't 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." Um, yes, people are doing Rust rewrites, but if they're if they only if they only do 85 90% of the feature set of what what we need, like things like core utils, that last 1% takes 99% of the time um to to use Elon's famous quote, prototypes are easy. Like this kind of stuff is easy, but this to get a real electric car, you have to make a car as good as if not better than what we have now. And Rust isn't in that stage yet. I think we I don't think anyone would object to seeing ROST code in FFmpeg, but it needs to work as well and support the same unit testing as everything else. It needs to
[02:27:01] be flawless. It can't just randomly break. They can't just randomly break AI when they want to. It needs to it needs to have I think more I think it still has only one compiler implementation. >> Yes. >> So, it's got to be as good as if not better. And saying, "Hey, here's my utopia of memory safety isn't enough." even though we we probably all agree that that's the goal. >> So, um I've done a ton of Rust and the two major topics I had was adding Rust modules inside VC. One of the reasons VC got popular um and which was one of the main architecture decision is that VC is a very small core and a ton of modules right and so you can write modules in C C++ in Objective C and anything that is basically interoperable with C and and and so we we we did some Ras modules and so I have experience on that and I wrote some of it and also like my my new startup called Kyber is an open source
[02:28:00] project mainly done in Rust. Um what Rust is extremely good in in the sense that um 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. However, it's great when you start a new project from scratch and you do everything in Rust, but it's very not good when you interrupt with existing part. And some part of the Rust community believe that they need to rewrite everything and everything will be better with Rust. And and the answer is like no. Like I'm almost always and all my years of being engineer, manager, CTO, startup and so on. don't rewrite, >> right? is that that's the that's the initial instinct for a lot of people when they show up to a codebase probably before LMS is like probably because they don't understand the the the wisdom of
[02:29:00] the way things have been done in the past they say well we need to rewrite it hence why there's a thousand JavaScript frameworks but the reason is the following and this is very important to understand it is an order of magnitude easier to write code than read code >> and you see that also with LLM they can vibe code that analyzing is a lot more difficult and so when you arrive and when you arrive to a very complex piece of code right you you don't understand it right um because it's so much more effort to understand the code from someone else because you don't have the thought process um and often I joke about um some some languages mostly uh pearl for example um which has very complex syntax And imagine I am at my maximum intellectual efficiency in programming right and I write the best code ever. I will not be able to understanding myself 6 months later right because reading code is more
[02:30:00] difficult. So 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 and you say well I'm going to rewrite it and the thing is no you don't right because that's as Kieran said right I'm going to rewrite core utils in rust and then of course you arrive very quickly at 80% um then 90% takes a bit more time and then you got the last ones right on the other side right so for new projects it's great everything related to parsing files uh networking uh because of the memory uh checker bary checker it's amazing and there is nothing else to answer a bit differently for us imagine I take a piece of software like David or x264 right which has a ton of runtime in assembly right um I rewrite the C part in Rust right so it's more secure yes but then you arrive into the assembly and you can jump anywhere where
[02:31:00] in the memory because we are doing handwritten assembly. So even if I rewrite the C part in rust for security reason you you break all the security when you re you write handwritten assembly because we can jump anywhere. So in my opinion we need to do something that is um secure assembly right so which is compile time check the assembly which is similar to the check assembly project that we're doing on on David and x264 with video 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 but if you want to have the same performances you're going to have inline assembly And so you destroy your whole security model. Um so that's a bit what I think about rest. >> I just want I would say on a personal level I'm so in awe about the assembly I actually once and it never gets old the speed
[02:32:00] improvements to show 62x. Uh there are months on a personal level I I run our internal test suite at work and just see I'm still in awe at the gains we have. there there's a source of joy and happiness for programming for different reasons, >> but I think one of the greatest happinesses is in the optimization of code and it sounds like you're like at the cutting edge of that. >> That was cool. >> In the community, I want to speak about two people who are >> wizards of assembly, right? The two of them are actually working uh living in north of Europe uh Sweden and uh and Finland. And um Henrik Grner 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? You have Henrik. Henrik knows better. He knows all the cycles of almost all the SIMD instruction by all the CPU
[02:33:03] generation. Oh yes, this is a P4, this is a NHL, this is a core 2, etc. That person is like the best person on assembly in the world and he's the nicest person that you've seen like very he he arrived you don't see he's amazing. And the other one is is called Martin Martin Stio and he's they're doing mostly the same on ARM, right? So Neon, right? And iPhones and Androids and so on. And he codes in assembly on his phone, editing it with the crappy uh uh keyboard, like virtual keyboard you have while watching his kids play in the playground, right? like like this is just like wizard level. So those two people are like >> Yes. >> So a part when you're programming assembly at that high level a part of
[02:34:00] that is knowing the architecture that you're program x86 >> in particular. Yes. >> ARM in particular but x I mean these are complicated architectures right? >> Yeah but ARM um in some ways is more x86 with uh out of order execution it's not so bad. ARM you really need to understand all the different generations of ARM processor cuz they're all different. There's A72 uh etc. etc. And there's the Apple variant, there's this variant, there's that. And you need to write code that works efficiently on all of them. x86, 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, whereas an ARM is a completely much more complicated ball game. We're uh taking a nonlinear journey through history here, but we were talking about uh Michael Nemmer. Uh I wanted to ask about this for a time there was a split in ffmpeg and a lib av. Yes. So um in open source projects
[02:35:04] um sometimes you disagree, right? Um >> that's such a nice way of putting it. Yeah. And the good thing is because of the license you're allowed to basically do your own, right? >> Um, and this is normal and this has happened all the time, right? At the point there was uh GCC at the time of GCC 2 and EGCS uh which became then GCC3, right? There is what we told KHTML with WebKit with Blink. um it is a sane process and also like when I want to do a new feature today in VC I fork I do my thing on my own and then I merge back to the community. So there was a split in the open source community on ffmpeg which become libe and ffmpeg and after a few years well the community merged back and people moved on. It's a bit um drama that is normal in open source community, but forks are even they're important
[02:36:00] because they they they change the statue core of a community. Um um not talking about f and and eb here, but the GCC fork made GCC a ton better because the some people wanted to change the architecture fundamentally to make it faster. And of course it's always question of people and so on but in the end you realize that ffmpeg today is better than it was uh before the fork. Um and now well we're back all together right and I spend a lot of time and K can say in the in in the community um it's not often to be honest uh very well explained uh because a ton of the reasons are not very public uh but I think that's that's normal and that's good. >> Yeah. I mean you're making it sound really nice but there there is battle there's pretty heated battles inside open source projects. I mean it is a very passionate community and you are kind of in a distributed way have to
[02:37:00] define the direction of things. So here looking at uh perplexity ffmpeg and live aav split in 2011 mainly over project governance leadership style and development processes not because of a fundamental technical disagreement. Uh ffmpeg effectively absorbed lib's work while lib withered and most distributions and developers moved back to ffmpeg. Yeah, that was a that was a weird that was a from a user's perspective that was a weird experience because you know I'm a Linux user so you know whether it's a bondu and so on all of a sudden I think for for a for a little bit bond to I feel like am I remembering correct they switched to lib a >> 12 14 something like that something like >> and then they switched back I was like what is happening so on the sort of you you get to feel the ripple effects of the different internal debates that are happening. >> To be fair, on Apple when you type GCC you get Cang like they they did something like that as well. So >> yeah. So to me it's like the fork was
[02:38:02] like heated drama but >> most of the development from Libby was merged back into FFmpeg, right? So the factomp got a a supererset around lib and so that gave the user because in the end we work the user for the users a larger set of features and a ton of things that were um discussed. For example the debate on reviews and on how we push are something that now is completely settled in FFmpeg and is following what mostly what everyone in the community agrees. Right? So the facto everyone who was active on the baby came back in work on FFmpeg because the disagreement were fixed and in the end ffmpeg is stronger uh than it was before right and >> I know people love drama but um well my my main concern I I understand I think looking at the the long history it's all
[02:39:00] for the good but I do I am concerned because there's so few humans that are critical to the success of open source projects that I have seen it uh be a psychological toll on folks and you know sometimes leads to burnout. So you have these incredible people that are at the core of open source projects. There is a moment that happens cuz like what is the motivation of doing it? Ultimately, it's because you're passionate about it and it makes you happy and a certain point you wake up and it's like this been a bit too much heat from the drama. So, like at the at the project level, the project continues and often flourishes. But sometimes there's these individual humans, they're just like I've had enough. >> Yeah. But it's not just about folks, right? So it's a very what what you what you are um referring to is one of the most challenging and most interesting part of open source today is maintainers burnout right and AI is a problem
[02:40:02] because of that and Daniel Steinberg which is um the maintainer of curl uh who's probably one of the best promoter of open source in the world he's by the way a member of the European open source academy with me so I'm very like humbled to be on the same communities as him, right? He's against what he call AI slop, right? because it gives a ton of um uh fake reports or bad reports, bad patches and then a lot of maintainers have a lot of burden to maintain the software >> and this is uh straining the um the the the mind of open-source developers much more than forks and for example the XZ fiasco was because there was one guy maintaining it and he got basically hammered by two attackants who were asking asking him questions non-stop at weird times at night to block him and at some point he got fed up and says okay I can't do that and gave the commit access
[02:41:00] to the attackant um so burnout in open source community is something that exists uh but mostly it's about maintaining things right >> no for sure I wonder how do we we help that because those people are so important the human beings are so important at the core of these projects >> so so for example now I am maintaining a ton of multimedia and non multimedia library as maintainer uh because the maintainers got fed up right um some on video land some outside of video land uh because it's sometimes you need a a tough skins right because you get like it's not really attacks but oh this is not working this is not working and you feel it personally um and this is also why resources or the the Google fiasco um is was a problem right they don't realize that in the And you have um 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 internet. You see
[02:42:00] the one right there? >> Yeah. This is the meme. I mean it applies to to a lot of projects but this >> it's the all modern digital multimedia infrastructure and then that thing at the very bottom that everything relies on is FFmpeg. It's true. And then there's usually you know a handful of folks that are maintaining that >> and FFmpeg or VC right you have a community of 10 15 core developers are not the worst open source project XZ which is even in more installations is one person right there is one guy lib XML is >> yeah lib XML right there was a big stop no one is maintaining XML anymore which is like pass the only library that is able to pass XML everywhere >> all 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 and yeah but the body of knowledge to actually resolve that is massive. There is one guy maintaining all the time zones for everyone who is in the middle of I think
[02:43:01] was it Nebraska or South Dakota like >> the mental health of the open source maintainers is something that large corporations don't care or don't see right it's just like oh yeah I'm just doing an open source uh report and so on some of it is financial but some of it and people should definitely support open source financially all across the board but some of it is also like spiritual on a basic human level, there'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 >> in the security community. They certainly did. That was one of that was one of the things I think that argument came out is there was there was a portion of the security community like no these guys write crap code. They need to fix their crap code. I'm like, "No, no, no, no. This is a guy's hobby project. You've you've have a security bot that's gone and found some AI generator stuff. That
[02:44:00] guy didn't write crap code. It'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. >> I get the hobby project aspect of it. It's it's just hard work and it's it's beautiful and like the right approach there is to celebrate people for doing incredible >> incredible work. It's It's just incredible that humans step up. >> Sure. >> Not getting really paid at first or maybe ever and then they 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 Core Duo. Um that's probably in 2006 and by 2009 or 2010 I decide that we are not going to do new versions of VC for poor
[02:45:00] PC. >> Mhm. >> At that time like VC 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 receive a death threat with some powder in it, right? It remember there was 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 wasn't anthrax of course it was some type of flaw and so on. I received that as a with a later of like uh you you're a piece of you should die. Uh Boa 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'm going to say that I'm quite happy that this happened at that time. It it folds me a lot, right? I am I I can see
[02:46:02] 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 cuz all the people that love VC, all the people that love FFmpeg, like me, you know, I I legitimately hund 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 me about me, which I don't like this me 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 VC." And like I take pictures and then I share that to to to the signal to IRC. Uh yes, we use IRC on on different >> I I saw as a quick tangent you mentioned
[02:47:00] IRC is like Slack for old people. So you still use IRC? >> Of course. >> Yep. I have it on my phone as well. >> Of course. >> Every day. >> Works fine. >> Wow. It works fine. >> You have to power with the crank. >> No, but 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 doesn't have threads. That's annoying. It doesn't have emojis for reaction. Sometimes it would be nice. >> V3 does. >> 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 old people. >> Old people and we don't we know emojis with like you know columns and >> 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 sometime they got people who send me a message and mail, oh, thank you for VC and I always answer because I want to to to validate the fact that you need to thank
[02:48:01] the the the open source community. Yeah, please everybody listening to this celebrate celebrate FFMPEX, celebrate VC, celebrate all the incredible uh open source projects, Linux, everything. There's so many there's so many and 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? 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 >> want to solve hard problems work on
[02:49:00] something interesting work on some interesting technical challenges >> we 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 did the two of you first fall in love with programming, with with building, with engineering? >> When is the first time you programmed K? >> Microsoft QBasic as on Windows 3.1 and Windows 95. Microsoft QBasic. >> Wow. What did you build? >> Uh like a multiplication just counting loops like 10 20 30 40. >> Nice. >> Uh then I thought I could do everything after that. I wanted I jumped from doing that to I want to create a soccer no a football soccer video game and I drew all the I drew everything out. I was like I want to do it and I didn't quite grasp that actually >> uh I didn't grasp actually it's a massive piece of work to jump from basic and drawings and pictures to a video game. But there we go. I I think I did
[02:50:01] um also basics and then the turbo 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 would you call that middle school when you're 11? >> Mhm. >> Um I was uh I lived in Italy for a year in Florence and it was amazing year. 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 use that to do uh very complex programming because of course you could do things and and this changed like 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. Can we return backtrack a little bit to x264?
[02:51:00] This thing that powers basically all of the video on the internet. So, uh, can you tell me the story of x264? And Kieran, you're actually a contributor to x64. >> So, 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 uh broadcasting and all sorts of other areas. X264 was a big step change um 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 CU and NHLM CPUs were getting fast. You could do real-time video. But the mo the most important thing was um a key sort of focus on visual metrics. So industry and academia for 20 years before was obsessed with um mathematical metrics. So what's known as peak signal
[02:52:00] to noise ratio. So mean squed error logarithm of mean squed error. And that led to tons of issues because mean squared error um leads to blurring because you actually want to you want to minimize you want to add a little bit of error to everything to to reduce the mean squared error as opposed to having a big error and that led to loads and loads of blurring. So but hobbyists buck that trend. It was for their own personal videos, mostly anime. So there were two there were two things they did differently and there was 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 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
[02:53:00] 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 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 Pock Joy. to Park Joy was really the canonical sample that was the running around in the park. 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
[02:54:02] 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 psycho visual stuff. I could turn off reactive 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. >> These are the holy metrics that are untouchable. PSNR is the most important thing. Uh can you speak to how do you measure psycho visual stuff like how do you turn how pleasing a compression is for a human eye into a number? Is that even possible?
[02:55:00] >> That's what that's what Netflix have been trying to do with Vmath. They said they've used a machine learning model. >> That's a more recent thing. But back in uh when X6 was being developed, that's by eye. You're basically >> it was by eye. It was developers on their laptops. So it's not like even with big companies with prof professional screens or anything. It's and that was actually one of the goals which was I don't the the developers at the time, Lauren Merritt in particular, it's 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 planet earth's kila sample that I absolutely love and you we're going to see why this uh >> 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 well you're watching it on YouTube and you see how bad the
[02:56:00] 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 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. One of my favorite films, um, Cinema Paradiso, I know the engineer who created the Blu-ray and he showed me the comparisons of X.264 versus others. And, uh, it's completely different. And I think a bunch a bunch of guys in the Blu-ray world started using x.264. Um, I think the big one was Chris Henderson from Warner Brothers. He did the whole French box set with that's a quite like a thing that a person on the street actually
[02:57:01] watches and wants to look good. And so they kind of took a risk in their jobs doing that cuz 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 Lauron Emar when he was at the San Alpare where VC was born. And then you got a generation of people like Lauren, like Jason, like Monz, like uh so many Henrik 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
[02:58:01] Kieran or large percentage love anime. There's several things I've never got into and one of them is anime and I need >> 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 we 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 subers are basically translating themselves to 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 fun subbing, right? One of the most amazing open source projects for subtitles. It's called a AEG sub and it's it's a subtitle. It's known for
[02:59:01] anime for for for um South Asian in 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 way you produce 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 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 diiocritics, right? The what we call the ribeye, right? Which is the hiragana and the katakana for the ki 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
[03:00:02] um this is an important part of the culture but also because there was no official offering there was no way of doing that. Uh can you speak to the difference between 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 Meeek 2 video are the same concepts. The same concept about inverse transform, about intra prediction, motion compensate, entropy coding, all of them. However, each generation gives you a bump between 25 and 50% more compression for the same quality. Um and so you had the MEC 2, you had the Divix area, you have H.264 which was
[03:01:01] 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 264 became out of Android and could cost hundreds of millions of dollars per year. So it made no sense. So Google did this VP9 and the Alons for Open Media did this new codec called AV1. Um so you can imagine that AV1 saves between 40 and 60% less bandwidth than H.264 for for the same quality visual >> at a given bit rate. >> At a given bit rate, right? So that's really like you increase the quality. Either you you set the bit rate and you increase the quality or you set the quality and you decrease your bit rate. But because now you move from from SD to
[03:02:01] HD and HD to 4K and 4K to 4K HDR like you 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. It's more coding tools, more bigger blocks, lots more subartitions 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? So you can go left, right, bottom, up and then in terms of uh uh like the other quadrants, right? uh I called north northeast northwest and 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
[03:03:00] one um 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? Order of magnitude, >> Yeah. >> And as we discussed, CPUs are not getting faster. You're just throwing more cores at the problem. >> But also, it's a fact that you encode once and you have hundreds of millions of users, right? So, for example, YouTube, a very good example, YouTube encodes almost everything in H.264, 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 so it's a trade-off between encoding time and complexity and and CPU usage on the server side and on the client side because at the end if you're distributing a video to hundreds of thousands of people and the size is
[03:04:00] half of the other then it's better it's better for your battery it's better for your them etc etc. So we can lay out let's say the top five codec container combos would be H264 inside MP4 containers AV1 inside MP4 webm containers uh ProRes for nonlinear editing uh inside containers. So for people who don't know, I guess ProRes is it's Apple's codec for editing originally for Final Cut Pro and it's designed to be fast to decode, fast to seek because an editor will need to move very quickly. So it's a different use case to the distribution element. >> There's no or very minimal uh temporal compression. >> There's none yet. There's none in so you can cut. So you can do cuts. >> This is what we call intra only codecs. Right? So I'm going to explain quickly what is IPB frames.
[03:05:00] >> Yes please. >> Um so I frames often key frames but is complete frames. It's like an image. It's a JPEG right you have you can start you see everything right um and then you the next image can be a P frame which is a predicted frame. So you take some part of the previous image saying well I need the block five and seven and 42 and you replace it and then you just give the extra information right but that means that in order to decode this P frame you need to have access the previous I frame right >> and then of course you have more complex one which are B frames which are be predicted um frames which can be depend on different type of frames some in the past some in the future Um and so prozz is an intra only codec for the people who can see this is a very good one right so I frames are complete frames um uh p frame basically
[03:06:00] uh depend only on I frame and b frames can depend on in front >> in this uh gop group of pictures I think the default for actually ffmpeg for h64 is uh like 250 50 a frame something like this. >> Yes. >> And to me it's just it's like magic like that you could predict you could have a complete frame every >> several seconds that means >> several seconds and then you could still you can have this chain of predictions you make and the fact that you can the fact that somebody like me can can use fmp to compress something and not notice that the result still plays back smoothly is is like magic. You can even have and we use that in tons on Kyber is what we call intra refresh where basically it's there is no frame. >> You you have no you have one at the beginning and you never send an iframe. >> How does that work? What is >> you you build up an iframe gradually
[03:07:01] across as the stream continues. So, so you refresh certain parts of the image, >> but so you never have an iframe like this is in refresh that we use, right? But for me, for me, the the the biggest mind-b blown when I started was the B frames. >> Yeah. >> B frames means B predicted frames can depend on frames that are coming in the future. >> Mhm. That means that in order to decode this B frame, you need to wait for the next frame that is dependent buffers that decode that one so that you can decode the B frame. Right? So the the the way you decode the frame, the decoding order is not the same as the display order, right? That 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. So >> this is like mindblowing. >> Yeah. >> The fact it works so smoothly every day is is kind of miraculous in some ways. It works so you can have a stream that
[03:08:01] >> 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. >> That's quite remarkable. And do quite complex things and getting more and more complex and still be bit exact. There's a lot of work that goes into that. There's a lot of knobs you can control in this whole process. There'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. Maybe you can speak to some of them. So, first of all, like obviously we can lower the resolution. We can lower the frame rate. We can use different kinds of codecs as we mentioned from H.64 to AV1. There's ways to tune the trade-off between bit rate and quality as we've kind of spoken to. You know, you could do constant bit rate. You can do constant quality serq QP. You can uh do the longer or shorter group of pictures go that we mentioned. I mean all that kind of stuff. It's crazy number of B frames.
[03:09:00] >> Yeah. What is crazy is that >> a ton of people's job is to optimize those parameters, right? A ton of people that you see at YouTube, at Netflix, at Meta, and so on, they're not writing codecs. They're just like finding the right parameters for the file they have for the format they have, right? Because 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. And there are thousands of people whose job is just to optimize all that. >> Yeah, they're wizards. Hats off to them. uh YouTube like to deliver all the streaming sites actually to deliver at scale and like YouTube is is really magical because it's not just doing like what Netflix it does which is one way like broadcasting type thing it's also has to upload videos from all the
[03:10:01] places. So they're also doing encoding at scale >> for videos that are going to be watched by like five people and it still has to deliver them re like on a moment's notice. No, no delay, nothing. No late I mean very minimal latency and and also serve it in all different resolutions like YouTube is basically the web version of VC. Well, actually it's funny because like Google video, which was uh something they did before uh they acquired YouTube, uh was actually using the VC plug-in so that you could run VLC inside the web browser uh using the Activix plug-in and so it worked in Internet Explorer and you were actually running um VC inside your browser >> which is funny because today we have the opposite where we have VC web assembly where we compile all VC NF ffmpeg to decode to run VLC in type of inside the JavaScript virtual machine um with web
[03:11:02] assembly. Okay, there's this legendary story that you pointed me to that uh it was discovered uh via Wikileaks release of all seven documents the CIA was using a modified version of VC uh to basically try and trick people what to steal their data. >> Yes, exactly. So can you explain what the heck happened? What? >> So So this was a surprise, right? Um because at some point mentioned some documents. There were a few ones with something related to Blu-rays and VC, but the the most interesting one was the CIA vault 7 which if I understand correctly um was the CIA had like a custom version of VC uh where they had a specific plug-in. Yeah, exactly. This is like we had to to write a press release on that. Video land wrote a press release saying the only safe source for getting VLC media player is the official video land website. I mean I suppose
[03:12:01] that's a security vulnerability for basically any piece of open source software. Somebody can trick you to download in a fake website or targeted advertisement. Right? That was a targeted advertisement. To watch a specific file, you need to watch with this custom version of VC. And it was the normal binaries of VC except they added one DL. I think it was psappi.dll, which was basically reading your your document folder, encrypting that and sending that. And 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 and sometimes it's normal because it's HD that your your fans are going up and say and there is ton of TPU usage because you're using VC, right? That's normal. But the thing is what you don't see is that actually a a powered version of VC that is used by CIA. Um, we had exactly the same
[03:13:01] problem with Chinese hackers that were targeting Indian people and that got VC banned from India until I had to to fight in courts in India, the Indian government to unban VLC. They didn't use VC. They took just one DLL because we signed the DLL correctly. Um, and they used that DLL to do another program. Uh, so you had a VC.exe XZ and was calling lib VLC but it was calling it into a fake one and they use that to to target. Um there is not much we can do actually to to to block those type of hacks. >> Yeah. And I think people should for all open source software for all software in general people should pay attention where they download the thing. >> Yes. Because that means that they were not downloading it from our website. >> Do the search engines help you? >> No they don't. Just to clarify because you can, you know, to prevent threats from people manipulating SEO to get up there and links.
[03:14:00] >> Absolutely not. Right. We have a big issue for like more than 10 years is that there is a fake version of VC in Germany that was reported for now for 12 years and Google basically decides to not they know what's in it, but the binary is too big for their virus analyzer to analyze it. And so, well, if you're in Germany, you can go to a website that is a fake version of VC with a custom installer and it's very popular in Germany because their website is in German and and Google mentioned that before Vidolan and the weirdest thing is that it doesn't do anything on your machine for 3 weeks. >> Mhm. because that's how they they do the detection and after three weeks there is a small program that is a service that they installed at the same time that wakes up after 3 weeks and it start downloading spyware and adear and Google knows about it they've decided not to do anything the guys use dark SEO in Germany to to to to do that at some point um and this is very damaging right
[03:15:01] because one of the things that they're downloading is actually something that is replacing your ads inside your machine It's actually quite surprisingly effective. Whoever is doing it with Twitter and X with X, I'll get emails about your ex account has been hacked. And however they phrase it, it gets me to like at least click on the email not to follow the thing. And then you're like, man, whatever they're doing with the psychology to try to trick you, they're quite good. There is a security version of VC, right? You received an email saying, "Hey, there is a security version update on VC. Think about updating right now because it can hack your computer." You come, it's a website that looks decent and and you download it's a new version of VC. Great. You don't know a month later you're hacked. You have no idea you're part of a botnet. >> Yeah. >> So, make make sure wherever you're downloading stuff, it's legitimate part of the botnet. Uh speaking of which, so uh you've mentioned that uh VC sandbox
[03:16:03] is something is something you're working on and it's actually something quite challenging. Why is it important? Why is it hard? So VLC is a core with around 500 plugins, right? One of them is FFmpeg, but we have we support so many other formats. We support uh new protocols. We support new filters. We support weird architectures. And in this release of VC, you have modules that are going to call your drivers, right? Uh mostly the hardware decoders which are going to call uh your Intel, your Nvidia, your IMD driver. Um and or calling FFmpeg, right? And there might be a security issue. There might be a security issue in the shader. There might be a security issue in VC in FFmpeg that is going to basically crash. The issue is that you're running VC like every every other program like Adobe, right? You're running it on your machine
[03:17:00] and it has access to all your documents, right? though the idea is to be sure that you do a sandbox so that we can protect from ourselves because inside the VC process is running some code that is not even ours either it's open source the other projects that we integrate in VC or it's your GPU driver or something that is provided by someone else inside and so when we crash we want to not allow people to do bad things right because 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 and when you crash you launch something on the on the machine of the person could be a ransomware could be a botnet right so security of desktop application is important on mobile it's a bit different because most of the mobile application are running on inside their own sandbox but for VC we could run it inside one sandbox but the problem is that we need
[03:18:01] access to so many things that it's basically we we would do we would have all the permissions right and so if you have a sun sandbox and you put some holes everywhere it defeats the purpose right so what we are trying to do and we're actually doing is splitting VC into several processes one is decoding one is demoxing one is filters and all of them run into their own sandbox so that the whole VC a part of VC see crash like Chrome crashes on some on some tab, right? It crashes a crash, but it did not crash the whole program. And this is what we're trying to do. And it's difficult because it's a sandbox that needs to sustain gigabits per second of of mem copies. Now, it's not a website which is 5 megabytes or 10 megabytes. We're talking about hundreds of megabits per second. So this is why it is quite challenging and this is a a research topic that we we are working on in order to have multimedia player that is
[03:19:02] secure. This is all the kind of stuff you have to think about when millions of people are using you. You've mentioned something somewhere where like uh all the different features of VC when you have that many people using it somebody will use every single feature and they will tell you about it. best feature in VC is called the puzzle filter, right? So, you click the puzzle filter and it transforms your video into a jigsaw puzzle, right? And you can click >> and move the pieces, right? >> Um, it's very very useful when you're watching a French movie, right? You're bored and because it's like like very long things or or a love triangle, right? We've seen that so many times, right? But but you need to watch it because someone your wife or told you to do that or or your your boyfriend told you to do that, right? So you're doing that, right? And you can click and move the pieces around. >> Yeah. >> It's absolutely useless, right? Like who cares about that? First, it was done by
[03:20:01] a mass um teacher in high school in south of France to teach his students about basier curves, which is something that everyone should know about, right? It's very useful. >> But the was clean. So it got in VC. It was merged in 2010. 5 years later, I received an email and saying, "Hello, JB. I have a problem with VC. The puzzle is too simple." And I was just like, "What?" And yes, the puzzle was in the UI maximus by 16 by 16, right? Only 256 pieces. And he says, "I'm sorry, but in a movie, I love puzzle. This is too too simple." Right? So there is a com of me you can check it online which is JB changing that the dimensions are 256 by but my point is so many use features are used by a few people right there is a way to watch VC movies in common line without any UI right it's >> I saw that you can do as
[03:21:00] >> art is it useful very useful imagine you're debugging imagine you're debugging a multiccast network, right? You have thousands very complex, >> very complex networking stack, right? You can SSH to all of the routters and put VC on it with no UI and you're going to see whether it's black or it's not black, right? So you see if or it's all green or not all green, right? So you can see >> right >> people don't realize there is so many things in VC uh that are useful um and they are they have users because once you have hundreds of millions of users you have people who use every feature. >> I would love to sort of uh zoom in and and and talk a little bit more about the distinction between kind of downloading a file and watching it offline versus streaming. So the the complexities the challenges of streaming. Is there something we could say about what it takes to uh stream files because we've been
[03:22:00] talking about codecs and I think a lot of that implies encoding and decoding uh without the having to communicate over the network. >> Sure. >> Uh so can you can you elaborate like what's required to do over the network stuff? Yeah, but it is less complex than it seems compared to everything that we've talked about. Um especially because the most complex thing is not about streaming in terms of um uh streaming services, but it was was what was done to actually broadcast through satellites. Um because in in most of the modern uh broadcasting services, you can pose and you can go on. 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 you when you go on a satellite you have a specific size of the link right you cannot have a burst of bandwidths even for a second right
[03:23:00] because you don't have the space for that in your your total file however there is different types of challenges which are interesting challenges but I think they are less complex than the one we've seen with um late '9s and early 2000s about broadcasting and streaming through satellite >> they're different they're control systems challenges whereas whereas some are more mathematical I think there's a difference >> in 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 so your player um has difficulty downloading things fast enough to play them. So what happens is that locally the player is going to read a lower resolution of it. Um but >> there are some very clever algorithms to do that but most of it is quite basics to be honest. >> Even on the buffering side is pretty
[03:24:01] basic. >> Yeah. Yeah, you you you start to download a a segment, what we call a segment, and then you you time, right? And if you if it takes more than 50% of the time to download a segment, you go down to, right? And the difficulty is more about when do you go up in bandwidth in quality, but this is not very complex to do. When you encode, you're going to encode seven resolutions, right? And and you're going to give the bit rate. Um, the difficulty is to have your encoder gives the same bit rate, but it's not as strict as it used to be. So, uh, probably YouTube has to figure out how the human psychology side of that, like how pissed off do you get when it's like very low bit rate and uh, how long should it wait before it increases the bit rate even though the connection is better? because maybe the changes in the bit rate is what like affects you psychologically. >> I I think actually the interesting one
[03:25:00] is the audio that you can kind of notice when they move from um full fat AAC to the um there are compressed versions of AAC that use spectral band replication. You can kind of see it goes a bit tiny and that up and down is very jarring. The video side is a lot smoother and there's less notice. It's really the audio. You can you can definitely you can definitely feel it from when it's moved you from a different audio profile to one or the other. >> I don't know. We're surprisingly tolerant at skipping audio glitches. I I'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. The world is a lot more tolerant to that. But audio people are very there it's an immediate feedback mechanism of oh >> if you hear a glitch you realize it directly. Yeah, I get to fully realize that. I suppose one 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 oversess when uh people people in general are able to kind of
[03:26:02] kind of blur their consumption. They they can they can look past certain imperfections. But then when you combine like um an event that is for example a sport event that is probably going through satellite or somewhere else and goes to a central place for encoding and then you need to encode this all the resolution you in real time you don't have time for QA you need to push that to CDNs you need to add probably DRM uh protection you need to have that over a ton of different um devices then yes it is complex X um but and also like you're in the web browser or in very much different devices that you use for television where you had like a a defined setup box or cable box that that you know where you control end to end. Um so it's a challenge but it's less I think the networking part uh while you
[03:27:00] agree to have 10 20 seconds of latency I don't think this is very difficult. Speaking of networking and latency. So your new effort as we mentioned is Kyber which is uh aimed at ultra low latency as you say every millisecond counts and uh you're applying that to remote control machines like robots, drones, computers. Can you tell me about it? >> Sure. Um if you start from where we used to be, right? You used to use ffmpeg to encode files, right? And then we used fmpeg and VC to encode in streaming services, right? And then you need to go lower and lower. And the question was where up to where we can can we go? >> Um, and this question is very important because there are many use cases where you need to be fast and it's when you have feedback interaction, right? We are not just listening to something, you're actually controlling it, right? because and that's the biggest difference that
[03:28:01] compared to what we've done so far is that I I need video to have a feedback on something that is happening live whether it's a drone flying whether it's um controlling a humanoid robots from distance whether it's controlling a rover whether it's playing a video game in the cloud gaming because this is um what I did on a previous job right I was CTO of a cloud gaming startup um and this is an very interesting topic because you push to the limits the network. You need to be to care not about the quality like we've done on video and we've talked about with x264. You care about latency because a milliseconds is meaningful when you're controlling a car, right? For well you we've you've seen you've used Whimos, right? when whimos don't work and that happens even if 1% of the time there is someone that is basically remote controlling that um
[03:29:00] and this is exactly the stuff that we're building it's a really an SDK um platform uh to do end to end control of machines so this comes up quite a lot in a lot of different context in robotics so obviously teley operation teley op is becoming more and more important and including for training uh robots uh via machine learning. >> Yes. And what we do is a bit different from any everyone else is that we take only one socket, one connection which is a quick uh protocol based on UDP. Um which is interesting because it's done for low latency. It doesn't have two of the what we call the TCP end ofline problem and HTTP end offline problem. It's safer by default. But on the same wire we send multiple streams like multiple track. We send audio, we send in video, but we also send the comments, right? Uh mouse, keyboard, gamepad and so on. And we do that while maintaining coherence, right? Synchronization.
[03:30:01] Because what people don't realize is that all the clocks actually drift. And when you're controlling a robot, a robot is going to have like two cameras, five cameras, 10 cameras, a ton of captors, GPS, and so on. Um, and if you want to train correctly your robotic AI model, you need to have all those that are in sync and currents. And what we've done, and it's all the stuff that we learn on VC in broadcast in real time and impact TS that Karan know well, is that we account for clock drifting and 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. And 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 and clocks actually drift. Like the existing solution works with one camera. Once you're going to a five or seven, it's more complex.
[03:31:00] >> So you want to make sure that the visual snapshot perfectly matches the time it actually happened. >> Exactly. And also if you're going to control right I do something on robot I need to be sure that it is actually happening at that precise time right and so we have on the the server which would be a robot a time of like rettimestamping mechanism accounting for clock drift for that right so that's one of the use case um of kyber to to control robots um I also see like remote drones remote uh whether it's defense or non-defense remote cars remote submarines there 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? So you you allow people to have machines next to you, right? The goal of Kyber is to make distance disappear um because it's either projection of skills or
[03:32:00] projection of power, right? So imagine we we all like you've seen the meta reban and everyone else, right? you need to stream there, right? Because you're not going to run anything over there, right? So, you need GPU power, whether it's on a cloud, on a phone to stream that. And so, all of these use cases needs to be not about extremely low latency, but real time latency for video. And so, that means you need we're toing with the encoders so that the encoders encoder frame in for milliseconds. and and and Kiran with his company also goes under those type of license of of latency because you need to optimize at max the local latency right because it's the decoder the encoder um and so on um because this time is going to be added to your networking time um so and it's not just about low latency it's also about like reliability we do clever things like uh forward error correction,
[03:33:00] right? So forward error correction is you overransmit a bit of data, right? A few percent um and while over transmit you're allowed to lose some packets because all of that is very difficult over a internet network uh where you're going to do things very far away. Um and if you check that all packets are delivered, you add a ton of latency. If you don't want latency, what we do is that we over transmit some data that you can retrans reconstruct on the client side when there is um things that are broken, right? So um and we um a few a few days weeks ago we were doing the demo around Las Vegas for the CES about we had a a rover that is fully 3D printed. It's very simple. It's a car, right? It's a small car with a a telescopic arm and it was actually controlled from France, right? And the the video uh was uh with a webcam in a very small server, right? A small a small PCB was basically running and send
[03:34:02] that to someone that is on the other side of the planet. And so there is so many use cases. You can also think about having AI who are going to control many drones and so on. And the technically we need to be amazing in video. We need to be amazing at networking. We need to care about any milliseconds in networking in encoding time in decoding time and also you need to integrate very low level. >> So sync everything together well but how like what kind of latency can you get to like what when you say milliseconds what what's the goal? >> So my goal is 4 milliseconds glassto glass latency. Um >> what's glass to glass mean? >> So it's easy right? You have a computer which is running a program right probably a video game and this one is actually running right? It could be it's an example of a robot, right? >> And you have the replicate that is done to the network >> and and you want >> if you take a a 1,00 Hz camera, you can take a picture and you want that to be
[03:35:01] at 4 milliseconds. 4 millconds means 240 Hz, right? >> Yes. Not >> um so far we we achieve um 7 milliseconds from a Windows to Windows or window to Mac. Um and if you look in the timing most there is around 3.5 milliseconds inside the Nvidia uh hardware encoder and around 2 milliseconds on the Intel decoder right so like the encoder plus the decoder is already 6 milliseconds right so in order to go down we need either to have some other type of codecs um or some better encoder that are faster uh but 4 milliseconds is would be the growl That's pretty nuts. I love it though. I I don't think anyone's ever achieved that, right? >> That's fast. >> You can achieve that with custom hardware, >> with SDI, with professional hardware, but I want that to work over the internet. I want that to work with any
[03:36:01] robots where you're going to have a small Jetson Nano in it or or N150, right? I want that because there is going to be millions of robots or drones are just rolling robots or flying robots or or swimming robots, right? It's just you a machine that you control and in order >> either you need to teleoperate them or when everything will be fully autonomous, you need to te observe them, right? You need to check what's happening. >> Yeah. And in my view in the future like all those remote cars will be teleobserv observed by an AI model which is just going to say well everything is gone good and when it's not good say hey there is a problem and then you have an operator right and this is going to be about safety right when 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 or when I'm driving I I want like the car to to stop
[03:37:00] when it should stop and if needed someone takes care of that right and so there is so many cases scenarios about real time and so the goal of Kyber is to make real time control of machine distance disappear >> it's it's incredible and some of the same technology some of the same ideas we've been talking about is is connected to what you're doing >> and for for me it's amazingly challenging right because I would say that on video I'm doing okay but networking I'm I so much more to learn, right? It's uh um about like congestion protocols, bit rate adaptation in real time. Um but it's it's quite funny and and so I created this project and and we we have fundraised in the US of course but it's open source, right? This is important, right? Like we've not said that, right? But everything on Kyber is open source. >> So how do you make money? >> It's a dual license commercial and AGPL, right? You remember what you said about about uh licenses? Uh basically if you want to use Sky Kyber in your product
[03:38:02] you must have your full product open source. If you want to use this amazing technology but not open source you pay the commercial license right. So the small people or the the the hobbyist and the the very small guys who want to do that they can use the technology they build something that is open source and cool. Awesome. And if you're a large company you're going to have the support all the IP the right modification and so on. So, um, yeah, it's really cool and and and also I'm building robots and I love that, right? Like like the the rover we have is 3D printed. Um, we are finishing a demo where it's an actual wing, right? Like a type of drone wings that is also fully 3D printed. Um, we are trying to do a a sailboat that is 3D printed. Uh, and and and we'll work on some humanoids. Of course, they are not going to be very good robots, right? It's not our job, but we're here for everyone to make robots. Cool. Ah, you're talking to the right guy. I love robots. There's a bunch of them
[03:39:00] upstairs. Uh, and tell is going to be really, really important, especially as the number of robots goes across the world. So, 100%. Let's talk about the future of um multimedia ffmpeg VC, but some of the codecs. We didn't really mention AV2. So, can we just lay out what is AV2? What is the hope for it? What is H.265, H.266. So AV1 is this codec that is done by the aliens for open media, right? Where there is uh Google, Netflix, Amazon, Apple, uh Vidolan where we try to make a royaltyfree very good codec, right? And now it's being deployed. But actually the codec was finished in 2018, but a codec takes years to be used in wide scenarios, right? So uh AV2 is the next generation of this codec. It's 30% better, right? So if you keep the same uh quality, you got 30% bandwidth
[03:40:01] reduction compared to AV1. >> What's the connection with the David and AV2? >> We are going to do a David 2, right? That I called David because D is two in French. >> Well done. >> And and you have to know that David is an actual uh what we call recursive acronym, right? because it means D David is an AV1 decoder, right? So >> Oh, nice. Nice. I didn't even think about that. And uh people should know that David is spelled with a one. >> Yes, it's um and so David 2. >> It's going to be spelled with a two. >> It's going to be day a V2D. Sorry, I don't know how you pronounce that. Uh and again, we did a demo at the CES of VC running the first demo of AV2. So can you clarify to me the specification of AV2 and then the encoding and the decoding? >> Sure. So the specification is like the document who explains how the codec is supposed to work. Right.
[03:41:00] >> And that's really AV2. >> That is AV2 like H.264. >> Yeah. Right. >> Then you have an encoder. The current encoder is called AVM. And there will probably be other encoders probably one called SVT AV2 and those are the encoder. The same way x264 is an encoder to H.264. The same way that X265 is an encoder for the H.265 codec. And the decoders for AV1 is David. The decoder for AV2 is David 2. The decoder for H.264 is FFH.264 264 inside FFmpeg. The decoder for HVC is FFHVC inside FFmpeg. Um, and there is a next generation codec from the Meg world after H.264, H.265. There is one that is called H.266 or also known as VVC. So, HEVC is H.265.
[03:42:02] VVC is H.266. Why is H.266 266 super sexy so much better. >> So the question often we have is why are they two names? Because most of the time it is a conjunct work from the ISO world and the ITU which is the international telecommunication union. >> These are these two regulatory bodies. >> One is a private entity and one is the United Nations. >> Which one is the private? >> ISO is private. >> In theory H.264 264 is MPEG 4 part 10 H.264/AVC. >> Mhm. >> And this is the full name. >> Nice. >> So it's the concatenation of the ISO name and the ITU name. >> Yeah. >> Even though they work together, this is this is politics historical, you know. >> And for HVC, it's MEGH H.265 HVC. >> Got it. >> And there is H.266, 266 which is also
[03:43:02] named VVC. >> Is there a high level thing to say about the improvement? >> 30% each generation is a best summary. >> This is true both for the AV codeex and the H26456. >> So the professional who are listening to us are going to kill us because they say no it's 35% 25% blah blah blah. But globally you need to know that HVC is 30% better than than H.264. H26 is 30% better than H.26. 265 because there is so many case and so many scenarios. For 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 and so for a specific video a new generation is going to give you 70% gain or 80% gain, right? >> Um but there used to be a ton more codecs but now the two main codecs for transmission are the H.264 H264, H265, H266 and the other is AV1, AV2.
[03:44:00] >> And I guess the the major difference would be the cost of encoding. Yes. >> Yes. and the royalty of the patents and this is the reasons why you see the AV version of Codex is because um they try to be as royalty-free which means no cost for the patents as much as possible because what you need to know and we've not talked about that so far is that multimedia is what we call a patent minefield there is two places where it's you have the most patents it's everything related to 3G 4G 5G RF and multimedia um because it's very mathematical and you can get great gains and so on. Um so Google and Meta and Netflix wanted something where it was royalty-free. There are people who says that they have patents outside but they are fringe patents right so it's mostly true that is patent free >> we should extend patent patent checking was done as part of the standardization process in AV1 AV2 whereas patents are
[03:45:01] not even discussed in the meg world patents are off topic completely >> can you educate me at the patents side so usually so meg does a format right and then there is um everyone comes around and say Well, I have all those patents for the format and they do usually a union called um was called Meg LA, Meg Licensing Association. Um and you put all the all your patents in and then you ask everyone who's using this format to pay for it. >> Wait, can you elaborate? What does it mean to have a patent of a codec? Why is there many patents? >> Uh imagine I'm doing something where I'm going to def instead of doing blocks which are square, I'm going to do rectangles, right? >> Oh, so every idea Yes. Somebody patents it. Yes. >> Oh man. >> Yes. Oh man. People and how many lawyers or I mean it pays for a lot of lawyers, right? >> The biggest issue is not the following, right? Because at time of H.264 the
[03:46:01] patents were let's call it like sane but there was there was so much money in that >> that for HVC >> a lot there were a ton of things that were pushed inside the specification which are not useful in 99.9% of the time but so just one could add a patent on it and so it became that for HVC licensing there was MELA plus another patent pool called HV VC advance plus um I think was Nokia was outside of the patent pool. a few of them are outside and some other one >> and so it was impossible to license right and I think that several months ago HP decided that they were going to remove support from HVC in their Windows laptops because the the cost was increasing of those patents and it arrived where a point where and there was uncapped pad and so for YouTube or Netflix we could talk about hundreds of
[03:47:00] millions of dollars of licensing for patents per year and they said you know what as 100 millions per year you know I could create my own codec and this is what they did and 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 uh we create also audio codecs but yes so the main difference would be that and because you need to work around the patents or go do some things that are not patented a lot of things are different Right. The basing things that were done in MEG 2 30 years ago are caught out of patents. But so for example, there is things like a golden frame or S frame or or different type of >> These are all patented ideas. >> Yeah. No, it's I can't believe it's not butter. I can't believe it's not a B frame. I mean I mean it's kind of what it is in some ways. It's like a >> Oh, so it's a different variant of a B. >> Yeah. That's to try and sidestep things
[03:48:00] like that. >> And so you need to have double creativity, right? creativity in terms of being more efficient but creativity of being sure that you don't infringe existing patents and so for example VVC is has all the patents of HVC plus new ones right while AV2 tries to be as royalty-free as possible >> to what degree does FFmpeg and VC have to think about this kind of stuff >> we don't and one of the reasons why VC was in France is that France rejects software patents so most of those are illegal in France because I once made the comput the calculus that if I had to pay all the licency fee for VC I needed to pay more than €200 per user right the same in dollars um but 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 uh let me
[03:49:00] just at a high level just out of curiosity. So the meme online and the interwebs on X and Twitter and so on and my own I have friends in Europe uh this the sense is that Europe is not friendly to entrepreneurship. They overregulate there's too much bureaucracy and so on. Is is there any anything positive to say? Is there hope for entrepreneurship in the future of Europe? Is Europe over from a tech perspective? >> Just just look at the two of us, right? Is it's notable that there's two people from the European continent on this podcast talking about video. It's fair to say the community's weighted heavily. >> What you probably don't see yet is that there is a new generation of entrepreneurs in Europe and mostly in France. uh UK has done it since a long time because well it's more it's more Anglo-Saxon type of uh business look at business but especially like what
[03:50:01] happens in France and of course sometimes a bit overdone with everything called French tech but today most of the people who come on the market wants to create a startups 15 years ago it wasn't the case everyone wanted to work on big companies because when you failed in in in France for example 20 years ago 15 and you destroy your company which is normal for startup right you you were not allowed to create a new company right there was a lot of stigma this stigma is gone um there is so many things happening on AI in France and so on right so there is sure overregulations I I know that right I'm an entrepreneur um but it has some good things also I mean is there some paralyzing aspects you know if I look at at the case of somebody u become close with Paul Durov. You know, he was uh uh blamed directly by the French government for the kind of
[03:51:01] things his quote platform was hosting. I could see the same kind of stuff basically just as an example VC being blamed for the kind of videos that people are watching. >> We tried, right? like we we like we we had issues like we like >> I mean is that 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 >> no you don't think about it and that's that's okay right like >> but what if they come in when what if they show up and >> there is no office doesn't have office >> I mean this what happened with Pablo they arrested him right so arrested him for particular videos or or or particular content that's being shared on the platform >> sure I don't have any platform everything is on the claim side. >> Yeah, but they're they can still arrest you on what ground? I'm not sharing anything. I'm not the content doesn't go through my my stuff >> for sure. But it's still lawyer fees. That's the problem. >> Yes, that's correct. Paperwork. So like actually if you had infinite trillions
[03:52:00] of dollars uh you would win uh easily because you're on the right side. But the thing is there is a a degree to which they suffocate you with paperwork. That's that's the downside of bureaucracy through paperwork, through process. >> Yes. >> You know, it's the Kafka thing. >> You you have to to to realize that one of the good things, for example, um in in France or most of Europe is that the answering to a court order does not make you bankrupt, right? It's not like in the US where it can actually bankrupt you, right? There is the way the law system work is that like I I receive lawyers letters every week. Right. And I can tell you that the cost of lawyer fees for vidoland is less than $10,000 per year. Right. >> Right. So that's not really scary. >> I mean similar with Pavo. Did intelligence agencies try to like say can you put a back door in VLC? >> Yes. Two of them.
[03:53:01] >> What what do you say? >> No. I was a lot less polite. >> I I see you're uh Yeah. Yeah. You're basically saying hell no. >> Like if we had to compromise our software, we would shut it down. This is clear. >> And what's the definition of compromise? Like allowing a government to do a back door. There is no code that gets into VC that we don't control. And the way we compile VC, you would call me completely paranoid. like we compile on boxes that are offline where we start by compiling the compiler. We do everything offline on on on places that have never been connected to the internet. Uh we the way we do signing there is double signature. Um especially because for example we've seen and we believe it's a it's a governmental agency that is not from uh the western world who tried to push a fake binary into our own servers. Uh, and that scared us a lot. And Vidolan is
[03:54:01] open source. How can you kill it? Like I moved to where, right? I moved to Malta. I moved to uh, I don't know, Cayman Islands. And I I change the domain name and I I start again, right? Like VC is a tool. Um, it's a tool that is going to help people doing things. Uh, we're not a platform. Um, and for patents, well, I'm sorry, but most of the patents, like you shouldn't be able to patent math and matrixes, like this is wrong. Does VLC ever like censor the kind of videos it can play and not based on the content of the video? >> No, never. We never do that because like a VC is completely offline, doesn't talk to any server. So, we don't know anything that you're using the software for. So again there's no government that can say you know like the French government come in and say we don't want uh I think anime is destructive to society we don't want any anime not
[03:55:01] allowed to be >> no they can they cannot do that and also what they tried is to say hey I want to know if that person watch that type of video and the answer is like no idea >> so no on that too so for surveillance no >> no no because the only infrastructure we have is a downloading infrastructure there is no telemetry in VC, right? >> It would be difficult because of the international nature. It would be difficult for you to incorporate that code because there would be someone in the UK and someone in Germany and someone in in the US as part of video and who' be able to see that it would be extremely difficult. The only thing 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 and the file is destructed or doesn't play in that version of VC could you help us right we never have access to the video it's like a normal support right oh it's really about playing the file >> yes and like I remember in the middle of the Afghan war right I received an email from someone in the army right I don't remember the grades right it was just
[03:56:01] like we have a big issue with the latest version of VC because it doesn't play correctly the file on an RTSP server that we have where there is all the the movies and he says VC is very important for the moral on the troop on the ground right because at night I think it might be boring right so they have a collection of videos to watch or movies over there right and and of course I did an update and I broke some support of RTSP right so I gave them another version just for them right because it was important and because VC is completely open source. I think it is allowed on the US army laptops, right? Because the I guess someone in in the in the US military actually looked at it and say, well, okay, this is okay, right? And the way we document how we process that was okay, right? So the only way we we we work with authorities is to help them uh doing support. >> That's amazing. That's really that's amazing story. Yeah, >> we don't see anything happening on how people use VC and this is strong. Do you
[03:57:01] feel the stress of this? So, first of all, millions of people using it. Second of all, the military using it, maybe sometimes pressure from governments. Does that does that that's a that's a small team, right? >> Yeah. >> How big is VC like the core contri? How many? >> Six. Eight. >> But and and and everything legally is only me. Everything that is legal is >> You're not stressed about this. I used to stress about that a lot. >> Yeah. >> But the thing is we're doing what we can for everyone for the greater good. We we work that we make some extremely complex technology easy for everyone. We a tool and every tool is going to be used for great things and for bad things, right? You you cannot blame a tool. Uh I think um and and this is like very important for us. Um I used to be a lot in a lot of stress. I'm not anymore. Right.
[03:58:00] >> What's the secret to your zen? I mean, o over and over in the chats I've had with you uh in the in the conversation today about every even tense topic, you're very zen. What's the uh what's the source of zen? >> I have um a way of um thinking about what is the worst case scenario always, right? And the answer is at the end if I take like like a chess player, right? In the end, am I dead? >> Yes or no? >> Right? And and I do that non-stop, right? And that's also how I do my my startups, right? Is that I'm here to get something great? What is the worst case? It got bankrupts. That's life. A company lives, a company dies. That's okay, right? Like, and so my my moral way is always like, am I dying in the end? Am I hurting someone? If I'm the answer is no, then too bad, right? Like, oh, some lawyers are not going to be unhappy. What are they going to do? Take all the money on your video land. Wow. They're
[03:59:00] going to have 50 grand. Amazing, right? What are they going to do with that? The cuts, the source code is out there. It's not stoppable. Also, because what we do is good and it's done for everyone. >> That's beautiful. Uh Karen, you you said that there's an active archiving uh preservation community. I think that's super fascinating. You 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. I mean, that's a beautiful way to see FFmpeg VC as a tool for preserving visual knowledge. Yes. So, one of the coolest communities um in open source multimedia uh mainly led by someone called Dave Rice. I'll give him a shout out I think from um City University of New York is the archiving community. They've done so much stuff that they they value that they value open source one because yes they lack budgets but two they see the fact that archiving
[04:00:01] video is important for the world and but being able to play that is a big problem. Um, famously in the UK there was a something called the the new doomsday book and they they archived lots of stuff on BBC microcomputers and within 10 to 15 years no one had the right software to play that. I think it was 20 years or something like that and someone had to go and reverse engineer this and that was 20 years. Imagine that in a thousand years. I think one of the the great things about ffmpeg is it's written in C. C is the closest to mathematics you're probably going to get. The closest to logic is >> Do you think in 10,000 years we'll still have C compilers? Yes, we have languages that exist that haven't changed too much. We have mathematic mathematical notation that exists. Um, it will be like Latin. C will be like Latin. It will be a thing that you learn from the past, but it will still be usable in certain contexts. Um, so the archiving community are really great practically. They they again limited funds. They funded the development of the FFV1 codec. So that's a lossless codec. So for so that the archiving community is
[04:01:01] really scared about the act of compression losing things. And this could this is they have a fair point in this, you know. >> Yeah. >> If they compress too hard, it could change the view of the material. There could be something slightly different here and there. So they're really concerned about things need to be not just compressed well, but lossless and be fast and and so they worked with FFmpeg to develop a whole new codec designed for fast softwarebased encoding. They're really concerned about resilience. So they if they're storing on tapes or other hard discs, I lose some bits. I need to recover quickly. I can't lose a whole GOP because I've lost a bit. Something like that. So they're a really great bunch of people. They funded GPU encoding in FFmpeg um to make FFV1 encode faster. And and it's really about preserving the world's multimedia heritage in a way that's usable. And there's there's a lot of great teams and a lot of archival groups across the world who who've chosen FFmpeg and FFV1
[04:02:01] as their archiving solution. And they can really provide us also super specialist advice. They can explain ah in the 1950s colorimemetry was done like this on this certain type of tape and so there is this special case that you need to handle and you'll never get this anywhere else. is they they know things on video like we don't >> like every time I talk to with a or the people from the British uh British film >> film it's just like every time I just learn something new and I've been doing video for 20 years they they have especially on col colorimemetry and and colors >> storage these other things >> I mean they have a deep deep appreciation of the content itself of the video itself and like especially when you're thinking lossless >> they're terrified of losing something essential about the thing and 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
[04:03:01] technology of the encoding and so on >> and when you enter the rabbit hole of film scanners right so you take those >> those things to make to digital it's like a huge topic that like would take another 5 hours of podcast just on that topic >> film and there's a lot of film film that needs to be archived film is degrading. It's maybe not stored in the right environment. The 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. It's done by other things. They go and teach, you know, in India they teach children to do to do FFmpeg commands. They're really great. They're really uh they're really the model community, the model ethos of what we're trying to achieve. that they 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 you know in a thousand years we may be
[04:04:00] drowning in AI slop this stuff needs to be important and you know archived well what was what was life like yeah it feels like capturing the 20th century and the 21st century is essential because it feels like a transition point where we went from scarcity of data to slop. Yeah. >> Oceans of slop. >> And that transition point is good to archive. >> People don't realize we are losing today a ton of films. There is a ton of things from the 30s, from the 40s and the 50s that were there is no value. >> And tape 70s and ' 80s there's tape and there's not enough tape heads in the world >> to read all the tapes >> to read those. So they have to decide what they want to archive and throw away the rest of the tapes. >> There's huge moral hazard I guess uh for one of a better phrase around this topic because this is a digital record of human history and they have to make decisions but and there's digital stewardship I suppose for one I made that phrase up.
[04:05:00] That's not a real phrase. um to make sure the world can have this information in in something that's playable by everybody, not >> playable on some device that well doesn't exist anymore. >> And then there's like realistically speaking, there's a needle in the haststack where there's a lot of value in in archiving all that footage and then over time finding the gems that we don't know are there. Hey, there was something in that corner that we just did, you know, and that would have been compressed away or some little thing. Oh, wow. There's something there. And that's they've made sure that it's lossless. They can prove mathematically that it's lossless. They can run different tradeoffs for if there's bit they lose a bit, a single bit flips. I can make sure that I only lose a portion of a given frame. We can do error rec they can do error recovery on previous frames. They can do all sorts of different things. Do you think uh VC and FFmpeg will be here 100 years from now? >> FFmpeg. Yes. >> Yeah. Yes. >> VC maybe.
[04:06:01] >> What's the future of where's where where is FFmpeg going? Where is VC going? Like in the next if you think about like 5 years, 10 years, 20 years. >> 5 years, 10 years is easy. The question is after that, right? >> Um the question is do we arrive at something called holograms? Right. >> Yeah. So will VC and FFmpeg expand to whatever >> yes >> multimedia. So multimedia might become sorry for the pod head expansion of topic but you know um if you look at something like neurolink 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 that's one then virtual reality of course >> you will have VC for neural link >> and you you'll have ffmpeg i input format human brain. >> Yeah, >> there's going to be codecs for the
[04:07:00] brain. >> Sure, 100%. >> Of course, I mean compressed neural information. >> Today there is like there are new codecs for for example what we call point cloud, right? Or voluometric videos, right? There is a ton of research on what we call RGBD, right? The codeex for depths that is useful for robotics and for 3D things. There is a ton of codeex for compression of 3D elements, >> compression for astronomy. For example, on VC, we also have already a VR and XR version of VC. And also on Kyber, right, we talk about Kyber. On Kyber, we also like do streaming of XR content on for the glasses who cannot have enough power or inside the Apple Vision or the Quest. Um, so we already work on uh streaming 3D, XR, interactive, low latency. There is something called Volutric video, point cloud videos. So, it's not stopping. And yes, at some point it will manage 3D data inside VT and FFMPE, right? It's obvious. >> So that's where it is moving like the community is open.
[04:08:01] >> Not everyone in the community sees that. But like as Kiran and I, we we entrepreneurs, we know where it's going. We we see that, right? >> So I I suppose that there is a tension probably inside FFmpeg is like, hey, listen folks, we're really good at doing video and audio. So like why expand? Like let's do the thing we're really good at doing. >> In order to answer that question, we need to answer the definition of what is multimedia. >> Yeah. >> And multimedia is a digital representation of several streams for the human senses and we will do that. Right? So imagine there is now a way to not have a mic but have a odor sensor and a diffuser of orers. >> Mhm. >> It will get into ffmpeg. >> So your demox yes of course your demoxer has a new track type that is basically right and
[04:09:01] you already have >> smell touch. >> It's like audio. You have a left and right nose track. You have a left and right audio pair. It's easy. >> Yes. Of course the stereo smell. >> Stereo smell. Yeah. >> So in VC for example we already have a plugin for optic. It's mostly for what we call 4D cinemas right you know those ones on hydraulic I don't know how you say that hydraulic arms hydraulic arms and where everything is moving like you have a in theme parks right and there is a data feed synchronized where which is basically transporting this information >> is there yet a standard for >> there are many standards right um >> this is you're making me so happy and so of course like we have a plugin which is not in the normal version of that is basically transporting those type of movements which is physical movements which is haptic movements right it is a a human sense so it will get in that's such an exciting future was it I mean it's a small community of developers how
[04:10:00] do you pull that off like if you're a contributor at ffmpeg or VC it feels stressful like it just looking on Twitter it's like it's it's a huge amount of work to make it work on all these different operating systems an incredible effort. No, see it in the other direction. We are not the contributors, we are the maintainers, right? So we maintain for everyone. Meaning that for example, every year there is around 150 people who contribute to VC and maybe 300 on FFmpeg. Right? Our goal as a small team is to get all the contribution in. So if there is more usage there will be more contributions and those people will do the right module the new format and so on. We care about the architecture of VC, the architecture of FFmpeg. Right now, we're doing things in FF in VC which is a special audio. Right? We did the demo not not long ago. There was
[04:11:02] changes needed on the architecture and we did the first special audio module when it's going to add the second one. It's going to be easy or the third one is going to be easy. Right? Our goal and going to be the same for orders or optic. Right? we need to work with the architecture. So that's modules can be added to add future capabilities. So yes, we are going we have multimedia framework. So that's not just audio and video. It's everything that is timed and represent something that you can sense. And if it's brain waves, it's going to be brain waves. >> I think that's inevitable. Sorry. I I love this on so many fronts because so FFmpeg and VC are pushing companies and pushing the world to standardize. So for example to standardize brain waves so standardize >> it's it would push like I hope Neurolink comes up with a standard for for multimedia
[04:12:00] via brain computer interfaces or for robots with haptic. By experience, what happens is always the same, right? You start, it's a new topic, there is like five different standards because everyone starts to do this, the hype goes down because every time the hype goes down, then people start say, "Well, you know what? We need to do a standard. People because two or three companies, usually not the leader, but the two or three followers do a standard and then we implement the standard and and then it's the end of the curve. it starts doing more pepper >> and then the leaders kind of pressured into it because it's better to do a standard >> example 3D audio right yeah six or seven years ago it was everything about 3D you had the cardboard on Android you had two two audio formats they're all dead right and now it's coming back with actual use cases and we learn from the mistakes of the past standard so it will be the same everywhere and not try to avoid closed I saw somewhere you you didn't have too
[04:13:01] many nice things to say about Dolby. >> No, I don't. >> What is uh Can you educate uh me on why where they went? What what what did they do bad that made you mad? >> It used to be an amazing company doing tons of great things with amazing engineers. They defined what sound was >> and now it's mostly lawyers and licensing things. >> Oh, so they're Yeah. They're they're closing stuff off. They're trying. >> It's just like they don't innovate as much as they did and so on. It's a bit like I'm sorry to say right like HP, right? >> True. >> Oh, since we talked about Twitter a bunch in a bunch of different contexts. Do you have a do you have a favorite you have and least favorite most embarrassing tweet on either video landf Twitters? >> The two my two favorites are talk is cheap send patches. I think that that embodies a lot of the >> stuff doesn't get as as we've talked
[04:14:00] about stuff doesn't get built unless someone does it. It doesn't just appear from the ether. >> Uh the other one that I like is um ffmpeg nothing is beyond our reach. I think that comes from a US military satellite patch where I think they they invented some kind of um monitoring system that could see the whole world and this was released. >> Wasn't there something where FFmpeg was running on a rover on Mars also? >> Yes. So ffmpeg is used by the Mars rover uh the Mars 2020 rover to compress uh pictures. Um they really wanted um they wrote a paper about it and they really wanted to use as much commercial offtheshelf technology as possible. Feneg runs on Mars. So we are >> we are a multilanetary open source library. >> Nice. >> Um very often we've seen um uh tweets for people using um VC in weird places. Uh a lot of the people doing Formula 1 ones are in all the paddocks. They use VC to play the live feed. Uh we've seen uh the European Space Agency. We've seen SpaceX like monitoring the the launches
[04:15:01] with with VC and like it's like fills you with joy, right? So >> I've seen uh particle accelerator. >> Oh yeah. Yeah. We had one of the most amazing thing that I went for was to go to the sand at the LHC because they were using VC to monitor all the captors on the ring because the ring is 27 kilometers and so they had some analog cameras >> and they were using some of the capture cards to go to analog to VC so VC could stream on their multiccast network for the whole CERN to access to that. Um and like I visited that in 2010 with Lauron and and and like we fixed their issue in an hour or something like that, right? Because was some parameters uh maybe not well documented at that time. And he said, "Okay, for the whole day, what do you want to do?" And we visited everything like things were with antimatter and and and and colliders and so on. And that
[04:16:00] was like one of the most >> amazing day of my my physic. Yeah, it's used like everywhere. Uh any any tweets? Uh Karen, you regret >> tweets of regret >> or is it like that? Well, how's the French song go? Regret nothing. >> Yes, that's very important for me, right? Don't regret anything. No, it's because regrets are attacks on your mind, right? So, learn from your mistakes, but don't regret >> because you've done it. So except if you have a time machine to go back in time, don't regret, right? It's going to just tax your brain. Learn from your mistake. Sure, don't regret. It's like it reminds me, it's beautiful. It's a tax in your brain. Reminds me of the Johnny Depp quote I saw where he was saying hate, you know, I don't hate. That's hate is a very expensive emotion. >> Are you comparing me to Johnny Depp? Because that would be your first one.
[04:17:00] Well, gentlemen, like I said, I'm internally grateful for the the software that the two of you and the bigger community have been part of building with FFmpeg and VC and everything else. I'm eternally grateful for the spicy tweets. Never stop. And I'm grateful that you would uh talk with me today and give me this sexy hat. I feel like a wizard. I feel special. Um, and I feel special to get a chance to talk and celebrate the piece of software that brought me so much joy over the years. So, thank you for everything and thank you for talking today. >> Thank you for having me. >> Thank you so much. >> Thanks for listening to this conversation with John Baptist Kemp and Kieran Kuna. To 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. And now, let me leave you with some words from the legendary Lionus Tvalds. Most good programmers do programming not because
[04:18:00] they expect to get paid or get edgulation by the public, but because it is fun to program. Thank you for listening and hope to see you next time.