Save grayscale video in OpenCV?

后端 未结 3 1858
梦毁少年i
梦毁少年i 2021-01-17 19:55

I am trying to save a video as .avi format but i keep getting the error \"could not demultiplex stream\". I primarily want to save grayscale videos

3条回答
  •  天涯浪人
    2021-01-17 20:26

    For Windows OS try:

    out = cv2.VideoWriter(outfilename, fourcc, fps, (width, height), 0)
    

提交回复
热议问题