Commit 5b4e31de authored by mac's avatar mac

no message

parent 68709fb7
Pipeline #384 canceled with stages
......@@ -167,13 +167,13 @@ def video2comix(args):
# MPEG can not play in web
fourcc = cv2.VideoWriter_fourcc(*"H264")
fourcc = cv2.VideoWriter_fourcc(*"avc1") #H264 avc1
wh = (frame_width, frame_height)
#宽高32位格式化,不知道是不是会提高效率?
if args.x32:
wh = (to_32s(frame_width), to_32s(frame_height))
print('video output w,h:', str(wh))
flow_video = cv2.VideoWriter(outputmp4, fourcc, fps_flow, wh, 0)
flow_video = cv2.VideoWriter(outputmp4, fourcc, fps_flow, wh)
i = 0
step = fps / fps_flow #根据fps算要跳几帧,比如:24fpx/5fpx=4,即每4帧读取下,1秒大概读取4~5帧
n = 0 #帧数
......
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