diff options
Diffstat (limited to 'encoder.py')
-rw-r--r-- | encoder.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ if args.mix: vidframe[hscale * (args.height - cheight) :, wscale * (args.width - cwidth) :] = 0 frame = np.repeat(np.repeat(mkframe(packets[i]), hscale, 0), wscale, 1) # Set edges in original video to black - frame[(32 <= vidframe) & (vidframe < 224)] = 0 + frame[vidframe % 255 != 0] = 0 out.write(cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)) i = (i + 1) % len(packets) else: |