You've already forked my-video-workflow
使用handbrake进行视频压制
This commit is contained in:
@ -26,15 +26,9 @@ def do_workflow(video_file, danmaku_base_file, *danmaku_files):
|
||||
print("弹幕文件", danmaku_file, "异常")
|
||||
continue
|
||||
print(result)
|
||||
file_need_split = encode_video_with_subtitles(video_file, result, start_ts)
|
||||
_video_parts = []
|
||||
for file in file_need_split:
|
||||
_video_parts += quick_split_video(file)
|
||||
_video_parts = encode_video_with_subtitles(video_file, result, start_ts)
|
||||
# clean files
|
||||
for file in result:
|
||||
if os.path.isfile(file):
|
||||
os.remove(file)
|
||||
for file in file_need_split:
|
||||
if os.path.isfile(file):
|
||||
os.remove(file)
|
||||
return _video_parts
|
||||
|
Reference in New Issue
Block a user