Closed sunkai0205 closed 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.,
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
Test iOS why do I use a H264 file to replace your test file and can't decode it.