We had to learn a lot, and it was really hard. This was like early days of YouTube, really early days of online video, and I had to build a video transcoding backend. I didn't know what video transcoding was, I didn't know what a video codec was, but I had to figure it out. I just wished there was a product out there that I could have bought instead of building it myself. And that was really the inspiration for me getting into video technology. I felt the need firsthand. There's so much work that goes into software development to make software easier, but it's still fun to dig into a really, really complex problem. Part of what makes video so hard is that it's actually not one hard problem. It's like seven or eight hard problems that all have to work together to make a video play. My name is Jon Dahl. I'm the co-founder and CEO of Mux.
This is Code Story, a podcast bringing you interviews with tech visionaries who share in the critical moments of what it takes to change an industry and build and lead a team that has your back. I'm your host, Noah Labhart, and today how Jon Dahl created the Developers API, enabling them to build streaming online video. All this and more on Code Story. Jon Dahl was a philosophy major in college and eventually obtained a graduate degree studying theology. He thought he would go into academia, but he quickly figured out that he needed to make money as well. So he started a dev shop and taught himself how to code. He's married with two kids in their teens and a 21-year-old cat who, believe it or not, is not playful. While he was running his dev shop, Jon took on a project that required him to build a video transcoder. He learned a lot, and this served as the catalyst for him to pursue building the product that he wished he could have bought while devving this project. This is the creation story of Mux.
Mux is a video infrastructure platform for developers. So we solve the hard parts of what it takes to stream video online, and we do it via cloud APIs and via open source SDKs. Think of something like AWS for video. So it's a suite of infrastructure to help software companies build with video. I started Mux because a few of us had worked in the world of video technology for a long time. I actually built my very first video project in 2007 when I was running a little dev shop back in the Midwest, actually. And we got hired by someone to build a video website. We had to learn a lot, and it was really hard. This is like early days of YouTube, really early days of online video. and I had to build a video transcoding backend. I didn't know what video transcoding was. I didn't know what a video codec was, but I had to figure it out. I just wish there was a product out there that I could have bought instead of building it myself. And that was really the inspiration for me getting into video technology. I felt the need firsthand. And I also knew video was going to grow. It was an exciting technology that, you know, 2007 had a lot of growth in front of it. I think today still has a ton of growth in front of it.
I would imagine the engineering problem behind building a transcoder was fascinating and terrifying.
Yeah, it's a properly hard problem, which I think is actually really fun. I think sometimes I think there's not enough hard problems left in software. There's so much work that goes into software development to make software easier, which is great. It's important because it makes everyone more efficient. But it's still fun to dig into like a really, really complex problem sometimes. And video is one of those. And I think part of what makes video so hard is that it's actually not one hard problem. It's like seven or eight hard problems together to make a video play.
Tell me about the MVP. So that first product you built, how long did it take you to build? And what sort of tools did you use to bring it to life?
The first product we built was, this is before Mux, was a company called Zencoder that was an API to video encoding. So it was kind of like a small part of what Mux does today. It was just the video transcoding piece. The MVP at Zencoder, it was a couple of systems that we built, a kind of distributed job queue would take in requests for video transcoding and then a distributed set of workers that would grab jobs off the queue and run a transcoding process and then notify the customer that was done. So I think there's actually a really interesting contrast between the MVPs at Zencoder, my last company, and Mux, the current company. At Zencoder, we built everything in Ruby and Ruby on Rails. It was a very pragmatic system. You wouldn't think about building a a distributed compute platform in Ruby. But Ruby is a very fast language to build in. We were able to do a lot with a very small team. We built a system that did transcoding for thousands of customers, and I think we were like eight engineers. It worked really well. And then if you push it too far, it would start to run into product challenges. At Mux, we kind of did the opposite, where the MVP of our Mux video product, which is sort of the... You think of it as an expanded version of what Zencoder does. It doesn't just do transcoding. It does everything end-to-end from video in to video out. So it's video ingest and storage and processing and captioning and transcoding, all that. So the MVP at Mux, we actually really tried to build the system that we would want at high scale. So we built in a way to be multi-region and multi-cloud from day one. We built as a well-factored set of microservices. Everything was largely built in Go. really well-designed and well-thought-out system. Early on, I think that actually probably slowed us down. So early in the life of Mux, we probably would have moved faster if we had just gone the quick and dirty, you know, more monolithic approach. But as we've scaled, we've really benefited from having architected the system well. And I think our velocity now is higher. And I think our velocity in two years is going to be way higher because we're not going to have this bad monolith that we're struggling with how to get out of.
It's always the balance of, like, do we build it? quote unquote right right now or or do we build it fast right and then and then rebuild and and refactor and you know pay off that technical debt exactly with with any mvp you've got to make certain decisions and trade-offs right and you highlighted some of those but dive into some of those or maybe one of those you know one of those big the biggest decisions and trade-off you had to make and how you coped with that decision
so i think one of the interesting things we did at mux We built a system that would handle both on-demand video and live video from day one. At Zencoder we didn't. Zencoder was built entirely for on-demand video. You'd upload files, we'd transcode them, and then you could play them back. We added live video later to Zencoder, like two or three years in. Live video itself is just exceptionally hard. If you've ever worked with live video, video's hard. Live video's like ten times harder. Bringing live video into an on-demand system was hard. You know, it was you kind of ideally would architect a system differently for live and for on demand. And so there were just some challenges with that approach. At Mux, we decided to architect a system from day one that would handle both live video and on demand video, which, again, was harder. It took longer, but it was absolutely the right decision. So we have a system that just beautifully supports both modes of video. It's seamless to go back and forth between them, which is really kind of unique. And it was a hard challenge, but we just had real conviction that it was the right thing to do. So we were willing to take a little extra time to do it.
From that point of the MVP, so let's stay there, the MVP. And you've made a lot of architectural decisions, obviously, to build the right way. Maybe it slowed you down a little bit, but you're happy with that now. But from that point, how did you progress the product? And how did you mature it? And I think to put that in a box, what I'm looking for is how did you build your roadmap? How did you go about deciding, okay, this is the next most important thing to build?
I think the primary inputs there are, one is just listening to customers, spending a ton of time with customers. And then two is what's our vision? So I think the way we try to do it is one is always be clear about the vision. We want to know where we're going. What do we want this thing to look like in five years? What are really important competitive and strategic advantages that we want to have? So identifying those. And then on the other side, spending a lot of time with customers, understanding their workflows, understanding what they're trying to accomplish. I think those are the main inputs. And then even within there, sequencing is hard. For a product like ours, at least sequencing is one of the more challenging things because there's a lot of things that we want to do. So I think it's just sort of being pragmatic and making good decisions about what most people need, what's a must-have versus nice-to-have. Sometimes people will ask for things, but they don't really want it. Like I'll say we've actually shipped features that were hard and everyone's like, oh, I'm glad you shipped that, but they don't actually use it, which is something that you want to avoid whenever possible. So I think really understanding why someone wants a feature is really important. You
said something that piqued my interest, the competitive advantages that we want to have. Tell me a little bit about that, because I hear a lot of people talk about, you know, this was our competitive advantage or this is our competitive advantage. But targeting what the competitive advantage is and then going to build it.
I take a lot of influence from a book called Seven Powers by a guy named Hamilton Helmer. I've read a few books on strategy. I tend to think most business books are kind of dumb. They're badly written. Maybe one paragraph, you could probably get all the insight out of the book. This is a book that's actually really excellent on just sort of the fundamentals of what strategy is. He talks through just a lot of 30 years of study and analysis about seven competitive advantages that companies can have. and everyone who ultimately builds something great is probably tapping into one or more of the seven. So that's kind of my framework. The way to think about it is, you want to build an advantage where you have a benefit. You actually have fundamentally a better business because of this. And that shows up in increased market share or increased profitability. There's also a barrier that means everyone else can't do it. So if you build a great product and you design it well and it's beneficial to customers, but everyone else can just copy you, then you don't actually have a real strategic advantage. You need to find the places where you can do something that's beneficial and other people can't, or they have trouble if they want to replicate that. So for us, the two main advantages, and there's a few others that we can maybe tap into, one is scale. With a really hard technical problem like video, the bigger the scale you operate at, the stronger you are. And that's for a lot of reasons. It's because of just fundamental cost reasons and reliability and some of those kind of things. And then it's also because we can build hard features and we can get those same features to thousands of customers. Whereas if we only had 10 customers and we had to build a really hard feature, the feature is just as hard, but we only have maybe 10 customers who are benefiting from it. It's much more powerful to build something for a larger set of customers. And then the second one is product stickiness. If you feel the product well, it can be hard for people to want to leave. Even if something came along that was just as good as us, which hopefully will never happen, but if it happened, people are bought in, they're deeply integrated into their workflows. And so that gives us an advantage of stickiness.
So let's switch to team then. So how did you go about building your team? And what did you look for in those people to indicate that they were the winning horses to join you?
I think there's kind of two chapters in that story for us. I think when we were really small, and this is probably up to about 20 people. First, we mostly hired people that we'd worked with before, either first-hand or second-hand. So having worked in the world of video for a long time, we knew who a lot of the best people were. And we really just looked to hire the absolute best people. Engineers, that was largely people who were excellent at the craft of video engineering. But this is true in other areas, too. We looked to hire the best folks in marketing and sales operations. And so that's what it was early on. It was people we maybe had some relationship with. And then as we got bigger, maybe crossing 40 people, we kept that. But we also started to think really hard about behavior and values and how to execute as a team. And the reason for that is when you're 10 people, individuals just have such an outsized impact. Like having an exceptional individual is just really, really powerful. But once you get bigger, you actually care a little bit less about the individuals and you care more about how well the teams function, how well people work together. because execution at scale is a team sport. It's not an individual sport.
So then I kind of know how you're going to answer this next question, but I'm going to ask it like you haven't told me anything about scalability, right? Did you build this to scale efficiently from day one, or have you been fighting this as you grow in any sort of way or fashion?
I'd say we built a system that we intended to scale from day one, but actually scaling it is something that you do month to month, year to year. So the first part is just acknowledging that if we build this product and we ended up with 100 users or if we ended up with $10 million of revenue or whatever, that would ultimately be a failure. That would ultimately not be what we were aiming at. That could be great for another business or another product, but we were really intentionally trying to build something at a different sort of scale. Given that, it was actually less important for us to get as quickly as possible first million dollars. And it's more important for us to get as quickly as possible to that first hundred million dollars. So we really set out with that intention of scale, but then actually scaling it. People in software talk about premature optimization, and there is some truth to that. You can't actually fully optimize until you've actually run something in the wild. You don't know necessarily what the bottlenecks are going to be or what the issues are going to be that you run into. You can design by avoiding the things that you know would be scale challenges, but you You only find some things by actually doing it.
So as you step out on the balcony and you look across all that you've built, what are you most proud of?
I think two things. I guess, thinking about it, both are kind of human things or people things. One is the team that we've built. I think we have an incredible team. I think we have a really great culture. And that's just really exciting and really motivating. Like, I'm excited to go to work with these people. The second would be happy customers. I think when you're a startup, there's nothing more motivating than customers who are excited about what you've built. And so, you know, the technology is great. Like, you know, whatever. It's great to grow revenue and all those kind of things. But really, at the end of the day, it's like, how many customers are we making happy? And how proud am I of our people and our culture?
I love that answer. It's so rewarding to build great technology, but to build a team to deliver something is incredible. And to watch people grow in doing that is so, so rewarding. Yeah,
totally agree.
Well, let's flip the script a little bit. So tell me about a mistake you made and how you and your team responded to it.
one of the one of the biggest challenges with our business actually is just the breadth of technology that we have to cover and we went really quickly from one product to two products so i talked a little bit about the mux video product we actually have a second product which is called mux data which is an analytics platform for video so we monitor video at scale for larger streaming platforms we've been the streaming analytics for like the live stream for three We do billions of video streams a month. So these are both really hard problems, actually. Streaming video and also video analytics. And we were about 10 engineers when we had both products, when we built both products. And so I think we did it for a reason. I don't know that I would actually make change that decision. But maybe just the challenge or the mistake there would be how wide of a footprint that was for those hard problems. So there was about a year where we actually didn't ship a lot of forward features. We were just scaling things. We were just optimizing these systems, keeping the lights on in some cases. And so maybe the mistake there would be being a little bit overambitious with what we could do with a small team. And what we did was we tried to really first just really narrow our focus to say, what are actually the most important problems that we need to solve? We can't do everything, and actually we can't do that much with a 10-person team at this point. And then second was just really intentionally saying it's time for us to grow. So we need to go and raise more money. We need to grow the team from 10 engineers to 50 engineers and build our team into the size of the surface area. One learning that we had early on is we, I said earlier that we built our system to support both live video and on-demand video. And that was an intentional choice. It was hard. hard live videos, especially complex on-demand videos hard enough, but we're like, no, we're going to, we want to support both modes of video. And that's kind of how we thought we thought there were two kinds of video in the world, live video and on-demand video. And then in the back of our minds, there was this other type of video, which would be real-time video. Think of like zoom, that kind of synchronous video where you're literally talking to someone or FaceTime or those kinds of things. And we didn't really think about that type of video. And the reason was the the technology is totally different. Like the technology behind a Zoom call or a FaceTime call or something like that has very minimal overlap to a live stream or like watching a video on Netflix or whatever. And so we were like, yeah, we're a streaming video platform. We're not a real-time video platform. But the mistake there was our customers don't know the difference. Like the whole mission of Mux is to democratize video. We don't think you should have to be a video expert to stream video or to build with video. We don't think developers should have to know the difference between WebRTC and HLS, or between video delivered with a CDN or with STUN and TURN servers. So it was a learning just by having customers ask us over and over, hey, why don't you support real-time video? And we know the answer because we're the technical experts, but the customers don't know the answer. So we realized if we actually want to be a video platform for developers, and if we actually want to democratize video, then we have to expand our footprint to real-time video as well, even though it's technically different. even though it's another hard problem. It's the only way we can really live into our mission.
So what does the future look like for the product and for your team?
So this year we are, there's a big focus on launching a few new products. So we are launching real-time video that just has launched this month in May. And we are launching a video player and a video studio, as a way of running a live stream or capturing video in the browser. So you can actually build an application around, like a web application around capturing video. So we're kind of expanding the surface area of the product a bit more this year. The next step after that, now that we've done that expansion, is really just going to be going deep into hardening the infrastructure and scaling, focus on quality of the video, the quality of experience, and the global performance. Just sort of those core attributes of like security and performance and scale and reliability. that are just so important for an infrastructure platform. So that's a lot of what we're doing on the product side this year. For the team, we're growing. We're distributed at this point, so we're about half the company's Bay Area, half is not. And we have a growing office in London, which is our European presence. So keep growing across the board, different teams, different locations.
Exciting times. Product launches, just having a live video, that's really great. Super excited about that. I'm curious about your experiences on, you know, and office teams. Tell me about your perspective there. Obviously you have a distributed team, but, but tell me a little bit about that.
Yeah, we started off being office centric culture and we were a little dogmatic there. We were actually like, we, for, for the first couple of years, we were like, we want everyone to be in the same office, which has advantages. It has advantages in terms of building relationships with your team and communication, those kinds of things. But even before the pandemic, we started hiring remotely. So we hired, our first step was to hire in London. So we hired a great lead of a European team, just because we have a lot of customers in Europe. And then we found a couple of great people who we just couldn't say no, even though they lived in Portland and Minneapolis and elsewhere. And so we started growing in different locations. We had one team member move to Tahoe. And then the pandemic hit, and we just really decided to lean into distributed work. And so it's actually gone well, I think. I think there's obviously pros and cons to both approaches. One of the advantages of distributed work is you have to work that way at scale anyway. Like when you're 20 people, you really can sit around a table, and you really can work that closely. When you're 200 or 2,000, you can't. And you have to lean into some of the ways of communicating asynchronously, communicating through writing, finding ways of really intentionally building relationships as opposed to letting them just happen accidentally around a cup of coffee. I think the biggest con is not everyone knows each other quite as well. But even there, there are ways to work on that. And so we really focus on travel, bringing people together, off-sites, virtual events as well, which were really fun at the beginning of the pandemic, but kind of lost their charm maybe for some of us maybe a year in, but can still be important.
Well, let's switch to you, Jon. Who influences the way that you work? Name a CEO, CTO, and architect, really any person you look up to and why.
So I think my earliest influence would have been the Y Combinator community, Paul Graham and others. So I read Paul Graham's essays in 2006. We did Y Combinator for actually both companies, both for Zencoder in 2010 and Mux in 2016. And I think there's a lot of great startup wisdom. Focus on customers. I think the YC mantra of make something people want is just super simple, but it's kind of brilliant. I think another early startup influence was a guy named Steve Blank. If you've heard of the lean startup movement, he kind of started it. Someone else popularized that term, but he kind of started it. My favorite startup book early on was a book called Four Steps to the Epiphany, which is his kind of roadmap, honestly, for building a product that customers love. I'm kind of skeptical of business books. I love to read, and it seems like the average quality of a business book is maybe lower or the average quality of a great novel, or another great book. But there are some really good ones. My favorite author there is a guy named Patrick Lencioni. His most famous book is Five Dysfunctions of a Team, which is just a really excellent book. It's an excellent model for team health and building productive, healthy teams. And a lot of other stuff he writes is really good. And it's largely focused on building a healthy company as a way of building a successful and productive company.
So we talked about a mistake earlier, but a little bit different spin. If you could go back to the beginning, what would you do differently? Or where would you consider taking a different approach?
There's a really interesting thing where when we started the company, there were three core products that we wanted to build. We wanted to build video analytics, we wanted to build video streaming, and we wanted to build a video player. And now, six years in, we've built all three. But we could have sequenced them differently. I don't know if I would actually change the order, but I think based on hindsight, it'd be worth scenario modeling a player first and then data second and then video third or video first and a player second and data third or something else like that. So I guess I don't have an exact answer, partly because the decision is made. So there's not a lot of use in second guessing it. But I think that high level sequencing, so we knew largely what we wanted to build. We knew who we wanted to build it for. But prioritization and sequencing is still a really, really hard problem.
Well, last question, Jon. So you're getting on a plane, and you're sitting next to a young entrepreneur who's built the next big thing. They're jazzed about it. They can't wait to show it off to the world. They can't wait to show it off to you right there on the plane. What advice do you give that person having gone down this road a bit?
The first bit of advice is something that probably that person has heard before, but you can't say it enough. And it's really spend a lot of time with customers, really deeply understand customers. is if you have a demo and you show it off to some customers, you're going to get like 10 out of 10 people who will nod and say, oh, that's good, and they'll say nice things. But that's just because people generally want to be encouraging of a young entrepreneur. What you really want to find is real passion. You don't want someone to say, oh yeah, that looks good. You want someone to say, that would change my life. Can I buy it tomorrow? I've built an awful workaround for this problem, and this would be so much better. You really want to find passion. And so actually spend time with customers, but also spend time with customers with self-critical eye. Make the customers convince you that what you're doing is the right thing. And I think that lens will help you find the real hard problems and the real things they need. And then maybe on a personal level, I'd say also make sure that you're scaling yourself. If you're a startup founder, you have to do really different things when you're one person or five people or 20 people or 100 people or I assume 1,000 people, although I'm not there. And your ability to grow to the next stage is really impactful for the business. So invest in yourself, invest in your learning, make sure that you are able to scale along with the company.
Fantastic advice, Jon. Well, Jon, thank you for being on the show today. day. Thank you for telling the creation story of Mux. Yeah, thank you. And this concludes another chapter of Code Story. Code Story is hosted and produced by Noah Labhart. Be sure to subscribe on Apple podcasts, Spotify, or the podcasting app of your choice. Support the show on patreon.com slash Code Story for just five to 10 bucks a month. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.