Random SD format video OpenCV Python

Published: 07 February 2022
on channel: Jan de Jong
17
1

Just playing with some random video generation see the python script below. format 600x800px

import numpy as np
import cv2

size = 600,800
duration = 5
fps = 25
out = cv2.VideoWriter('outputSD.mp4', cv2.VideoWriter_fourcc(*'mp4v'), fps, (size[1], size[0]), False)
for _ in range(fps * duration):
data = np.random.randint(0, 256, size, dtype='uint8')
out.write(data)
out.release()


On this page of the site you can watch the video online Random SD format video OpenCV Python with a duration of hours minute second in good quality, which was uploaded by the user Jan de Jong 07 February 2022, share the link with friends and acquaintances, this video has already been watched 17 times on youtube and it was liked by 1 viewers. Enjoy your viewing!