-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
48 lines (47 loc) · 1.28 KB
/
main.py
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from src.start import start
from src.settings import *
if __name__ == "__main__":
start((
Settings(
input=r"D:\Videos", # dir or file
output_dir=r'D:\Videos\conv', # dir
main_audio=Settings.Audio(
track=0,
remove=False,
),
mic_audio=Settings.Audio(
track=1,
amplify=10,
noise_file=Path(__file__).parent / 'data/mic_noise.wav',
remove=True,
),
encode=Settings.Encode(
device=Encoder.Device.GPU,
format=Encoder.Format.H264,
speed=Encoder.Speed.SLOW,
target_bit_rate=10, # in megabits
target_size=None, # in megabits
)
),
# Settings(
# input=r"D:\Videos\3.mp4", # dir or file
# output_dir=r'D:\Videos\conv', # dir
# main_audio=Settings.Audio(
# track=0,
# remove=False,
# ),
# mic_audio=Settings.Audio(
# track=1,
# amplify=10,
# noise_file=Path(__file__).parent / 'data/mic_noise.wav',
# remove=False,
# ),
# encode=Settings.Encode(
# device=Encoder.Device.GPU,
# format=Encoder.Format.H264,
# speed=Encoder.Speed.SLOW,
# target_bit_rate=10, # in megabits
# target_size=None, # in megabits
# )
# ),
))