shengShenLan commited on
Commit
2d3633d
1 Parent(s): 953c6ae
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -34,6 +34,8 @@ def video_processor(video):
34
 
35
  d = os.path.dirname(video)
36
  # 创建一个VideoWriter对象,输出为mp4格式
 
 
37
  fourcc = cv2.VideoWriter_fourcc(*'avc1')
38
  out = cv2.VideoWriter(os.path.join(d,'output.mp4'), fourcc, fps, (width, height))
39
  print(os.path.exists(os.path.join(d,'output.mp4')))
 
34
 
35
  d = os.path.dirname(video)
36
  # 创建一个VideoWriter对象,输出为mp4格式
37
+ for fourcc in cv2.VideoWriter_fourcc(*'ALL'):
38
+ print(f'{fourcc:04X}: {cv2.VideoWriter_fourccText(fourcc)}')
39
  fourcc = cv2.VideoWriter_fourcc(*'avc1')
40
  out = cv2.VideoWriter(os.path.join(d,'output.mp4'), fourcc, fps, (width, height))
41
  print(os.path.exists(os.path.join(d,'output.mp4')))