-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.inc.php
46 lines (32 loc) · 1.89 KB
/
config.inc.php
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
36
37
38
39
40
41
42
43
44
<?php
/*
PHP Live Transcode -- HTML5 and Flash streaming with live transcoding.
Copyright (C) 2010 Matthias -apoc- Hecker <http://apoc.cc>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Please read
http://sixserv.org/2010/11/30/live-transcoding-for-video-and-audio-streaming/
for more information. */
/* you propaply want to adjust these settings for your system */
define('SMARTY_LIBRARY', 'Smarty/Smarty.class.php');
define('SMARTY_TEMPLATE', 'template/');
define('SMARTY_COMPILE', 'template_compile/');
/* you may want to specify absolute paths */
define('FFMPEG', 'ffmpeg'); /* used for transcoding*/
define('MPLAYER', 'mplayer'); /* used to gather file information */
define('FFMPEG_MAX_INSTANCES', '3'); /* how many ffmpeg instances are allowed to run (thats x concurrent viewers) */
define('FFMPEG_PRIORITY', '15'); /* man nice */
define('CHUNKSIZE', 500*1024); /* how many bytes should fread() read from stdout of FFmpeg? */
define('DEBUG_LOG', '/srv/media/streamer.log'); /* very useful debug information. logs stderr of ffmpeg! */
define('MEDIA_PATH', '/srv/media'); /* the folder is accessible by create.php/<filename> subfolders are not supported! */
/* make sure php can read it (openbasedir etc.) */
define('BASE_URL', 'http://example.com/streamer'); /* full url to the installation */