5 # Make here all necessary imports required for API classes.
6 from api import avhandling
7 from api import file_transfer
10 # === GENERAL CONFIGURATIONS ===
11 LOG_LEVEL = logger.LOG_LEVEL_DEBUG
13 START_DOWNLOADS_INTERVAL = 24 * 3600.0 # Once a day
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
23 WS_THUMBS_PATH = 'tmp/data/thumbs'
26 # === BITTORRENT CONFIGURATIONS ===
27 #BT_TRACKER = "http://p2p-next-10.grid.pub.ro:6969/announce"
28 BT_TRACKER = 'http://localhost:6969/announce'
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
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
48 # === EXTERNAL PROGRAMS BINARY FILES ===
49 # Set this values to None if you want default values provided by the API
51 # Binary of a prgram which retrives audio/video information, like duration.
53 # Binary of a prgram which transcodes an audio/video file.
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