Skip to content

jamessanford/rtmp-debug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Decode RTMP commands from pcap wire data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages