Thursday 15 June 2023

How to observe the RTSP stream using tshark?

Ref: https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_NTP_Timestamp.html

 

Example method to check if RTSP source sends RTCP sender reports using a tool like tshark:

Note

We assume RTSP source has IP address 192.168.1.100

  1. Install tshark on a host: sudo apt-get install tshark

  2. Find the host network interface that would be receiving the RTP/RTCP packets:

    $ sudo tshark -D
    ...
    eno1
    ...
    
  3. Start the monitoring using tshark tool. Replace the network interface and source IP as applicable:

    $ sudo tshark -i eno1 -f "src host 192.168.1.100" -Y "rtcp"
    
  4. On the same host, start streaming from the RTSP source only after starting the monitoring tool. Any client may be used:

    $ gst-launch-1.0 rtspsrc location= <RTSP URL e.g. rtsp://192.168.1.100/stream1> ! fakesink
    
  5. The output of the tshark monitoring tool should have lines containing "Sender Report   Source description". Here is a sample output:

    6041 10.500649319 192.168.1.100 → 192.168.1.101 RTCP 94 Sender Report   Source description

No comments:

Post a Comment