webcodecs | flexible web API for encoding and decoding audio | Video Utils library

 by   w3c HTML Version: Current License: Non-SPDX

kandi X-RAY | webcodecs Summary

kandi X-RAY | webcodecs Summary

webcodecs is a HTML library typically used in Video, Video Utils applications. webcodecs has no bugs, it has no vulnerabilities and it has medium support. However webcodecs has a Non-SPDX License. You can download it from GitHub.

The WebCodecs API allows web applications to encode and decode audio and video.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              webcodecs has a medium active ecosystem.
              It has 725 star(s) with 111 fork(s). There are 70 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 105 open issues and 304 have been closed. On average issues are closed in 277 days. There are 6 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of webcodecs is current.

            kandi-Quality Quality

              webcodecs has no bugs reported.

            kandi-Security Security

              webcodecs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              webcodecs has a Non-SPDX License.
              Non-SPDX licenses can be open source with a non SPDX compliant license, or non open source licenses, and you need to review them closely before use.

            kandi-Reuse Reuse

              webcodecs releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of webcodecs
            Get all kandi verified functions for this library.

            webcodecs Key Features

            No Key Features are available at this moment for webcodecs.

            webcodecs Examples and Code Snippets

            No Code Snippets are available at this moment for webcodecs.

            Community Discussions

            QUESTION

            Architecture for a web app to add overlays to users' Youtube live stream video?
            Asked 2021-May-29 at 18:13

            I am trying to build a web app for users to easily add text (as open caption) and other assets in my app as overlays in real-time to their YouTube live stream video.

            They will use their camera to record their video, and select from my app which text should be added to the video.

            Then, the video will be sent to Youtube live through their API.

            Here are my questions:

            First of all, I was wondering if mixing video + subtitle and sending it to Youtube's rtmp url can be done from the client side, so it's simple and lightweight.

            Second, should I encode the output being sent to Youtube? Can this be done from the browser too? I'm only seeing a few node.js frameworks, and even they're not very mature (or is Webcodecs for this purpose?). Is a web app a poor choice for this task?

            Lastly, if I do need a server to process the video, where should the encoding happen (from the user's machine, or in the server, or both?)? Is my server most likely going to be the bottleneck given YouTube's infrastructure, since video files are huge and my server is limited?

            I am new to video streaming, so please excuse my lack of understanding of the subject. Also, if there's any good resource for my problem, please share them with me.

            ...

            ANSWER

            Answered 2021-May-29 at 18:13

            First of all, I was wondering if mixing video + subtitle and sending it to Youtube's rtmp url can be done from the client side, so it's simple and lightweight.

            You can do the video compositing and audio mixing and what not, but browsers don't support RTMP. To get the data to an RTMP server, you need to send it to a server where it is proxied off to the final URL.

            They will use their camera to record their video, and select from my app which text should be added to the video.

            Yeah, that's no problem at all. Draw everything to a canvas every frame.

            Second, should I encode the output being sent to Youtube?

            Yes, you must. Check out the Media Recorder API.

            Lastly, if I do need a server to process the video, where should the encoding happen (from the user's machine, or in the server, or both?)?

            The video has to be encoded client-side to get to the server in the first place. The server can then hopefully just repackage with flv and send it along. If the browser doesn't support H.264 in its Media Recorder API, then you'll have an intermediary codec like VP8, and you'll have to transcode server-side.

            A few years ago, I wrote a tutorial on how to do all of these steps here: https://github.com/fbsamples/Canvas-Streaming-Example Note that the tutorial is in the context of Facebook, but this should teach you the concepts.

            Source https://stackoverflow.com/questions/67745518

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install webcodecs

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/w3c/webcodecs.git

          • CLI

            gh repo clone w3c/webcodecs

          • sshUrl

            git@github.com:w3c/webcodecs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link