Git Product home page Git Product logo

ndash's Introduction

libndash README

This is not an official Google product.

libndash

libndash is a C++ library that provides all the functionality one would need to build an adaptive streaming media player (not including decoding/rendering frames to a display). It provides the following functionality:

  • download and parse DASH manifests
  • download segments from fragmented mp4 audio/video streams
  • parse video/audio frames from segments
  • deliver frames to a client decoder
  • switch to different representations based on network conditions
  • notify the client when protected content is encountered
  • provide seek/jump and trick play functionality (forward/backward)

This project is based on a translation of ExoPlayer v1 source files (https://github.com/google/ExoPlayer/tree/release-v1) with non-DASH related functionality removed. It is best suited for environments that require a native code solution for adaptive streaming.

sdl_player

sdl_player is a sample media player written on top of libndash. It demonstrates how to implement the final steps of decoding and rendering frames delivered by libndash using ffmpeg/SDL/Alsa.

Libraries

For Debian-type systems, the following packages should be installed:

  • libevent-dev
  • libmodpbase64-dev
  • libpthread-stubs0-dev
  • libxml2-dev
  • libcurl4-gnutls-dev
  • libsdl2-dev
  • libsdl2-mixer-dev
  • libbz2-dev

Copy and paste:

apt-get install libevent-dev libmodpbase64-dev libpthread-stubs0-dev libxml2-dev
libcurl4-gnutls-dev libsdl2-dev libsdl2-mixer-dev libbz2-dev

If you are using a recent Debian/Ubuntu with an up to date ffmpeg:

  • libavcodec-dev
  • libavdevice-dev
  • libavfilter-dev
  • libavformat-dev
  • libavresample-dev
  • libavresample3
  • libavutil-dev
  • libswresample-dev
  • libswscale-dev
  • libgoogle-glog-dev
  • libgflags-dev

Copy and paste:

apt-get install libavcodec-dev libavdevice-dev libavfilter-dev libavformat-dev libavresample-dev
libavresample3 libavutil-dev libswresample-dev libswscale-dev libgoogle-glog-dev libgflags-dev

Otherwise you will need to install the following from source:

To build:

From the top directory:

cmake . make -jX # where X is the number of cores on your machine or around there

To run the unit tests:

From the top directory:

./build/ndash_unittests --test_data_path=pwd/ndash/src

License

This software is licensed under Apache Software License, Version 2.0

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.