changeset 805:546058da8f07

Update example configuration.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 24 Nov 2014 09:33:45 +0200
parents 390241b1d549
children 59528ba5813a
files mconfig.inc.php.example
diffstat 1 files changed, 29 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mconfig.inc.php.example	Mon Nov 24 09:32:03 2014 +0200
+++ b/mconfig.inc.php.example	Mon Nov 24 09:33:45 2014 +0200
@@ -38,16 +38,41 @@
   "userTimeout"     => 120, // In minutes
   "admTimeout"      => 15,
 
+
   // Entry file paths and URL prefixes
   "entryPath" => "/home/ccr/files/", // should be absolute path
-  "previewPath" => "/home/ccr/fapdev/files/", // should be absolute path
-  "previewURL" => "http://localhost:8888/files/", // can be relative (should point to same dir as previewPath)
+  "entryPathPerms" => 0755,
+  "entryFilePerms" => 0644,
+  
+  "previewPath" => "/home/ccr/fapdev/previews/", // should be absolute path
+  "previewURL" => "http://localhost:8888/previews/", // can be relative (should point to same dir as previewPath)
   "thumbnailSubDir" => "tn/", // relative subdir to previewPath and previewURL
-  
-  "previewImageSize" => array(640, 480),
+  "previewPathPerms" => 0711,
+  "previewFilePerms" => 0644,
+
+  // Generated sample files settings
+  // Used for openmpt123 and avconv
+  "sampleFreq" => 44100, // in Hz
+  "sampleChannels" => 1, // 1 = mono, 2 = stereo
+  "sampleDuration" => 30, // in seconds
+
+  // Samples to be generated, and their quality settings
+  "sampleTypes" => array(
+    "MP3"       => array("-b:a", 96), // cbr kbps
+    "OggVorbis" => array("-q:a", 5),  // encoding quality setting
+  ),
+
+  // Preview image files settings
+  "previewImageType" => "PNG", // Generally PNG or JPEG
+  "previewImageQuality" => 9, // compression (PNG) or quality (JPEG)
+  "previewImageSize" => array(640, 480), // resolution W x H
+
+  "previewThumbType" => "PNG",
+  "previewThumbQuality" => 9, // compression (PNG) or quality (JPEG)
   "previewThumbSize" => array(64, 48),
 );
 
+
 date_default_timezone_set("Europe/Helsinki");
 
 $securePages = array(