oneam / h264bsd

A simple h264 software decoding library
Other
194 stars 52 forks source link

iOS test #3

Closed sunkai0205 closed 9 years ago

sunkai0205 commented 9 years ago

Test iOS why do I use a H264 file to replace your test file and can't decode it.

sunkai0205 commented 9 years ago

In the demo iOS I found out why only the test file in your demo can be decoded successfully, and can't be decoded by several H264 files downloaded from the Internet.,

oneam commented 9 years ago

This library is designed to decode raw h264 (specifically the encoding described in ITU H.264 annex B). It's especially useful when you want to stream video with low latency (for live playback for example).

Most of the files you'd find on the internet are wrapped in MPEG, OGG or other formats which is why they won't work with this library.

If you would like to create a different test file, you could use the x264 command line tool. It will create files in the correct format. http://www.videolan.org/developers/x264.html