3 # Make here all necessary imports required for API classes.
4 from api import avhandling
5 from api import file_transfer
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
15 OUTPUT_THUMBS_PATH = 'Downloads/tmp2'
18 # === BITTORRENT CONFIGURATIONS ===
19 #BT_TRACKER = "http://p2p-next-10.grid.pub.ro:6969/announce"
20 BT_TRACKER = "http://localhost:6969/announce"
23 # === EXTERNAL PROGRAMS API CLASSES ===
24 # API class for a prgram which retrives audio/video information, like duration.
25 AVINFO_CLASS = avhandling.FFprobeAVInfo
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
34 # === EXTERNAL PROGRAMS BINARY FILES ===
35 # Set this values to None if you want default values provided by the API
37 # Binary of a prgram which retrives audio/video information, like duration.
39 # Binary of a prgram which transcodes an audio/video file.
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