Code Story · Transcripts

S5 Bonus: Rendering at Scale: How VEED.io Built a AI Web-Based Video Editing Platform with Timur Mamedov

June 17, 2021 · 36:59
Listen to the episode Download .txtDownload .vtt
Timur Mamedov

But the next day we made a plan and our plan was to get paying customers and come back to YC and show them that we've got some customers. And that's exactly what we did. Spent all day on Saturday just programming. Suddenly we just had customers coming in.

Sound bite

That was crazy.

Timur Mamedov

And on Monday at 9 a.m. we sent them an email saying, hey, look, we've got 20 paid customers. Are you going to reconsider us? We were really sad when they said no. A year later, we were at 100K ARR. A couple of months later after that, we were like at a million ARR. And bloody hell, what a ride that was. My name is Timur Mamedov. I'm co-founder and CTO of VEED.io.

Noah Labhart

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 lead a team that has your back. I'm your host, Noah Labhart, and today how Timur Mamedov built the easiest way to edit your videos with one click online. All this and more on Code Story. Timur Mamedov grew up in Russia within a very loving and supportive family. His dad was an entrepreneur, so he knew someday he wanted to do the same, or at least have some sort of brand. His mom gave up everything to support her children, and he's very grateful for that. He was a creative kid. He kept to himself with millions of hobbies, including graffiti, which was a way to escape and express himself. At the time in Russia, there weren't consequences attached to painting, and Timur got quite a rush from it. He found himself hacking PlayStation portables at a young age and introduced him to programming. During his last year in university, his world got flipped upside down when his dad's business went under. Immediately, his family dropped into poverty and his relationship to programming became about survival. He started attending hackathons as much as he could and he met his co-founder, Saba, who helped him learn how to make money contracting. They hit it off and have been through so much together that they consider each other brothers. One day, they got fed up with the complexity of video editing software decided to disrupt it. This is the creation story of Veed.io.

Timur Mamedov

Veed.io is a simple online video editor. We really think that editing videos and working with video in general should be easy. For some strange reason, we quit our jobs and invested all of our life savings into building it and to make it happen. And that's exactly what we're doing today. started building the product we didn't really intentionally start building it we kind of fell into all of that and I was in university at the time doing my final year project and Saba had a job and you know if I'm being completely honest I always wanted to drop out from uni but I couldn't because if I did I would lose visa and be deported but in my final year we had to write a dissertation project. You could choose your own topic, whichever one you wanted. So naturally, Saba and I wanted to kill two birds with one stone and, you know, use it as some sort of as an opportunity to build a startup. So we brainstormed some ideas. It had to be an idea that has enough scientific weight to it to be accepted, but also it should have been fun or cool enough for ourselves so we could enjoy it really. We eventually came up with something and I ended up writing a project that was called Veed AI. I think it was called, if I remember correctly, automated generation of video summaries from news articles. I think that was it. So the basic idea, the basic premise here was to basically create an AI system that takes your LADbible, BuzzFeed or any other news articles and turn them them into short bite-sized informational videos, but long story short, it failed. Simply put, no one wanted it. There were many other reasons, but no one really wanted the product. But I would say this part of the story is still a few steps away from us trying to build an actual MVP for VEED.io we know today.

Noah Labhart

Well, let's jump into that part of the story then. So tell me about that MVP, how you went up to it, how long it took you to build it, and what sort of tools you used to bring it to life.

Timur Mamedov

It's going to be quite a story, I think. It took us a long, long time to get to an MVP. And I think we've had, I'm going to maybe talk about three, four MVPs, but we had a lot of MVPs, maybe seven in total. We had to rewrite our code base entirely multiple times until we basically found the solution that eventually works. And, you know, you may have heard us say that we've made every single mistake in the book there is. And, you know, we really did. These mistakes have cost us hundreds, maybe thousands of hours of wasted time after we realized that certain approaches weren't really good enough or we were starting over and over again. But first things first, we didn't really know anything about video or video editing at the time in general. So we just first started educating ourselves about what videos actually were, what the frame rates are, what the frames are, and all that jargon around video editing. And I think once we had a good idea of what video editing was, the fundamentals, that's when we really started. We basically had two big challenges. The first challenge was how do we create a back-end that could create high quality custom videos? And second challenge was how do we build a graphical user interface front-end that would accurately emulate the final result that comes out the other end? So essentially we had to make two renderers and two systems in one and that's a big challenge. So to make things simpler we decided to focus on the back-end first. And the biggest question really we wanted to answer at the time was, is it actually possible to create high quality videos programmatically with open source software, basically? And yeah, it turns out, yes. But it took us a while to really figure out which technologies really were working better than others. We were really scared of over-engineering our tech stack before knowing if anyone could or would even use it. So we decided to build our own MVP using Processing. And Processing is, if I remember correctly, it's a Java-based creative coding toolkit. It's really simple. It's got loads of features right out of the box. And it just felt right working with it. It kind of almost felt like the perfect solution at the time. Unfortunately, though, we really struggled to push it further than making decent GIFs, I'd say. Something that was immediately obvious about it was that processing took a lot of time to create videos. A few seconds of video would take nearly five minutes or more to complete the task. But I think the biggest issue really was that we really couldn't integrate seamlessly with processing with our front end. It took us about two months to realize that and we scrapped it all and basically started all over again. And since our biggest problem at the time was that we couldn't really seamlessly connect with frontend, we thought, well, why can't we just run our frontend on the backend? All we needed to do at the time is to build a frontend preview in the browser and then run basically the same browser preview headlessly on our server and record it. And what we wanted to achieve is to basically have users upload their video and once it is displayed in the editor, allow them to add extra layers to it with CSS and HTML. So for example, if you wanted to add text, you would use some absolute positioning and just place it over the top. Essentially what we do after that, we would take this editing that was done on the preview side, replay it on the backend and record it. In order for us to be able to do that, we needed a headless scriptable browser. And there are many out there. There is Puppeteer, there is PhantomJS We basically ended up using PhantomJS because that's what we knew from previous projects we've done. And it just was perfect for us. And at first it was brilliant. We didn't have to write two systems at once. And we built quite a lot of features actually. Adding text amongst many others. As you're probably expecting, we hit another plateau. toe. The biggest problem now was that despite how effective Phantom was to get us to a certain usable point, we really weren't able as developers to get finer grain control over the frames of the video. And what I kind of mean is specifically PhantomJS is only able to record browser content with one second intervals, giving kind of a decent gif and not really a video. You could have multiple and only say after four frames it would record it and that's obviously not ideal. We had to basically figure out what's the best solution again and you know on top of that another problem that we had with Phantom if I remember correctly is we'd have to replay the video entirely on the back end for it to record really and we still had issues just like with processing with audio it was incredibly hard for us to stitch it. We considered some possible But at the time, I feel like we came to the right conclusion. We thought that it's just not working out. And bear in mind, by the way, while we were doing all of this, we were running out of cash. So we were also tired of making mistakes like that. And, you know, to be fair, it was probably my fault at the time because I was programming too fast and not thinking enough, maybe ahead of time. And, you know, at this point, we just really realized that there is no easy way to do this. Seriously, maybe we just need to have a long MVP cycle. So we're kind of scratching our heads, right? And started looking for another solution that could work. And we've noticed that there were already quite a lot of video editing websites that let you create high quality videos easily. Much better actually than what you can do today really with VEED. The only issue that is that these videos would be part of a rigid template that you can't really modify or change. wasn't really scalable. And the way those websites or those services operated is they used Adobe After Effects or Adobe Premiere Pro SDKs behind the scenes with high quality predefined templates. But the issue is that you really can't change these templates too much. You could add a bit of text or change a bit of the dimensions, but it didn't really have the full creative scope. And you know, here's the thing, when Saba and I, we were creatives, we were building VEED for ourselves and what we wanted is an editor that could give you freedom to express yourself in whatever way you you really wanted and quality is something that comes with time so we weren't really afraid about putting in work and and i think now at this point is when we started building our mvp properly if you're a developer and you've ever been remotely interested in video editing space, chances are you have most likely used or at least heard of FFmpeg. FFmpeg is just an amazing piece of technology. It's a complete solution to do so many things with video, converting it, streaming it, the list really goes on and without it most of the video editing browser tools would even exist today. So after all our failures up to this point I think we came to a pretty tough You know, if we wanted to build a high quality video editing software, you know, it had to be done in such a way that gave us the most freedom to modify and expand on our software, really. And that's also kind of meant that we really needed to properly roll up our sleeves and prepare for a long build cycle. And we'll probably run out of cash again trying to do it.

Noah Labhart

With any MVP, right, you have to make decisions and trade-offs, and you indicated a bunch of those. Through that process of rewriting it, using C++, getting it to work, discovering using FFmpeg, tell me a little bit about some of those trade-offs and specifically how you had to cope with them. As far as like, we're going to take on this technical debt, or we're going to cut this feature for now. Tell me about some of it from that perspective. active we

Timur Mamedov

were racing against time. We didn't have investment. We, we couldn't get investment because nobody would give us any money. Nobody really believed in us. So I had some cash in the bank, Saba had some cash in the bank, not that much, maybe like two months left. And so forget about tests forget about good practices just write code as fast as you can and just try to get to that to the point where something is working. And, you know, difficult trade-offs, I think, just like I said, we had loads of them. Do we go a little bit hackier and kind of compromise or do we not compromise but prepare ourselves for a long build cycle? That was one. Also, the beginning, Saba was helping me code everything. It's not like he's not a technical founder. He also knows how to program, but, you know, at some point he had to peel off and do marketing. a huge decision because now it was just me on my own. You know, Saba had to figure out how to get the word out. We just kept pushing really and we did run out of money of course. That was probably the last time we ran out of money but I remember vividly how I just got this job and Saba got a a job a few months later, but I would wake up at 5am in the morning, code until 9, go to work, code until 5 at work, come back and meet Saba again and code until 11pm or like midnight and just keep going. That was pretty much three, four months how we used to do things until we even saw any sort of traction really. really. I remember at some point, I came back home and I think I just collapsed because it was just so much work. I'm not trying to paint a really scary picture of how it was building VEED. It was actually a lot of fun most of the time, but it was a little bit tough at the beginning. And then, you know, once traction started, it's one really thing started to kind of slow down a little bit and it became a little bit easier.

Noah Labhart

Okay, so from there, you've got your MVP, you've done your trade-offs, but you're starting to build your MVP, you're starting to get some starting to see the light at the end of the tunnel with Veed. Tell me how you progressed the product from there and how you matured it and how you built a roadmap deciding this is the next most important thing to build.

Timur Mamedov

I'm not sure if it's a strange thing to say, but we didn't really have a roadmap for a long time. I think we're still working on our roadmap, but I think in my defense, I'd say that we didn't really need the roadmap at the time because the product was building itself. We built the first version of the product. We thought it's going to be special effects or some other cool stuff or drawing pen tool that's going to be the number one hit. It turned out that it's not. We just listened to customers and they told us, hey, we really want to do this and or do that. We've noticed that our customers were using our clunky text tool to add subtitles and that obviously confused us. There is an easier way of doing it. We added subtitles as a separate feature. And that's kind of how we kept going. We kept just iterating over what customers have been telling us. I know that maybe in hindsight, we should have been more data-driven, but we were very gut-driven and speaking to customers on a daily basis. I think for at least three, four months, that was Saba's full-time job. My full-time job was just to fix bugs, make sure that servers are up and running, out features as fast as we can. That was kind of how we defined what we need to build and how the roadmap should go but I think nowadays we're taking it a little bit more seriously. It's gotten to the point where you know it's not just me and Saba now, we've got an amazing team of people and they're all incredibly smart and talented and most importantly they just care and we need to be aligned and I think that's kind of what we're trying to figure out. survived, and we were, we were dealing with survival for a long time, but we just listened to customers. That's all we did. That's basically why we didn't have a roadmap. We, we had so much information coming in from emails and, you know, bug reports, and my email was flooded with fix this, do this, and where, where is this feature, and your, your website is buggy as hell, and, um, you know, so it's pretty evident like if you get hundred emails about certain thing not working then you just know what to work on and it's kind of what guided us to this point but I think as you grow it becomes a little trickier to figure out exactly what you need to be working on what's the best use of my time it always expands as you become a bigger operation and you know a larger team so

Noah Labhart

in those early days when built your roadmap, you're starting to grow. How did you go about building your team? And I'm interested in, you know, what you looked for in those people to indicate that they were the winning horses to join you.

Timur Mamedov

That's my favorite topic. When we first started VEED, I just had this idea that, you know, Saba and I are just going to code some stuff and, you know, we're going to make some money and it's going to be all great and we're going to have fun. But I didn't realize that actually a big part of fun journey is meeting these amazing people that come on board and there are just so many people who care and want to help you. How did we get such a good team or how did we look for people that really matter? I think it really changes as your company grows. You might have different strategies, but I think there are core principles that are still the same. and you know Noah I think you might really resonate with some of that if you have a really amazing candidate coming through your doors you really know about about it straight away you just know that person is the right fit the rest of the interview process kind of becomes a bit of a formality maybe to just check a few details for us I'd say a perfect candidate someone who is really really passionate about the idea and really cares and believes in what we do. Simple as that. You know, we want really good humans first and foremost. Everything else is secondary. There are a couple of things on a technical side that I think really have worked well for us. We did in a few steps. We obviously check CVs. And if somebody seems to be quite good, we interview them in a first kind of first contact is kind of a verbal technical interview. We call called a macro skills test. And you know, I've learned a lot from being grilled by YC, being in a YC interview, how I think I should be interviewing candidates who come in through our doors. So like questions like, what's the hardest stuff that you've built and tell me exactly how you built it. You know, all this stuff, it doesn't really matter what you ask, but I found that the best candidates leave me feeling after I leave the interview that they've taught me something or I've learned something and they're pushing the bar, I feel really energized talking to them and really excited coming to work. That's really what worked for us a lot, I think. Somehow that we got lucky and we met Vilko and Matej. They're still with us today and they're amazing engineers, you know, and it didn't matter the fact that, you know, the interview process was pretty crappy. Nowadays, it's a little bit different. We have several steps of interview process and I think Most recent additions was a verbal technical test. And that's something I really enjoy personally. It's something that I reflect on my experience going to YC and going to interview at YC when I never actually went. We got kicked out. I just remember being grilled with so many questions with many YC partners trying to get to the truth of what we were doing. And that's kind of how we approach a lot of interviews today. day we ask hard questions

Noah Labhart

Let's flip to scalability. Did you build this to scale efficiently from day one, or are you kind of fighting this as you grew?

Timur Mamedov

No. we weren't really building it to scale it was um our whole mantra was we were building it to make to survive you know scalability is something we were fighting all the time as we grew initially, you know, it was just simple as let's check Firebase on, put some, you know, simple SaaS tools together and, you know, we don't have to worry about anything. It's just Saba and me and, you know, easy peasy job done. As soon as our team started growing, as soon as more people started to join Veed, you know, we started improving our tech stack and replacing hacky and not so optimal pieces of software, We're just kind of like one by one when it's needed. And, you know, eventually we realized that we maybe individually as people on the team, engineers hold too much knowledge in our heads. And, you know, sometimes we forget stuff and, you know, sometimes things get messy. So we started optimizing things like investing time in infrastructure as code, stuff like Terraform. We realized that a lot of stuff is manual. we just optimized by you know automating a lot of different things you know i think to this day we still have the mantra of let's not over engineer things and you know we still didn't build a lot of cool things that we could have built because we don't think that they are that important for example we're not using kubernetes just because we felt that there was much simpler solution to do things that we wanted to do it's a constant fire you're never going to be satisfied tech stack works the bigger you're aiming the bigger the problems you you get at some point we had an issue of somebody trying to hot link our videos and we're losing loads of traffic so well not necessarily traffic we're losing a lot of money because some users figured out how to host their videos or films on our platform illegally and so we had to fight that and it's It's one problem at a time, always. We're not perfect yet, but I think we're coming to the point where, you know, we're a bit more structured in things and, you know, things are improving bit by bit.

Noah Labhart

Well, as you step out on the balcony and you look across all you've built with VEED.io, what are you most proud of?

Timur Mamedov

First of all, on a personal note, I think I'm most proud of our story. I'm just truly shocked and just happy that we survived against all odds and without raising any capital and without any help. And honestly, I think we're just so lucky to have such an amazing group of humans working with us. It'd be a crime to say that was just all me and Saba. In all fairness, our team had to sacrifice a lot as well. Vilko is one of the engineers on our team. I think he was the second person who joined us. you know at the time we didn't we couldn't pay him for a few months because we just couldn't afford uh paying our own bills so i'm not sure why he stuck around but he did and you know i'm forever in debt to him and um i i don't know it would just have amazing people on the team and they care and they're here through the bad times and still the same i'm i'm really grateful for that i'm also I'm also proud of how seriously everyone takes their work, how much pride they take in their work. Our engineering team has built really impressive stuff and same goes for other teams. But from a technical point of view, I'm really happy. I think we can do a lot more. But it's great coming to work and just seeing everyone really at it and just wanting to help and wanting to make it a bigger thing and better. And it's just a really energizing place to work.

Noah Labhart

Let's flip the script a little bit. Tell me about a mistake you made and how you and your team responded to it. It's

Timur Mamedov

a difficult one to answer because I feel like we've made so many mistakes that it's just almost impossible to choose one. I think we've made so many mistakes that our entire culture shifted and centered around making mistakes and it being okay. So if I could think of early stage mistakes that I feel responsible for is you know, not doing the right choices when building the right, the tech stack. And we had to re-engineer a lot of things and, you know, and that kind of is probably a little bit of my advice as well for new founders starting. It's, um, it's okay to not know everything, just keep going and you're going to be all right. How our team responded to all of that. I think we just, we just believed it's going to work. We weren't insane. We, you know, we had a pretty good idea people coming to the site. You know, it's a bit rubbish right now, and sure, we have to rewrite stuff, but ultimately, if we put a little bit of work in, it's all gonna be all right.

Noah Labhart

So tell me what the future looks like for VEED and for the product and for your team.

Timur Mamedov

For a long time, we've been quite a small company. I mean, 18 months ago, it was just really no one on the team. it was no revenue, it was no team. And now we're at 4 million annual recurring revenue, growing really fast. For us, it's obviously going to be the same thing as we did. We want to continue on our journey of making a better, the best video editor there is on the internet. That's That's always going to be our number one. But apart from that, we are thinking about things like, oh, maybe we could do spin off an API product. Maybe we could do B2B stuff. And there are loads of opportunities. And that's kind of like partly why the topic of roadmap is so important for us right now. We need to figure out basically which direction we are going and what are ultimately the best bets. And there is a lot that we could do. and I'm really excited for the future.

Noah Labhart

You've grown a lot in a very short time and done some great things. I'm excited to see you guys continue to take off. Thank you. Let's switch to you, Timur. Who influences the way that you work? You know, CEO, CTO, architect, any person. Name a person you look up to and why.

Timur Mamedov

I think really it's two people that really influenced the way I think, I think. The first person is Paul Graham. Specifically the essays he wrote, it really opened up my eyes on how businesses should be built. Reading his stuff really simplified things in my head, especially doing things that don't scale. That essay really changed my perspective on how businesses should be run and operated. I highly suggest anyone interested in starting their own business to dive deeper into his essays. share some really interesting thoughts there. But I think on the tech side, I've been following for a long time a person called Jez Humble. I absolutely love his work. If you don't know who he is, I think he is a co-author of DevOps Handbook and for me personally, most importantly, Continuous Delivery. He's, I think, still one of the consultants for ThoughtWorks. And you know, He's just sharing a lot of really interesting thought pieces on just kind of how you should run your software teams as well. Because I think a lot of advice that you see on entrepreneurship kind of leaves you wondering, oh, okay, like doing things that don't scale or this or that. How does that exactly connect to writing software or doing things in a more specific environment? I think understanding DevOps and understanding the culture and history of how things progressed in that space really helped me understand what is a better way to run the team. Amongst other things, he really talks about stuff like mean time to restore service versus mean time between failure. All these concepts of philosophical kind of ideas really shaped the way I think how software teams and development in general should be done.

Noah Labhart

Well, we talked about mistakes, right? 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?

Timur Mamedov

Actually, I think my answer is not going to be anywhere in tech because I think in hindsight, there was really no way for us to find out a better approach or a worse approach in technology. It was really trial and error. And I think we naturally figured it out. In terms of starting a business in general, I think we should have started marketing earlier. We should have really started getting our word out there much sooner. That eventually gives you an idea of whether anyone is really interested in the product. I would say that we did one crucial mistake at the beginning, and that was we didn't charge. We basically were giving away free pizza, but that allowed us to build up a little bit of a momentum and just get that traffic going. That being said, we waited too long. I wish we started charging a lot sooner than we did. And really, we started charging the same day YC kicked us out. And I'm forever grateful to YC for that, really.

Noah Labhart

I would love to dig into that. So tell me a little bit about that story with what happened with YC.

Timur Mamedov

We came in. It was four partners in the room. It was Saba and I. They're like, all right, what's your vision or something? I mean, I said something stupid. I said, well, a vision, like we want to get like 3,000 pounds a month. That would be a great vision. And 1,500 for me, 1,500 for Saba, and we're good. And they kind of looked at us as well. Obviously, Saba said like something smart and smoothed things out. Albert kind of looked at us and said, like, you know, we think it's going to be a successful company. We don't think it's going to be a billion-dollar company, which we disagreed on. Ultimately, it came down to the fact that they were confused about why aren't we charging if we've got so much traffic? And that was on Friday. So we got drunk on Friday, went to the pub. there was a bar in San Francisco. But the next day we made a plan and our plan was to get paying customers and come back to YC on Monday and show them that we've got some customers. And that's exactly what we did. We basically spent all day on Saturday just programming. It was pretty hardcore, I'm not gonna lie. So I was bringing me coffees and you know Vilko and Matej were helping along long as well, and then on Sunday we built it, and we just put it live, and suddenly we just had customers coming in that was crazy and I think for us the reason we weren't charging for a long time is because we really wanted to be smart about how we're gonna monetize our product and you know watermarks are not sexy but they work and we thought that we could maybe get away with um or not get away. I think we thought that maybe we could do something a little bit more tasteful. But, you know, YC just said, hey, why are you not charging? And, you know, to be honest with you, they were right. We might change this in the future. But right now, we just slapped on water marks. And there we went and it worked. That's kind of how it all panned out. And on Monday at 9am, we sent them an email saying, hey, look, we've got 20 paid customers. Are you going to And you know, we didn't care at this point if we're gonna actually, no, I'm lying. We were really sad when they said no. They said, nah, you can't come in. We were actually really, really sad. But in hindsight, you know, it all went well. And, um, a year later, I think, um, we were at a hundred K ARR. Couple of months later after that, we were like at a million ARR and bloody hell what a ride that was.

Noah Labhart

Well, last question, Timur. 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?

Timur Mamedov

it. Have you got a landing page? Uh, have you posted it on Product Hunt? If not, we're gonna write it right now. Uh, that would be probably my, uh, first piece of advice. But no, in, in, if I'm being a bit more serious, then, um, having gone through what we've gone through and just seeing so many downs and so many ups, um, my first piece of advice for early stage founders is to just make sure whatever Whatever you're working on is just really fun to work on. And I mean everything about it should be fun. Ideas should be fun, people should be fun, work code is fun. But most importantly I think it should have a really strong meaning to you. Whether it is because you're solving your own problem or you just want to get your family out of the hood, anything goes at this point. Because when things are not looking so fun anymore it'll keep your head above water. That's my first piece of advice I think. get through. And the second thing, I think there are so many great people out there who want to help you. And I suggest, you know, drop ego and just go and meet them and surround yourself with amazing allies who are smarter than you and take pride in their work. Don't hire replaceable people, hire people who are irreplaceable and trust them, treat them how you'd like to be treated. And And you're going to have an amazing culture.

Noah Labhart

That's fantastic advice. Well, Timur, thank you for being on Code Story. Thank you for telling the creation story of VEED.io.

Timur Mamedov

Thank you so much for having me. It was my pleasure.

Noah Labhart

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. patreon.com slash Code Story for just five to ten bucks a month. And when you get a chance, leave us a review. Both things help us out tremendously. And thanks again for listening.

Transcribed with Whisper and reviewed for names and terms; speaker labels are automatic and may contain small errors. Timestamps link to that moment of the transcript.