-
Notifications
You must be signed in to change notification settings - Fork 3
/
config_override.py
39 lines (35 loc) · 2.07 KB
/
config_override.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
# config_override.py
configs = {
'input': {
# Replace with your video path in the following.
'video_path': 'your_video.mp4',
'file_path': 'your_input_folder/'
# Other optional properties:
# audio_path: path of the audio used to replace original one (用于替换的音频文件地址)
# video_duration: subclip of the target video (目标视频选取时间段)
},
'danmaku': {
# Add your customized danmaku style changes here.
# You can change the following features,
# fonts: fonts of English/Japanese/Chinese (英语/日语/中文字体。对Windows用户:建议使用只包含英文字母的路径)
# fontsize: size of the danmaku font (弹幕字体大小)
# comment_color: color of the comments (弹幕评论部分颜色)
# translation_color: color of the translation (弹幕中文翻译部分颜色)
# duration: lifetime of the danmaku (弹幕存活时间)
# fps: danmaku animation fps setting (弹幕运动帧率)
# background_rgb: RGB color of danmaku' background (弹幕背景颜色)
# background_opacity: opacity of danmaku' background (弹幕背景透明度)[注:用ffmpeg导出会失效]
# coverage: portion of emerging area of danmaku over the video (弹幕显示区域)
# time_range_to_appear: time range of the video where danmaku can appear (弹幕可出现时间段)
# You can refer the default settings in config_default.py file.
},
'output': {
# Add your customized video output settings here.
# You can change the following features,
# codec: video encoding method (视频导出编码)[FFmpeg硬件加速: h264_videotoolbox, h264_nvenc]
# bitrate: video bitrate (视频比特率)
# threads: cpu threads used for exporting video (视频导出使用CPU线程数,建议尽量高)
# video_name: output video name, 'video_danmaku.mp4' defaultly (输出文件名)
# You can refer the default settings in config_default.py file.
}
}