File size: 669 Bytes
0c87db7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Core plugin
# author: Vladislav Janvarev

from chain_img_processor import ChainImgProcessor, ChainVideoProcessor

# start function
def start(core:ChainImgProcessor):
    manifest = {
        "name": "Core video plugin",
        "version": "2.0",

        "default_options": {
            "video_save_codec": "libx264", # default codec to save
            "video_save_crf": 14, # default crf to save
        },

    }
    return manifest

def start_with_options(core:ChainVideoProcessor, manifest:dict):
    options = manifest["options"]

    core.video_save_codec = options["video_save_codec"]
    core.video_save_crf = options["video_save_crf"]

    return manifest