In [2]:
import video_processing as vp
import os

In [ ]:
working_directory = '.'
os.chdir(working_directory)

In [4]:
THREADS = 3

Backup


In [ ]:
SD_NAME='some_uuid'
session='test'
vp.backup(SD_NAME,session,erase=False)

Join sessions


In [ ]:
vp.join_sessions(threads=THREADS)

Cut and encode

Complete the config_dict before anything else


In [ ]:
config_dict = {
    'session1':{
        'video': [{'start':'00:00:00', 'end':'00:05:08'}],
        'vid_in_2parts': [{'start':'00:06:00', 'end':'00:07:58'}, {'start':'00:08:00', 'end':'00:09:58'}],
        'other': [{'start':'01:00:00', 'end':'01:09:07'}]
    },
    'session2':{
        'video1': [{'start':'00:00:10', 'end':'00:03:00'}],
        'video2': [{'start':'00:04:00', 'end':'00:05:07'}]
    },
}

In [ ]:
vp.cut_encode(config_dict, threads=THREADS)