Giter Site home page Giter Site logo

avios's Introduction

Avios

Realtime H264 decoding library for iOS.

This is a very low level component that is intended to process raw H264 frames for realtime video playback or processing.

Typical usage

  1. Create an H264Decoder
  2. Decode an H264 frame to an AviosImage. The AviosImage is the rendered picture. This is a shared buffer in main memory.
  3. Copy the main memory buffer to GPU memory. You can also optionally copy the data to a some other context such as a UIImage. Or you can try to wrap a CGContext around the shared memory. I've tried a few different things but found that the most efficient and stable way is to use the GPU for displaying the picture. I suggest trying GPUImage to help with rendering.

Step 2 and 3 are then repeated over and over again to render and display the video. The framerate and syncing is entirely up to you to manage.

H264 Streams

There are many H264 video stream formats such as RTP and AnnexB.

It is your responsibility to parse the stream and extract the frames. The Avios decoder only cares about the raw frames. A H264 frame is also called a NALU.

There's a lot of documents online about NALU stream such as AnnexB but here's a start:

http://stackoverflow.com/a/24890903/424124
http://stackoverflow.com/a/20686267/424124

Contact

Josh Baker @tidwall

License

Avios source code is available under the MIT License

avios's People

Contributors

tidwall avatar

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.