https://blog.csdn.net/wuyu92877/article/details/40737661
A sample packet of H.245 terminalCapabilitySet
Step 1: LEVEL(unsignedMin: 78 – Level 3.2)
H.264 Level: 3.2, we can find out the max capability of level 3.2 by referring to the H.264 level limitation table.
H.264 level limitation of level 3.2
MaxMBPS: 216000MB/s
MaxFS: 5120MB/s
Calculate the resolution by the suggested MaxFS value: 5120*256 = 1280*1024, which mean resolution will be 1280*1024
Calculate the frame rate by the suggested MaxMBPS value: 216000/5120 = 42 fps
Step 2: CustonMaxFS (unsignedMin: 32)
Calculate the resolution by the customized frame rate: 32*256*256(2097152) > 1920 * 1080(2073600), which means the resolution could at least be 1920*1080.
Step 3: CustonMaxMBPS(unsignedMin: 486)
Calculate the frame rate by the customized MBPS: 486*500/ 32*256= 30 fps
P.S. It is using CustomMaxFS 32(32*256=8192) and CustomMaxMBPS 486(486*500 = 243000) in this sample capability, if you check into the level limitation table, you can find out that it’s similar to Level 4 or Level 4.1 rather than Level 3.2.
H.264 level limitation of level 4 and level 4.1
A sample implementation for it
sample implementation for calculation
Appendix
H.264 level limitation table
video resolution table
From a former colleague.
声明: 本文大部分内容转载 http://rg4.net/archives/1583.html 韦国华