pyorc.Frames.to_video#
- Frames.to_video(fn, video_format=None, fps=None, progress=True)[source]#
- Write frames to a video file without any layout. - Frames from the input object are written into a video file. The format and frame rate can be customized as per user preference or derived automatically from the input object. - Parameters:
- fn (str) – Path to the output video file. 
- video_format (cv2.VideoWriter_fourcc, optional) – The desired video file format codec. If not provided, defaults to cv2.VideoWriter_fourcc(*”mp4v”). 
- fps (float, optional) – Frames per second for the output video. If not specified, it is estimated from the time differences in the input frames. 
- progress (bool, optional) – Display a progress bar while writing the video frames. (default: True)