Open kam1107 opened 3 years ago
Once you render the camera path, you can use the following script to create a video.
import imageio
import os
render_dir = '/path/to/rendered/camera/path'
frames = []
fps = 10
for item in sorted(os.listdir(render_dir)):
if item.endswith('.png'):
im = imageio.imread(os.path.join(render_dir, item))
frames.append(im)
# rewind
frames = frames + frames[::-1]
imageio.mimwrite(render_dir + '.mp4', frames, fps=fps)
Hi, Can you also provide the code for rendering the final video? Many thanks :)