打开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

最后修改:2017 年 07 月 26 日 08 : 01 PM