This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

rtp statistics on a loopback capture

0

Im trying to run TShark with a loopback capture and get a table of RTP statistics using: c:\tshark.exe -q -r <pcap file=""> -z rtp,streams.

for some reason I get an empty table. This is not the case for a non-loopback pcap file.

if I open the file with wireshark and decode as RTP I can see the RTP streams. Does anyone know why I can't get the statistics for this file??

asked 29 Apr '13, 04:37

Guy's gravatar image

Guy
1111
accept rate: 0%


One Answer:

0

if I open the file with wireshark and decode as RTP

if you have to 'Decode as..' in Wireshark, you'll have to do that in tshark as well, otherwise tshark will not realize that there are any RTP packets.

tshark -nr input.pcap -d udp.port==5555,rtp -z rtp,streams

Replace the port 5555 by whatever is used in your environment.

Regards
Kurt

answered 29 Apr '13, 08:50

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 29 Apr '13, 08:53

Hi Kurt,

Thanks for your reply! the problem is that the udp port is not something I can know in advance. This is why Im using " -o rtp.heuristic_rtp:TRUE" but for some reason it works on all pcap's except for a loopback capture. Do you know if there is a way to use -d udp.port==xxxx for all ports in the pcap file??

Thanks, Guy

(01 May '13, 00:24) Guy

but for some reason it works on all pcap's except for a loopback capture.

can you post a sample capture somewhere?

Do you know if there is a way to use -d udp.port==xxxx for all ports in the pcap file??

well, you could run tshark twice within a script. First, get all ports, then call tshark with multiple -d options for all ports in the capture file.

(01 May '13, 14:05) Kurt Knochner ♦