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