blendersynth.file.frames_to_video
- blendersynth.file.frames_to_video.ffmpeg_input_from_files(file_list, frame_rate=25)[source]
Return ffmpeg input from list of files
- blendersynth.file.frames_to_video.frames_to_video(*args, frame_list=None, frame_fmt=None, directory=None, frame_rate=30, output_loc='./output.mp4', output_fmt='mp4', pix_fmt='yuv420p', overwrite=True, loglevel='error', delete_images=False)[source]
Need to input one of frame_list or frame_fmt or directory
- Parameters:
frame_list – [optional] list of frames to concatenate into a video
frame_fmt – [optional] frame format to use as input
directory – [optional] directory to use as input (loads sorted images in directory)
frame_rate – frame rate of video
output_loc – video file location
output_fmt – video file format
pix_fmt – pixel format (see ffmpeg documentation, default yuv420p)
overwrite – overwrite existing video file
loglevel – ffmpeg loglevel (see ffmpeg documentation, default error)
delete_images – delete images after video is created
- Returns:
- blendersynth.file.frames_to_video.frames_to_video_multiview(cameras, directory='.', out_loc='vid.mp4', **kwargs)[source]
Following the rendering of a multiview animation, this function handles rendering the frames separately into videos.
- Parameters:
cameras (
List
[blendersynth.blender.camera.Camera]) – List of cameras used for renderingdirectory – Directory to look for frames in
out_loc – Output location for videos. Each camera will be saved as a separate video with the camera name prepended
kwargs – Keyword arguments to pass to
frames_to_video()