-
Notifications
You must be signed in to change notification settings - Fork 21
/
publisher.conf.sample
35 lines (34 loc) · 1.34 KB
/
publisher.conf.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{capture, cam1, [
%
% This is a config for Erlyvideo capture program
% Config is written in erlang syntax, so be careful at "," sign in the end of lists
%
% audio_capture should be modified only if you want to change microphone. Better if no
% resampling is done
%
% video_capture can be of two type: uvc and rtsp.
% Here goes example for two of them.
%
% uvc is working with web cameras and requires size, fps and path to libx264 config
% rtsp needs only RTSP url
%
% debug option will show you all written frames
%
{audio_capture, [{type,alsa},{channels,2},{sample_rate,32000}]},
{video_capture, [{device,1},{type,uvc},{size,{640,360}},{fps,20},{config,"encoder-low.preset"}]},
%{video_capture, [{type,rtsp},{url, "rtsp://root:[email protected]/axis-media/media.amp"}]},
{debug,false}
]}.
%
% publish option tells which camera where to publish
%
% Mention, that first segment of RTMP path is an application name,
% so you can't write rtmp://192.168.0.1/cam5. You MUST write rtmp://192.168.0.1/live/cam5
% Application name can be any. It really doesn't matter which one it is.
%
%{publish, cam1, publisher1, "rtmp://192.168.0.95/live/cam6"}.
{publish, cam1, publisher1, "rtmp://rtmp.server.local/cameras/cam0", [
{schedule, "http://server.ru/api/schedule?login=cam0"}
]}.
{publish, cam1, publisher2, "rtmp://rtmp.server.local/cameras/cam1"}.
{listen, 1936}.