Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
xiaoqi
/
mp4giftconvert
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
c3211600
authored
Apr 18, 2025
by
xiaoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脚本
parent
77402b2a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
go.py
go.py
View file @
c3211600
...
@@ -53,6 +53,7 @@ sharpening = sys.argv[6] # 第一个参数
...
@@ -53,6 +53,7 @@ sharpening = sys.argv[6] # 第一个参数
denoising
=
sys
.
argv
[
7
]
# 第一个参数
denoising
=
sys
.
argv
[
7
]
# 第一个参数
color_enhancement
=
sys
.
argv
[
8
]
# 第一个参数
color_enhancement
=
sys
.
argv
[
8
]
# 第一个参数
webp_path_or_dir
=
sys
.
argv
[
9
]
# 第一个参数
webp_path_or_dir
=
sys
.
argv
[
9
]
# 第一个参数
codec
=
sys
.
argv
[
10
]
# 第一个参数
# if not is_null_or_empty(gift_id):
# if not is_null_or_empty(gift_id):
# webp_path_or_dir = find_first_file("webp_dir", gift_id)
# webp_path_or_dir = find_first_file("webp_dir", gift_id)
# else:
# else:
...
@@ -63,6 +64,7 @@ if not is_null_or_empty(fps):
...
@@ -63,6 +64,7 @@ if not is_null_or_empty(fps):
convert_webp_2_mp4
.
p_fps
=
int
(
fps
)
convert_webp_2_mp4
.
p_fps
=
int
(
fps
)
convert_webp_2_mp4
.
p_enable_sharpening
=
sharpening
convert_webp_2_mp4
.
p_enable_sharpening
=
sharpening
convert_webp_2_mp4
.
p_bitrate
=
bitrate
convert_webp_2_mp4
.
p_bitrate
=
bitrate
convert_webp_2_mp4
.
p_codec
=
codec
convert_webp_2_mp4
.
p_enable_denoising
=
denoising
convert_webp_2_mp4
.
p_enable_denoising
=
denoising
convert_webp_2_mp4
.
p_enable_color_enhancement
=
color_enhancement
convert_webp_2_mp4
.
p_enable_color_enhancement
=
color_enhancement
# convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir)
# convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir)
...
@@ -96,7 +98,8 @@ def get_output_name():
...
@@ -96,7 +98,8 @@ def get_output_name():
parts
.
append
(
f
"denoising-{denoising}"
)
parts
.
append
(
f
"denoising-{denoising}"
)
if
not
is_null_or_empty
(
color_enhancement
):
if
not
is_null_or_empty
(
color_enhancement
):
parts
.
append
(
f
"color-{color_enhancement}"
)
parts
.
append
(
f
"color-{color_enhancement}"
)
if
not
is_null_or_empty
(
codec
):
parts
.
append
(
f
"codec-{codec}"
)
# 拼接所有部分,并用 '-' 连接
# 拼接所有部分,并用 '-' 连接
output_name
=
"-"
.
join
(
parts
)
output_name
=
"-"
.
join
(
parts
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment