Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For debugging purpose, WCS includes the utility to capture RTSP stream from file obtained by tcpdump or any other IP packets dump collection tool. Then, the stream is published via RTSP, emulating IP camera. In its turn, WSC can capture RTSP stream from this "camera". The feature is useful when RTSP-source itself is not accessible, but there are dump files of stream from that source. The utility works with RTSP iterleaved interleaved session files only.

To launch utility the following parameters mus must be set:

  • a directory containing dump files on server
  • a port to listen RTSP incoming connections
  • a source port for the stream dumped
  • a condition to handle dropped packets

...

Code Block
languagebash
themeRDark
java -Dcom.flashphoner.fms.AppHome=/usr/local/FlashphonerWebCallServer -cp /usr/local/FlashphonerWebCallServer/lib/tbswcs-flashphonercore.jar:/usr/local/FlashphonerWebCallServer/lib/* com.flashphoner.tools.rtsp.RtspPcapServer /usr/local/FlashphonerWebCallServer/pcaps 3554 2554 true

...

The utility prints all information to stdout. Foe For example, if there is one file log.pcap in /usr/local/FlashphonerWebCallServer/pcaps directory, the following will be prited printed to console:

Code Block
languagebash
themeRDark
04:35:20,721 INFO        RtspPcapServer - Starting
04:35:22,244 INFO        RtspPcapServer - Available sources:
04:35:22,245 INFO        RtspPcapServer - Source{path=/usr/local/FlashphonerWebCallServer/pcaps/log.pcap, pcap=io.pkts.Pcap@5a39699c, stream=RTSPStream{config=8, data=22052, streamName='live1.sdp'}}
04:35:22,245 INFO        RtspPcapServer - Starting PCAP RTSP server
04:35:22,407 INFO        RtspPcapServer - Listening PCAP RTSP on address /0.0.0.0 port 554

...