WCS allows to capture streams from certain sources automatically on server start. These streams are published on server to play or republish it.
Supported capture technologies
- RTMP
- RTSP
- WebRTC
- Pcap (захват потока из файла дампа)
To capture stream on server start the option in flashphoner.properties file must be set
pull_streams=rtmp://rtmp.server.com/live/stream1;rtsp://rtsp.server.com/stream2;...
Stream sources are listed trough semicolon. Streams captured will be named on server as sources URL.
Automatic stream capture 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
31070-31072-test.pcap
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
31070-31072-test.pcap.sdp
SDP file example:
v=0 o=Gateway-0.0.0.666 0 0 IN IP[local_ip_type] [local_ip] s=- c=IN IP[local_ip_type] [local_ip] t=0 0 m=audio 0 RTP/AVP 0 101 a=rtpmap:0 PCMU/8000 a=rtpmap:101 telephone-event/8000 a=sendrecv m=video 0 RTP/AVP 112 a=rtpmap:112 H264/90000 a=fmtp:112 profile-level-id=42e01f; packetization-mode=1 a=content:main a=rtcp-fb:* ccm fir a=rtcp-fb:* nack pli a=sendrecv
Dump file and SDP file must be placed to /usr/local/FlashphonerWebCallServer/media directory on server.