Giter Site home page Giter Site logo

sample_app_using_shaka_packager's Introduction

sample_app_using_shaka_packager

Shaka packager is a a very powerful tool for transmuxing and drm-encrypting video streams. This repository shows how to integrate Shaka packager as a media library in your own application, so that you can use it to transmux and encrypt streams.

You can check out Shaka packager source code from https://github.com/google/shaka-packager, put it on the same level as this repo. Follow https://google.github.io/shaka-packager/html/build_instructions.html to build Shaka packager on Ubuntu. Remember to build Shaka packager for release, "ninja -C out/Release". Then, cd to sample_app_using_shaka_packager/, "make" to build this repo, the output will be an executable named "transmux_encrypt". Run "./transmux_encrypt [input_file.mp4] [output_file.mp4]" to transmux and encrypt the input to generate the output. If you don't specify output file, the default output will be saved to output_video.mp4. There are a few other libraries that need to be installed in your machine, please refer to the Makefile for a full list of dependencies.

"DRM raw key" is used to encrypt the content, so CENC (Common ENCryption)/AES128 counter mode is used to encrypt the input file by default. Encryption parameters such as key_id, key and iv are hardcoded in the program.

To clean up the project, run "make clean".

sample_app_using_shaka_packager's People

Contributors

maxutility2011 avatar

Stargazers

Shail K Shah avatar

Watchers

 avatar

Forkers

skilljobs

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.