CIS: CIWorker code written, but needs debugging
[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 INPUT_PATH = 'Downloads'
11 # Path from the Web Server where the output torrent files will be stored.
12 OUTPUT_TORRENTS_PATH = 'Downloads/tmp1'
13 # Path from the Web Server where the output thumbnail image files will be
14 # stored.
15 OUTPUT_THUMBS_PATH = 'Downloads/tmp2'
16
17
18 # === BITTORRENT CONFIGURATIONS ===
19 #BT_TRACKER = "http://p2p-next-10.grid.pub.ro:6969/announce"
20 BT_TRACKER = "http://localhost:6969/announce"
21
22
23 # === EXTERNAL PROGRAMS API CLASSES ===
24 # API class for a prgram which retrives audio/video information, like duration.
25 AVINFO_CLASS = avhandling.FFmpegAVInfo
26 # API class for a prgram which transcodes an audio/video file.
27 TRANSCODER_CLASS = avhandling.FFmpegTranscoder
28 # API class for a prgram which extracts thumbnail images from a file.
29 THUMB_EXTRACTOR_CLASS = avhandling.FFmpegThumbExtractor
30 # API class for a prgram which transfers files between Web Server and CIS.
31 FILE_TRANSFERER_CLASS = file_transfer.FTPFileTransferer
32
33
34 # === EXTERNAL PROGRAMS BINARY FILES ===
35 # Set this values to None if you want default values provided by the API
36 # class to be used.
37 # Binary of a prgram which retrives audio/video information, like duration.
38 AVINFO_BIN = None
39 # Binary of a prgram which transcodes an audio/video file.
40 TRANSCODER_BIN = None
41 # Binary of a prgram which extracts thumbnail images from a file.
42 THUMB_EXTRACTOR_BIN = None
43 # Binary of a prgram which transfers files between Web Server and CIS.
44 FILE_TRANSFERER_BIN = None