Surveillance cameras
Erlyvideo can capture video from modern H.264 cameras, save it into archive and playback from archive. It has some commercial features, you should contact us if you are interested. Very important one is videoregistrator.
Technical
Surveillance cameras usually have 3 ways to stream video: MJPEG, MPEG-4 and H.264 Erlyvideo can work with H.264 cameras, speaking with them by RTSP. Following cameras are known to work:
- Beward 1070
- H.264 Axis IP cameras
To setup camera you should have following config:
{rtmp_port, 1935}.
{rtsp_port, 8081}.
{http_port, 8082}.
{vhosts, [
{default, [
{hostname, ["localhost"]},
{modules, [trusted_login, apps_streaming]},
{secret_key, "123"},
{access_log, {"log", "access", {size, 1000000}, 10, "log", info}},
{error_log, {"log", "error", {size, 1000000}, 10, "log", info}},
{file_dir, "/tmp"},
{wwwroot, "wwwroot"},
{rewrite, [
{"camera", rtsp, "rtsp://IP:554/axis-media/media.amp", [{timeout,20000}]}
]}
]}
]}.
MPEG-4
Erlyvideo doesn't have builtin transcoder yet, so you are advised to try VLC for transcoding:
./vlc -I dummy -v --repeat --no-drop-late-frames --no-skip-frames --no-ffmpeg-hurry-up --no-sout-transcode-hurry-up --rt-priority rtsp://192.168.2.4/play1.sdp :sout='#transcode{vcodec=h264{cabac=yes,bframes=0,keyint=5,qpmin=20,qpmax=50,ref=5,merange=24,mixed-refs=yes,direct=auto,me=umh,subme=7,trellis=2,weightb=yes,partitions=all,vbv-maxrate=920,vbv-bufsize=9000,ratetol=100.0,scenecut=60},vb=800,scale=1,acodec=mp4a,ab=128,channels=1,samplerate=44100}:duplicate{dst=std{access=http,mux=ts,dst=0.0.0.0:1234},dst=display}'
reverse_mpegts http://localhost:1234/ http://erlyvideo-ip:8082/stream/camera
Archive
Erlyvideo can save stream from camera to disk, splitted in files and can play them later. Combining with large storage it makes erlyvideo good solution for videoregistrator.
RTSP
Mentioned earlier RTSP is a protocol, used to by IP web cameras and software like Quicktime Broadcaster or Wirecast.
RTSP support is extracted from erlyvideo into library http://github.com/erlyvideo/ertsp and it is possible to use this library outside of erlyvideo.