c68d05c6a7a9b4b292abad6624d6ef8d66362c28
[living-lab-site.git] / cis / config.py
1 #!/usr/bin/env python
2
3 import logger
4
5 # Make here all necessary imports required for API classes.
6 from api import avhandling
7 from api import file_transfer
8
9
10 # === GENERAL CONFIGURATIONS ===
11 LOG_LEVEL = logger.LOG_LEVEL_DEBUG
12 SECURITY = False
13 START_DOWNLOADS_INTERVAL = 24 * 3600.0 # Once a day
14
15
16 # === FILE TRANSFER CONFIGURATIONS ===
17 # Path from the Web Server where the raw input video file is stored.
18 WS_UPLOAD_PATH = 'tmp/data/upload'
19 # Path from the Web Server where the output torrent files will be stored.
20 WS_TORRENTS_PATH = 'tmp/data/torrents'
21 # Path from the Web Server where the output thumbnail image files will be
22 # stored.
23 WS_THUMBS_PATH = 'tmp/data/thumbs'
24
25
26 # === BITTORRENT CONFIGURATIONS ===
27 #BT_TRACKER = "http://p2p-next-10.grid.pub.ro:6969/announce"
28 BT_TRACKER = 'http://localhost:6969/announce'
29
30
31 RAW_VIDEOS_PATH = 'tmp/raw'
32 MEDIA_PATH = 'tmp/media'
33 THUMBS_PATH = 'tmp/thumbs'
34 TORRENTS_PATH = 'tmp/torrents' # In a distributed file system for multi-CIS
35
36
37 # === EXTERNAL PROGRAMS API CLASSES ===
38 # API class for a prgram which retrives audio/video information, like duration.
39 AVINFO_CLASS = avhandling.FFprobeAVInfo
40 # API class for a prgram which transcodes an audio/video file.
41 TRANSCODER_CLASS = avhandling.FFmpegTranscoder
42 # API class for a prgram which extracts thumbnail images from a file.
43 THUMB_EXTRACTOR_CLASS = avhandling.FFmpegThumbExtractor
44 # API class for a prgram which transfers files between Web Server and CIS.
45 FILE_TRANSFERER_CLASS = file_transfer.FTPFileTransferer
46
47
48 # === EXTERNAL PROGRAMS BINARY FILES ===
49 # Set this values to None if you want default values provided by the API
50 # class to be used.
51 # Binary of a prgram which retrives audio/video information, like duration.
52 AVINFO_BIN = None
53 # Binary of a prgram which transcodes an audio/video file.
54 TRANSCODER_BIN = None
55 # Binary of a prgram which extracts thumbnail images from a file.
56 THUMB_EXTRACTOR_BIN = None
57 # Binary of a prgram which transfers files between Web Server and CIS.
58 FILE_TRANSFERER_BIN = None