mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-13 03:14:00 +08:00
strip whitespace from ffprobe output (#386)
This commit is contained in:
1 parent
16d02d4c21
commit
f34a27511f
1 file changed
+2
@@ -110,6 +110,8 @@ def convert_video_to_images(
|
||||
-show_entries stream=nb_read_packets -of csv=p=0 {video_path}"
|
||||
output = run_command(cmd, verbose=False)
|
||||
assert output is not None
|
||||
output = output.strip(" ,\t\n\r")
|
||||
|
||||
num_frames = int(output)
|
||||
print("Number of frames in video:", num_frames)
|
||||
|
||||
|
||||
Reference in new issue
Block a user