Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
animegan2-pytorch
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
git
animegan2-pytorch
Commits
f0144d95
Commit
f0144d95
authored
Mar 30, 2023
by
mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
C
parent
2a8d80e0
Pipeline
#353
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
testVideo.py
testVideo.py
+3
-3
No files found.
testVideo.py
View file @
f0144d95
...
...
@@ -151,7 +151,7 @@ def video2comix(args):
# MPEG can not play in web
fourcc
=
cv2
.
VideoWriter_fourcc
(
*
"
H264
"
)
fourcc
=
cv2
.
VideoWriter_fourcc
(
*
"
MPEG
"
)
wh
=
(
frame_width
,
frame_height
)
#宽高32位格式化,不知道是不是会提高效率?
if
args
.
x32
:
...
...
@@ -192,8 +192,8 @@ def video2comix(args):
i
=
i
+
1
if
i
>
3
:
break
print
(
'----------video saved
.
'
+
outputmp4
)
call
([
"ffmpeg"
,
"-i"
,
outputmp4
,
"-vcodec"
,
"libx264"
,
"-f"
,
"mp4"
,
outputh264
])
print
(
'----------video saved
:
'
+
outputmp4
)
#
call(["ffmpeg", "-i", outputmp4, "-vcodec", "libx264", "-f", "mp4", outputh264])
print
(
'finish'
)
flow_video
.
release
()
vc
.
release
()
...
...
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