我必須獲取流視頻[來自rtsp服務器]的寬度和高度。從RTP包或Rtsp服務器獲取視頻寬度高度
第三方服務器爲在RTSP以下信息DESCRIBE請求:
一個RTSP服務器給我寬高
Server Response:
RTSP/1.0 200 OK
....
Content-Type: application/sdp
Content-Length: 376
a=x-dimensions:1280,1024 // GET WIDTH HEIGHT
....
A = X-尺寸:1280,1024
但其他沒有牛逼給我寬/高信息....看來它支持ONVIF ...
Server Response:
RTSP/1.0 200 OK
x-Accept-Dynamic-Rate: 1
...
Content-Length: 625
...
m=video 0 RTP/AVP 96
i=Video channel in H264 VBR format
a=mpeg4-esid:201
a=control:trackID=0
a=rtpmap:96 H264/90000
a=fmtp:96 packetization-mode=1;profile-level-id=640032;....
m=application 0 RTP/AVP 107
i=ONVIF metadata
a=control:events
a=sendonly
a=rtpmap:107 vnd.onvif.metadata/90000
反正-方法來獲取流寬度,高度?建議...
祝福
如何在發出服務器請求時做RSTP分辨率選擇? –