Stream capture of UDP audio and video traffic from dump file
WCS can automatically capture and play stream from the specified file in Pcap format. The file must be formed with tcpdump or any other tool to collect IP packets. This feature is useful primarily for debugging in the development of applicationsю
File name must be set in audioPort-videoPort-name.pcap form, for example
where 31070 is audio packets port and 31072 is video packets port.
SDP file must be added to every pcap file. SDP file must be named similarly to pcap file
SDP file example:
Dump file and SDP file must be placed to /usr/local/FlashphonerWebCallServer/media directory on server.
RTSP-interleaved stream capture from dump file
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 session files only.
To launch utility the following parameters mus 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
/usr/local/FlashphonerWebCallServer/pcaps - directory on server
3554 - port on which IP camera will be emulated
2554 - source port for dump file (real IP camera)
true - ignore packets dropped while collecting dump file.
If WCS is launched on this server, the second parameter port number should be out of ranges used by WCS. The stream that will be available on this port, will be named as the stream in the dump file.
The utility prints all information to stdout. Foe example, if there is one file log.pcap in /usr/local/FlashphonerWebCallServer/pcaps directory, the following will be prited to console:
In this case, stream can be captured from address
where hostname is server name with utility running.
If the directory contains a number of dump files, the stream names should not be the same, only one of such streams will be captured.