jhj0517
commited on
Commit
·
5c7b9ba
1
Parent(s):
53979c6
Fix wrong print
Browse files
modules/utils/video_helper.py
CHANGED
@@ -48,6 +48,7 @@ def extract_frames(
|
|
48 |
|
49 |
try:
|
50 |
subprocess.run(command, check=True)
|
|
|
51 |
except subprocess.CalledProcessError as e:
|
52 |
print("Error occurred while extracting frames from the video")
|
53 |
raise RuntimeError(f"An error occurred: {str(e)}")
|
@@ -227,7 +228,6 @@ def create_video_from_frames(
|
|
227 |
]
|
228 |
try:
|
229 |
subprocess.run(command, check=True)
|
230 |
-
print(f"Video frames extracted to \"{os.path.normpath(frames_dir)}\"")
|
231 |
except subprocess.CalledProcessError as e:
|
232 |
print(f"Error occurred while creating video from frames")
|
233 |
raise
|
|
|
48 |
|
49 |
try:
|
50 |
subprocess.run(command, check=True)
|
51 |
+
print(f"Video frames extracted to \"{os.path.normpath(output_temp_dir)}\"")
|
52 |
except subprocess.CalledProcessError as e:
|
53 |
print("Error occurred while extracting frames from the video")
|
54 |
raise RuntimeError(f"An error occurred: {str(e)}")
|
|
|
228 |
]
|
229 |
try:
|
230 |
subprocess.run(command, check=True)
|
|
|
231 |
except subprocess.CalledProcessError as e:
|
232 |
print(f"Error occurred while creating video from frames")
|
233 |
raise
|