iOS platform video hard decoding, support h264, h265

VideoDecoder

iOS platform video hard decoding, support h264, h265

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

h264:

//Initialize the decoder instance and assign it a delegate to receive the decoded data  
//callbacks
let decoder = H264Decoder(delegate: self)

//Initialize the videoPacket instance of h264 encode data
decoder.decodeOnePacket(videoPacket)

h265:

//Initialize the decoder instance and assign it a delegate to receive the decoded data  
//callbacks
let decoder = H265Decoder(delegate: self)

//Initialize the videoPacket instance of h265 encode data
decoder.decodeOnePacket(videoPacket)

Build Requirements

iOS

11.0+
Swift5.0+

Installation

CocoaPods

pod 'VideoDecoder'

Carthage

github "songbihai/VideoDecoder"

License

VideoDecoder is available under the MIT license. See the LICENSE file for more info.

GitHub

https://github.com/songbihai/VideoDecoder