打开wireshark,监听相关网卡,打开rmtp流,利用wireshark进行抓包,有时候分析时可能需要筛选出视频或音频.
- 筛选Video
7.1.5. Video Message (9)
The client or the server sends this message to send video data to the
peer. The message type value of 9 is reserved for video messages.
rtmpt.video.data 或者 rtmpt.header.typeid == 9
- 筛选Audio
7.1.4. Audio Message (8)
The client or the server sends this message to send audio data to the
peer. The message type value of 8 is reserved for audio messages.
rtmpt.audio.data 或者 rtmpt.header.typeid == 8
作者:FlyingPenguin
链接:http://www.jianshu.com/p/d7e51c926e01