Video file is damaged while writing it to the VideoWriter Object using object.write() method [closed]
I am trying to read in a video file in local system using a streaming layer built on top of the VideoCapture object and then trying to save it into another location on the local system using VideoWriter object. However, the file that is getting saved is getting corrupted. It basically seems like none of the frames are being recorded while reading the file. Any ideas on how to resolve it?
Well, the obvious thing would be to fix the bugs in your code, which we have no knowledge of.
There are no bugs that I can find as of now, and as I said, it is the layer which was acting as a boiler-plate code for so long( it was the work of an ex-employee), I just removed the entire code and replaced it with classic reading-in and saving-to code from the open-cv official documentation itself, and it worked for me now.