Writing an mp4 video using python opencv

The Solution to Writing an mp4 video using python opencv is


This worked for me.

self._name = name + '.mp4'
self._cap = VideoCapture(0)
self._fourcc = VideoWriter_fourcc(*'MP4V')
self._out = VideoWriter(self._name, self._fourcc, 20.0, (640,480))

~ Answered on 2017-01-15 21:41:14


Most Viewed Questions: