V2.2.4 版本
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 1.4 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.2 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
@@ -11,7 +11,7 @@ import shotSplit
|
||||
|
||||
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
|
||||
|
||||
# sys.argv = ["C:\\Users\\27698\\Desktop\\LAITool\\resources\\scripts\\Lai.exe","-c","D:/父爱如山倒/scripts/output_crop_00001.json"]
|
||||
# sys.argv = ["C:\\Users\\27698\\Desktop\\LAITool\\resources\\scripts\\Lai.exe","-c","C:/Users/27698/Desktop/测试/123/scripts/output_crop_00001.json"]
|
||||
print(sys.argv)
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -376,11 +376,19 @@ class ImageToVideo:
|
||||
proportion_height = img_height / 3200
|
||||
proportion_width = img_height / 3200
|
||||
|
||||
if offset["name"] == "KFTypePositionY":
|
||||
key_frame = offset["name"]
|
||||
offset_list = ["KFTypePositionY", "KFTypePositionX"]
|
||||
real_key_frame = key_frame
|
||||
|
||||
if key_frame == "KFTypeRandom":
|
||||
# 随机获取 offset_list 中的一个数据
|
||||
real_key_frame = offset_list[np.random.randint(0, 2)]
|
||||
|
||||
if real_key_frame == "KFTypePositionY":
|
||||
offsetValue = offset["up_down"] * proportion_height
|
||||
elif offset["name"] == "KFTypePositionX":
|
||||
elif real_key_frame == "KFTypePositionX":
|
||||
offsetValue = offset["left_right"] * proportion_width
|
||||
elif offset["name"] == "KFTypeScale":
|
||||
elif real_key_frame == "KFTypeScale":
|
||||
offsetValue = offset["scale"]
|
||||
else:
|
||||
return ValueError("关键帧没有设置正确的参数")
|
||||
@@ -402,7 +410,7 @@ class ImageToVideo:
|
||||
end_offset,
|
||||
self.fps,
|
||||
self.video_size,
|
||||
offset["name"],
|
||||
real_key_frame,
|
||||
)
|
||||
video_arr.append(video_path)
|
||||
print(video_path)
|
||||
@@ -418,7 +426,7 @@ class ImageToVideo:
|
||||
print(number)
|
||||
|
||||
filtered_data = [item for item in config_data if item["no"] == number]
|
||||
|
||||
|
||||
# print(filtered_data)
|
||||
cmd = [
|
||||
self.ffprobe_path,
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
@echo off
|
||||
pyinstaller Lai.spec
|
||||
@@ -4,7 +4,6 @@
|
||||
{
|
||||
"curveType": "Line",
|
||||
"graphID": "",
|
||||
"id": "389CE3AB-19DF-4EC8-B712-454C224D0D92",
|
||||
"left_control": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
@@ -21,7 +20,6 @@
|
||||
{
|
||||
"curveType": "Line",
|
||||
"graphID": "",
|
||||
"id": "3F5A033A-9088-4AED-BBF6-50DEBE67BCA5",
|
||||
"left_control": {
|
||||
"x": 0.0,
|
||||
"y": 0.0
|
||||
|
||||
Reference in New Issue
Block a user