The Web3 Video Stack - Eric Tang
Developer DAO · 6 Mar 2022 · 30:59
Eric Tang, co-founder and CTO of Livepeer, introduces the web3 video stack: the smart contract, storage, query and streaming layers that together let developers build decentralised video applications. The talk traces the history of online video from YouTube, Twitch and Netflix, explains why creators lose out on centralised platforms, and shows how open infrastructure changes that. It closes with a walkthrough of Livepeer's developer tools, including an NFT video API, a live streaming API, the Mist media server and in-browser broadcasting.
Speakers
Topics
From Developer DAO; community: Developer DAO.
Transcript
this talk is sponsored by live pier live pier is a decentralized video streaming network that provides the necessary infrastructure for broadcasting video over the internet at a fraction of the cost to today's cloud infrastructure learn more at livepeer.org hi everybody my name is eric tang and i'm the co-founder and cto at lifepier today i'm going to tell you a little bit about the web3 video stack this is a emerging kind of new technology stack that you know we've been all building for a long time and and that we're very passionate and excited about and hope that i can share a little bit of more
information around this and also to share some more details about what can be accomplished with this new technology stack a little bit about life here before we dive in live pier is building the video streaming layer of web 3. we've been around since 2017 and you know we've been working on this problem for a little while the the goal is for us to enable this new decentralized video streaming application and ecosystem and uh you know it's a it's a developer facing um product a developer facing network an open source ecosystem right people can use live peer to build video applications
it's it's not exactly like youtube or twitch but more like an infrastructure or developer tool that allows people to build like a web 3 version of youtube or twitch so today what we'll cover is um you know what is the web 3 video stack uh talk about some of the opportunities in the web 3 video stack um in the in web 3 video and then i'll share a little bit about uh what are the developer tools that are available within the lifehere ecosystem that can help you you build a web3 video application so what is the web3 video stack on the high level we think of the stack
as a combination of technologies that are decentralized and in combination serve as the the all the different modules that you will need to build a web 3 video application right so we have kind of the smart contract layer and we also have some of the decentralized web 3 infrastructure layer like storage query or streaming altogether this is the combination that forms the web 3 video stack before we get into details of this i think it's interesting to just take a quick look back at how we got here today right even though online video is kind of all consuming uh today we can't make our day
make through the day without consuming a video online video online has actually hasn't been around for that long right so so let's dial the clock back a little bit um back in 2005 which is merely you know just 17 years ago there was a small dating application that was working on a video based hot or not uh hot or not was kind of the the maybe the first um popular online dating application right uh and and and you know these these two founders were trying to build a video version of it it was not very successful not a lot of people were using this application so they decided to kind of ditch the dating
idea and just focus on creating a website that allows people to upload videos and they named this application youtube right uh very quickly after this pivot um youtube started growing uh tremendously they just within a short 18 months of time it became the number one number five most popular website in the world um and and throughout this time it was oftentimes the fastest growing website on the internet period right and and some interesting things about youtube uh youtube has only actually been independent for it was only independent for about two years right
since the founding over time over that two years raised about 11.5 million dollars um it was burning about two million dollars per month uh when it was being acquired a large a large portion of that two million dollars was going to kind of paying for the infrastructure bill and it was acquired by google back in 2006 for 1.65 billion dollars and google of course at that time knew which website was growing the fastest uh it knew that youtube was had this tremendous potential and they were building an internal video application it wasn't working out as well so they acquired youtube right
coincidentally you know a year after the acquisition in 2007 uh google introduced uh this ad model where um you know advertisements will be show shown alongside of videos that people upload into youtube and there will be a rev share right which means uh the creators of those videos can potentially get a a portion of that ad revenue right and it started this ad supported model for online video streaming industry another uh interesting example just quick two years after youtube was started there was another company called
justin tv that got started at the very beginning justin tv um was an application that was kind of a online reality tv show right the founder of justin tv uh attached a a webcam on a baseball cap and then he would wear a backpack around walking around 24 7 kind of filming his day and broadcasting it to the internet uh and as an experiment it was it was one of the first y combinator companies in the world unlike youtube um justin tv actually um struggled between in the first four years of his uh its existence right um they had numerous legal troubles um in along the way uh lots of people were
kind of streaming or uploading um kind of copyrighted content and that was a big issue the ceo even had to go testify in front of congress because they were being sued by a lot of these large companies and and so at the end of four years given this kind of um you know too much rules um path um youtube no sorry twitch uh they noticed that uh there was a an audience on their platform that was kind of niche but um you know had had a growing uh growing trend right which was people watching other people playing video games um you know at that time people thought it was it was very strange but nevertheless they wanted to
give this a try so they actually spun out this um this niche on their website into its own company called twitch and of course right after twitch was spun out um kind of this community was created it started growing exponentially they were very creator focused right focused on the gamers themselves they created the first application where a live video stream and a live chat can happen at the same time so the broadcaster can kind of be responding to the live chat in real time um and and they really didn't have any uh they were able to kind of sidestep the the content rights issues a little bit here and and
and create kind of sticky long sessions because people are playing video games you know for at least a couple hours right uh and just a quick three years after that um twitch was acquired by amazon in 2014 for a billion dollars at that time this was the largest acquisition that amazon had ever done right it took about 20 of the cash position on the amazon's balance sheet and of course the second place bidder the amazon outbid it was google who was trying to buy twitch as the kind of the live streaming product for their youtube product line another interesting example netflix
right we all know the name of this uh this website um they started a little earlier but you know as an online dvd rental business right this uh back in 1997 where you know there wasn't really video streaming on the internet yet because it just wasn't um the bandwidth wasn't as proliferated at the point it was a pretty successful business and when ipo in 2002 they've always they always known kind of video streaming would have been another way to grow the company but they never really launched a streaming service until 2007 uh largely inspired by the success of youtube right and of course a short three years after launching their streaming service that
streaming business surpassed their dvd business uh in 2010. and netflix of course famously started the streaming war which is the idea of company spending a large amount of budget uh buying and creating original content for their platform right so now disney plus apple tv all these other streaming services are are kind of spending just more and more money into into content creation right famously in 2021 netflix spent 13.6 billion dollars uh in buying content alone and they account for about 19 of the bandwidth on the internet today
um some of the lessons that we you kind of learned from this you know short 15 17 years of um history of the the of online video right um well video is driven by develo by creators right we look at all these video uh streaming websites well they don't um these companies aren't really creating videos themselves right even for the quote-unquote original content that netflix is creating most of that content is actually created by independent creators that then get pitched to the netflix studio and then the netflix decides to you know purchase the rights to that content that then they'll stream on
their distribution channel right so without creators these uh applications would not be here and would not be as profitable as they are today right so creators um of course they they are they're now spending an enormous amount of money uh two cor to court creators but at the same time um these are large distribution channels that are able to um really uh negotiate down the take rate right so youtube famously has about a 50 take rate uh which means for every two dollars that are made on youtube uh usually through advertisement youtube takes a dollar right and the creator of the content um takes another dollar
right and of course this is on average a lot of times um the long tail creators don't don't make anything another thing to point out is youtube video is everywhere right we can um you know we can see video is in all the entertainment platforms uh video is also education video is in all the e-commerce platforms uh and video is in business and personal communication right in fact about 80 of all the internet's traffic today is video so as we can see it's it's pretty it's the predominant uh content format of the internet of today right another thing to point out is that video
today is highly centralized um there are about 50 million content creators around the world out of which you know about 2 million are professional content creators which means that's their entire job right if you look at all the content creators they you know they're spending most of their time on a very few number of platforms and these platforms know that right so they um they they hold all kinds of powers over uh the content creators uh they build up um they build up a very arbitrary um anti-competitive rules so that other people cannot compete for example twitch famously uh say that if you if you want to be a twitch partner which means if
you want to be able to make money streaming on twitch then you have to exclusively stream your content only on twitch and you cannot be streaming that um you know at the same time to other other platforms if you get caught by that you know they get you get kicked out of the uh the partnership program right um so all of these rules are not really good for for creators and for for content creators right and the content creators are realizing this uh and and as the rise of web 3 is coming we're starting to see new web 3 video platforms that are coming up and creators are finding out about this and migrating over to web3 right so these are
applications that are built on top of web 3 infrastructure that are web 3 native video applications and you know a lot of the benefits here include creators can actually own the content that they create right which means they when they upload their video into like an open c for example they actually own that content which means they can take that content and repost it to zara or superior or any of the other nft platforms right um and and they can take their audience with them as well um if we peel back the curtain a little bit and take a look at uh the actual um infrastructure and the uh and how the the web2 video application is built
right we see that you know on the on the bottom left we have the video source right video can either be uploaded um as a file or they can be live streamed as a broadcast stream it gets ingested into a media server and this media server is crucial for serving that video content right and because it speaks all these different video protocols um you know understands video codecs and things like that the media server usually transcodes the video with a transcoding engine uh and it can store the video into object store or distribute that through a content delivery network into a video player that's that's in the browser and of course on the other side right
you know applications usually have a database that stores kind of user information and as well as you know server logic that for example brings up recommendation engines and things like that that you know that are accustomed to the to the application itself so if we go to the web 3 world we see that a lot of these blocks are still in play right but they're swapped out to to be replaced by decentralized solutions right and these decentralized solutions are public by nature uh and and so for example uh the video get still gets uploaded and still gets streamed in but but instead of into a
media server that's run by a proprietary you know by a company um it's streamed into a decentralized streaming uh network right uh that then you know stores for example stores the video into a decentralized storage system like um you know like an ipfs file coin or r weave uh it can get distributed in by a decentralized cdn um and at the same time the database is swapped out by um you know with a blockchain right so the blockchain address is now the representation of the user identity and of course we also have the smart contract and the decentralized query layer to to power these decentralized
applications right so you know if we come back and revisit uh what the stack looks like right at the bottom we have the smart contract layer that gives us token standards gives us ways to value to transfer value gives us ways to create identity um right it can plug into d5 um it can give us these decentralized coordination mechanisms like dial creation and things like that and that's kind of the fundamental foundational layer of the source of these decentralized uh the source of decentralization right but on top of that we have this web 3 infrastructure layer that allows applications to be built in a decentralized way because at the end of
the day in order to build applications we still need infrastructure to power these applications right so these are kind of decentralized storage solutions decentralized decentralized data query solutions or like the centralized video streaming solutions all um for powering these web 3 video applications right and we're starting to see these applications pop up in the kind of these different verticals like decentralized social nft's metaverse even you know like video specific wallets or or commerce use cases right so so let's take a look at you know the the primitives of web3 video right like
what is what does web3 video have that you know that's different from web 2 video right what are what are some of the new things that people can use developers can use to to build new types of applications um the first one is video based nfts right so nfts are basically you know represents digital ownership right of some digital asset and in this case because video is a you know native digital asset right video nfts represent the digital ownership of a video and this is quite significant because as soon as you have ownership you have commerce opportunities people can trade
the ownership of these videos people can attach royalties to these these ownerships so for example you can say for the original creator of a video the creator will get you know a percentage of all the trades that happen on this video in perpetuity right another interesting another interesting aspect to this is um because these um nfts are public data by nature right they're they're not stored in a centralized database you can have multiple applications that are built on top of the same video assets that starts to get really interesting right because you know in the web 2
world once a video is uploaded into youtube um that video is viewed in youtube right it's shared in youtube and it's living in the youtube realm right and and youtube um doesn't allow you to easily um export that video out of youtube in fact it's against the the user's agreement the user agreement but in web 3 it's the opposite right when users are uploading videos into web3 infrastructure they own it and they just they're just simply uploading it through an application interface but at the end of the day that video can be taken into other other application interfaces so multiple
multiple applications can be built on top of the same video assets and that gives us a much more a lot of pretty open space to explore right so for example it encourages this mod culture where people can take an existing video modify it create a new video um you know this is actually quite a popular behavior on on tick tock right people are kind of copying dance moves and things like that but also this serves as an important tool for community building where videos can be videos can be kind of exclusive content for a community of of users or token holders and things like that
moving on to the second point which is video and smart contract integration that's a new primitive for web3 video right so this this for example gives us the ability to create a completely decentralized video application and some of these features can include you know token gated video libraries or token gated live streams um but it also gives us the ability to decentralize the video production um process right we're starting to see dows or web3 communities fun come together and fund the creation of video for example we're starting to see some documentaries about the about the
decentralized tech space crowdfunded using uh using kind of web3 based primitives and even creating liquidity um using d5 principles uh all to encourage content creation uh and finally the metabo the metaverse is i think a really interesting building block for uh for introducing video experience uh because there's just a lot of need in terms of streaming into and out of the metaverse right we're seeing all kinds of interesting examples that we'll go into later um so so yeah with all these new primitives you know what are the actual opportunities that that we see in in web3 video
well one is you know for the creator economy right nft ecommerce is starting to become a pretty normal use case right we have these popular nft platforms where creators are coming in creating nfts we're increasingly starting to see video based nfts being created so um so yeah like i think there's a lot of room to explore in terms of what a native video native nft platform will look like uh so applications like glass.xyz is actively exploring in this area uh another interesting uh sector is kind of these creator community tools that are popping up mirror being a really good one uh kind of the web 3 version of medium right but it gives people the
ability to do crowd funds or launch tokens on the on the writing that they do and we're starting to see you know creator tools that are pop-up that are popping up for for video specific use cases too um web3 powered fandom right this is a this is a pretty interesting vertical um nba top shot is probably the the most famous example here um in in a video based nft use case right but we're starting to see uh all kinds of interesting celebrities coming into this space trying to find new ways to connect their fa with their fans through these web 3 native web their native opportunities
decentralized social application is another interesting area that we're starting to see some development so portal is kind of a web 3 version of twitch beam i would say it's a it's a mix between like a web 3 twitch and youtube discover uh is a kind of like a web 3 version of reddit uh so where's and there are like some interesting communities that are forming around these uh around these uh web 3 decentralized social projects some of these projects offer a token so that the users can actually own uh become an owner of the platform instead of being a product of the platform and some of them have even more interesting kind of incentive mechanisms
to encourage uh content creation on the platform right uh we're already starting to see people streaming in and out of the metaverse right so we have kind of both um you know kind of real world people creating content to be viewed in the metaverse so on the bottom left right we see you know this woman kind of creating a metaverse metaverse native kind of video experience and we also see video um being streamed out of the metaverse into the real world right we're starting to see these uh kind of anime um characters who are the celebrities right so these are
completely made up celebrities that are that are super popular on the top left we see like a real world concert of these animated characters um going into the the developer toolkit a little bit i'm going to show you a few things that lifebear has built over the years to help you build web 3 based video applications this one is a video nft api that we recently built it's a really simple way for for anyone to create video based nfts so you know a two set process right the first is you export your api key from livebear.com into your your local environment right so here i'm kind of copying the api key
over to my local environment and the second is you know i'll pick a video that i want to use to mint nft right here i have my you know my dog playing snow having just a wonderful time now i want to mint that video as an nft right so all i do is you know i have this script uh there's also a kind of an npm package for this so when you execute this it'll do a few things one is it uploads this video into the livecare network second is that it processes this video to optimize it for kind of video online streaming to make sure you know um it's actually optimized for streaming and it's viewable and then it packages all that information into a
nice metadata blob to get it ready for minting right so now you have this token uri that's already well-formed and you can use this to simply issue an nft by calling a transaction and in this case i'm doing it on the um i think on the ring can be test net and now i'm just waiting for the transaction to uh to confirm and once it's confirmed uh we'll see you know there's a there's a transaction id and we can even go into the test app version of openc to immediately see this minted minted nft right so we'll go there
and we'll see that right here is my dog playing the snow as an nft right another tool that we've been working on for a long time is this live streaming api tool uh that allows you to create kind of a twitch style uh video streaming application within 15 minutes uh this is a pretty easy to use tool and and it's uh it's very uh it's built on top of the live care network kind of a like a hosted gateway service for the life here network and leverages the network to to to be able to provide streaming uh service at a super super affordable affordable rate another piece of technology we recently
open sourced it's called mist server this is a really powerful video streaming media server that allows allows you to build kind of a you know a video infrastructure right um it it has a deep um integration with the live peer network uh so you can deploy you know an instance of this server and be able to run a large amount of traffic through that mis server kind of utilizing the live peer network for for scaling out that computation and finally we have a kind of an in-browser broadcasting tool called webrtmp so this allows you to kind of create an application that allows anybody to
broadcast a live stream from within a browser uh instead of needing people to download a you know a brass cutting software like an obs right there's there's um some good demo applications that you can take a look at at the at the live pier um uh github repo um for this hackathon uh lifehere is putting up five thousand dollars of total price uh the first place price is for the best video nft platform using the lifepure nft api right so that's kind of the demo that i showed a little earlier uh definitely go check out the the resources and the tutorials uh add like the live peer hacker quick start guide
um you know we we walk through exactly how to use it uh and and you can use it to start creating your own nft platform or even adding nft functionalities into an application and that you're creating another uh price that we have is for two thousand dollars uh going to the best decentralized game streaming or creator platform right so this is a pretty open-ended price we'd love to see your creativity around how to use web3 to create interesting incentivization schemes that allow people to um to want to create content or to create liquidity for their viewers passing you know
passing the value to their to the to the users of the streaming platform instead of uh kind of having the platform keeping keeping all the profit and of course last night but not least life fears hiring we're hiring across engineering products marketing and developer evangelism so if you're interested definitely go take a look at lifehere.com jobs where we have posted all the um all the jobs so thank you very much and we're looking to looking forward to see you in the discord hacker support channel we have a lot of team members there love to help you
on your hack talk through your ideas yeah thank you bye
Related talks
- Livepeer 🛠 Building a Web3 Video Application
- Livepeer 📚 Building Live Streaming Apps w/Livepeer
- Sikorka – Ethereum Meets the Outdoors
- Dev & Tell | Dhaiwat - web3-ui
- Livepeer 🛠 Building Disruptive Web3 Streaming Apps with Livepeer Studio
- Dev & Tell | Giancarlo - Dappify - Build3r
- Startups Interview - Sherry
- Onboarding the Next Generation of Ethereum Builders with BuidlGuidl
- DevNTell - Nader Dabit - Smart Contract Development with Foundry
