import cv2 import numpy as np import matplotlib.pyplot as plt video_path = "/mnt/data/chikri chikri.mp4" cap = cv2.VideoCapture(video_path) ret, frame = cap.read() cap.release() if ret: # Convert BGR to RGB for display frame_rgb = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB) plt.imshow(frame_rgb) plt.axis('off') else: print("Could not read video frame")