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