Video file is damaged while writing it to the VideoWriter Object using object.write() method [closed]

asked 2020-02-24 00:54:47 -0600

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?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by berak
close date 2020-02-24 04:52:05.552299

Comments

1

Well, the obvious thing would be to fix the bugs in your code, which we have no knowledge of.

mvuori gravatar imagemvuori ( 2020-02-24 03:43:27 -0600 )edit
1

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.

ankitjaadoo gravatar imageankitjaadoo ( 2020-02-24 03:53:50 -0600 )edit