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
6ba8ecc0
authored
Apr 10, 2025
by
xiaoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
9457829c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
convert_webp_2_mp4.py
go.py
convert_webp_2_mp4.py
View file @
6ba8ecc0
...
...
@@ -16,7 +16,7 @@ from moviepy import VideoFileClip, clips_array
p_codec
=
"libx264"
# p_preset = "veryslow"
p_preset
=
"
medium
"
p_preset
=
"
veryslow
"
p_bitrate
=
"2000k"
p_threads
=
24
p_crf
=
"22"
...
...
go.py
View file @
6ba8ecc0
import
sys
import
convert_webp_2_mp4
# sys.argv 是一个列表,第一个元素是脚本名,后续是传递的参数
script_name
=
sys
.
argv
[
0
]
# 脚本名
webp_path_or_dir
=
sys
.
argv
[
1
]
# 第一个参数
crf
=
sys
.
argv
[
2
]
# 第一个参数
# convert_webp_2_mp4.p_crf = crf
# convert_webp_2_mp4.check_file_or_dir(webp_path_or_dir)
print
(
f
"输入的CRF{crf} 目录{webp_path_or_dir}"
)
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