Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 731 Bytes

File metadata and controls

30 lines (18 loc) · 731 Bytes

Show decoded RTMP commands from pcap wire data.

Only a subset of RTMP is implemented!

If a stream contains both connect and play commands, an rtmpdump translation will be shown.

Install:

go install github.com/jamessanford/rtmp-debug@latest

Usage:

rtmp-debug -i en4
rtmp-debug -f file.pcap

Internals:

We use tcpreader to get the invidual TCP streams.

We create individual processNewMessage goroutines for every "chunk stream ID" inside the TCP stream.

Dechunked messages are sent into their "chunk stream ID" goroutine for decoding.

Decoded commands are sent into one MessageFinalizer per TCP stream.

MessageFinalizer sends anything useful into the final results channel.