mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-06 15:59:16 +08:00
mp4 maker
This commit is contained in:
1 parent
be70379df2
commit
237ef184ad
1 file changed
+2
-1
@@ -5,6 +5,7 @@ import argparse
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(description='Make a GIF from input images')
|
parser = argparse.ArgumentParser(description='Make a GIF from input images')
|
||||||
parser.add_argument("--input_Addr", type=str, help='input folder')
|
parser.add_argument("--input_Addr", type=str, help='input folder')
|
||||||
|
parser.add_argument("--out_file", type=str, help='out file')
|
||||||
# parser.add_argument("--input_pano_Addr", type=str, help='input folder')
|
# parser.add_argument("--input_pano_Addr", type=str, help='input folder')
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ if __name__ == '__main__':
|
|||||||
# img[0:small_pano.shape[0], 0:small_pano.shape[1]] = small_pano
|
# img[0:small_pano.shape[0], 0:small_pano.shape[1]] = small_pano
|
||||||
images.append(img)
|
images.append(img)
|
||||||
|
|
||||||
out = cv2.VideoWriter('saussan_ldr_light.mp4', cv2.VideoWriter_fourcc(*'FMP4'), 10, size)
|
out = cv2.VideoWriter(args.out_file, cv2.VideoWriter_fourcc(*'FMP4'), 10, size)
|
||||||
# out = cv2.VideoWriter('my_apartement_render.mp4', cv2.VideoWriter_fourcc('X','V','I','D'), 15, size)
|
# out = cv2.VideoWriter('my_apartement_render.mp4', cv2.VideoWriter_fourcc('X','V','I','D'), 15, size)
|
||||||
|
|
||||||
for i in range(len(images)):
|
for i in range(len(images)):
|
||||||
|
|||||||
Reference in new issue
Block a user