main
CleanUp(caps:list[cv2.VideoCapture])
Releases all video capture objects and closes all OpenCV windows.
Parameters:
caps
(list[cv2.VideoCapture]): List of video capture objects to release.
Labels:
Projects_MultiVideoPlayer_main_CleanUp
MultiVideo(video_paths:list, VideoGrid:tuple, output_size:tuple, paused:bool, show_paths:bool, show_progress:bool)
Opens multiple videos in a grid format.
Parameters:
video_paths
(list): List of paths to video files.VideoGrid
(tuple): Tuple defining the grid size (rows, columns).output_size
(tuple): Size to which each video frame will be resized.paused
(bool): Whether the video playback starts paused.show_paths
(bool): Whether to display video paths on the frames.show_progress
(bool): Whether to show progress percentage on the frames.
Returns:
bool
: True if successful, False if no videos are provided.Todo:
[V] Fixing name of video
[V] Returning when all videos finished
[V] Adding a pause function
[V] Adding a toggle for showing video paths
[V] Adding a toggle for showing progress percentage
[V] Adding a toggle for full screen
Labels:
Projects_MultiVideoPlayer_main_MultiVideo