Skip to content

Commit

Permalink
Use MJPG codec to make .avi video
Browse files Browse the repository at this point in the history
  • Loading branch information
alyssaq committed Jan 21, 2018
1 parent 8073a91 commit 8f262dd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions facemorpher/videoer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
import cv2
import numpy as np

from facemorpher import cvver

def check_write_video(func):
def inner(self, *args, **kwargs):
Expand All @@ -25,9 +24,7 @@ def __init__(self, filename, fps, w, h):
if filename is None:
self.video = None
else:
fourcc_func = cv2.cv.FOURCC if cvver.is_cv2() else cv2.VideoWriter_fourcc
fourcc = fourcc_func('m', 'p', '4', 'v')

fourcc = cv2.VideoWriter_fourcc(*'MJPG')
self.video = cv2.VideoWriter(filename, fourcc, fps, (w, h), True)

@check_write_video
Expand Down

0 comments on commit 8f262dd

Please sign in to comment.