nephos.preprocessor.methods
index
/media/hdd/Essentials/Chapter_Kgp_WOrk/GSoC/projectnephos_gsoc18/GSoC18Nephos/nephos/preprocessor/methods.py

Contains all the methods applied in preprocessing

 
Modules
       
json
os
subprocess

 
Classes
       
builtins.object
ApplyProcessMethods

 
class ApplyProcessMethods(builtins.object)
    Handles application of pipeline of processing the recording and
eventually updating the database.
 
  Methods defined here:
__init__(self, path_to_file, store_path)
Loads the file to be processed, modifies status to "processing" and calls
apply_methods on it.
 
Parameters
----------
path_to_file
    type: str
    path to file to be processed
store_path
    type: str
    path to directory to store the files, post-processing

Static methods defined here:
get_lang(path_to_file)
Uses ffprobe to gather information about languages present in the stream.
 
Parameters
----------
path_to_file
    type: str
    path to file to be processed
 
Returns
-------
aud_lang
    type: str
    audio languages
sub_lang
    type: str
    subtitle languages

Data descriptors defined here:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

 
Data
        CH_COUN_INDEX = 3
CH_LANG_INDEX = 4
CH_TMZ_INDEX = 5
GET_CH_INFO = 'SELECT *\n FROM channels\n WHERE name = ?'
GET_TASK_INFO = 'SELECT *\n FROM tasks\n WHERE orig_path = ?'
LOG = <logging.Logger object>
MIN_BYTES = 1024
PATH_TO_PROCESSING_SCRIPT = '/home/thealpha/Nephos/config/processing.sh'
SET_PROCESSED_COMMAND = 'UPDATE tasks\n SET status = "processed"\n WHERE orig_path = ?'
SET_PROCESSING_COMMAND = 'UPDATE tasks\n SET status = "processing"\n WHERE orig_path = ?'
SET_SHARE_COMMAND = 'UPDATE tasks\n SET share_with = ?\n WHERE orig_path = ?'
SL_MAIL_INDEX = 1
SL_TAG_INDEX = 2
TSK_CHNAME_INDEX = 3
TSK_LANG_INDEX = 4
TSK_SUBLANG_INDEX = 5
__config_dir__ = '/home/thealpha/Nephos/config'