Can someone point me to documentation that will help me get correct SPS and PPS values for iPhone.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- Handling ffmpeg library interface change when upgr
- How to use a framework build of Python with Anacon
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
I am sure you know, but you can only save H264 encoded video into a file(.mp4, .mov) on iOS. There is no access to encoded video frames from code yet. So if you want to create an mp4 file that has encoded video, you need to use AVAssetWriter. Apple has a good example code on how to do this.
I don't know of any place where different SPS/PPS are published; since they vary based on your compression settings, image size, and whether you are encoding video in portrait or landscape mode. You can use above example code(RosyWriter) to generate some small .mp4 files with your encoding presets; and then I would use a hex editor to find the SPS/PPS manually. Note that SPS/PPS will towards on the end of the file after your H264 stream as part of a larger mp4 info structure. You can find more info on its structure online.
Here is some SPS/PPS that I found useful for my project. Some of them might work for you, but if not you can always generate an mp4 with your H264 encoding presets and find necessary SPS/PPS. My video was encoded using AVVideoProfileLevelH264Baseline30, and here are the SPS/PPS for different video sizes I needed:
SPS:
PPS:
Question is a bit unclear...
Picture Parameter Set
is described in the latest ITU-T release of the standard in chapter 7.3.2.2Sequence Parameter Set
is described in chapter 7.3.2.1.You can encode a single frame to a file and then extract the sps and pps from that file. I have an example that shows how to do exactly that at http://www.gdcl.co.uk/2013/02/20/iOS-Video-Encoding.html