Is there an alternative to writing 'codec' four times in the argument list?
codec = 'XVID'
fourcc = cv.CV_FOURCC(codec[0], codec[1], codec[2], codec[3])
When I do this the argument is just one because the result of ','.join(ls) is a string. Is there a way to pass four arguments without having to do what is in the above example?
codec = 'XVID'
ls = list(codec)
fourcc = cv.CV_FOURCC(','.join(ls))