RTMPDUMP
RTMPDUMP is a good tools to dump rtmp stream into a file and analyze the rtmp protocol.
Below are some commands
VOD
Variables
app -> your rtmp application name
path -> your rtmp path in the application to the file (optional)
file.mp4 -> your VOD file name
output.mp4 -> your output file name to local disk
Commands
-z -> debug print mode
-r -> rtmp url
-o -> output file
Live
rtmpdump.exe -r "rtmp://host:port/app/path" -v -y "live.stream" -o "output.mp4" -z
Variables
app -> your rtmp application name
path -> your rtmp path in the application to the file (optional)
live.stream -> your live stream path
output.mp4 -> your output file name to local disk
Commands
-z -> debug print mode
-r -> rtmp url
-o -> output file
-v -> live stream (denoting this will provide play time to a negative value)
-y -> the play path for your stream
If you run rtmpdump at command prompt, it will print its debug message at stdout. However, these debug message cannot be pipe to other output (such as writing debug output to file). The reason being is rtmpdump printing these debug message in stderr.
One way to get the output is to write a Java class that capture the error stream output from rtmpdump.
Read http://rtmpdump.mplayerhq.hu/rtmpdump.1.html for full commands
Comments
Post a Comment