Skip to content

Instantly share code, notes, and snippets.

View bpradana's full-sized avatar
🏠
Working from home

Bintang Pradana Erlangga Putra bpradana

🏠
Working from home
View GitHub Profile
@bpradana
bpradana / opencv_save_video.py
Created October 5, 2022 03:48
Save video using OpenCV
import cv2
# do something with the frame
def process_frame(frame):
return frame
if __name__ == '__main__':
# input and output file name
INPUT_FILE = 'input_video.mp4'
OUTPUT_FILE = 'output_video.mp4'