Commit f0144d95 authored by mac's avatar mac

C

parent 2a8d80e0
Pipeline #353 canceled with stages
...@@ -151,7 +151,7 @@ def video2comix(args): ...@@ -151,7 +151,7 @@ def video2comix(args):
# MPEG can not play in web # MPEG can not play in web
fourcc = cv2.VideoWriter_fourcc(*"H264") fourcc = cv2.VideoWriter_fourcc(*"MPEG")
wh = (frame_width, frame_height) wh = (frame_width, frame_height)
#宽高32位格式化,不知道是不是会提高效率? #宽高32位格式化,不知道是不是会提高效率?
if args.x32: if args.x32:
...@@ -192,8 +192,8 @@ def video2comix(args): ...@@ -192,8 +192,8 @@ def video2comix(args):
i = i + 1 i = i + 1
if i > 3: if i > 3:
break break
print('----------video saved.'+ outputmp4) print('----------video saved: '+ outputmp4)
call(["ffmpeg", "-i", outputmp4, "-vcodec", "libx264", "-f", "mp4", outputh264]) #call(["ffmpeg", "-i", outputmp4, "-vcodec", "libx264", "-f", "mp4", outputh264])
print('finish') print('finish')
flow_video.release() flow_video.release()
vc.release() vc.release()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment