[英]How to get resolution of h264 video stream
我正在做一个SIP客户端,并且有一些问题。 我通过SIP服务器邀请用户,并从中获取SDP参数。 但是,用户客户端(MicroSip)没有在SDP中发送sdprop-params。 此外,它也没有在RTP流中发送SPS / PPS分片。
如何以这种方式获取图片参数?
Wireshark转储
Session Description Protocol
Session Description Protocol Version (v): 0
Owner/Creator, Session Id (o): - 1516869540 1516869540 IN IP4 172.16.50.175
Session Name (s): mss
Connection Information (c): IN IP4 172.16.50.175
Time Description, active time (t): 0 0
Media Description, name and address (m): audio 4000 RTP/AVP 97 100
Connection Information (c): IN IP4 172.16.50.175
Media Attribute (a): rtcp:4001 IN IP4 172.16.50.175
Media Attribute Fieldname: rtcp
Media Attribute Value: 4001 IN IP4 172.16.50.175
Media Attribute (a): sendrecv
Media Attribute (a): rtpmap:97 opus/48000/2
Media Attribute Fieldname: rtpmap
Media Format: 97
MIME Type: opus
Sample Rate: 48000
Media Attribute (a): fmtp:97 maxplaybackrate=24000
Media Attribute Fieldname: fmtp
Media Format: 97 [opus]
Media format specific parameters: maxplaybackrate=24000
Media Attribute (a): rtpmap:100 telephone-event/8000
Media Attribute Fieldname: rtpmap
Media Format: 100
MIME Type: telephone-event
Sample Rate: 8000
Media Attribute (a): fmtp:100 0-16
Media Attribute Fieldname: fmtp
Media Format: 100 [telephone-event]
Media format specific parameters: 0-16
Media Description, name and address (m): video 4002 RTP/AVP 97
Connection Information (c): IN IP4 172.16.50.175
Media Attribute (a): rtcp:4003 IN IP4 172.16.50.175
Media Attribute Fieldname: rtcp
Media Attribute Value: 4003 IN IP4 172.16.50.175
Media Attribute (a): sendrecv
Media Attribute (a): rtpmap:97 H264/90000
Media Attribute Fieldname: rtpmap
Media Format: 97
MIME Type: H264
Sample Rate: 90000
Media Attribute (a): fmtp:97 profile-level-id=42801e; packetization-mode=0
Media Attribute Fieldname: fmtp
Media Format: 97 [H264]
Media format specific parameters: profile-level-id=42801e
Profile: 42801e
Media format specific parameters: packetization-mode=0
[Packetization mode: Single NAL mode (0)]
Сlient每1秒发送一次SPS / PPS slicec,您必须等待。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.