mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 22:08:41 +08:00
Fixed incorrect ffmpeg command construction (#1645)
Co-authored-by: jackson-waschura <jwaschur@calpoly.edu>
This commit is contained in:
1 parent
81e39cb276
commit
c65760121f
1 file changed
+3
-1
@@ -159,7 +159,9 @@ def convert_video_to_images(
|
|||||||
ffmpeg_cmd += f" -vf thumbnail={spacing},setpts=N/TB{crop_cmd} -r 1"
|
ffmpeg_cmd += f" -vf thumbnail={spacing},setpts=N/TB{crop_cmd} -r 1"
|
||||||
else:
|
else:
|
||||||
CONSOLE.print("[bold red]Can't satisfy requested number of frames. Extracting all frames.")
|
CONSOLE.print("[bold red]Can't satisfy requested number of frames. Extracting all frames.")
|
||||||
ffmpeg_cmd += f" -pix_fmt bgr8 -vf {crop_cmd[1:]}"
|
ffmpeg_cmd += " -pix_fmt bgr8"
|
||||||
|
if crop_cmd != "":
|
||||||
|
ffmpeg_cmd += f" -vf {crop_cmd[1:]}"
|
||||||
|
|
||||||
ffmpeg_cmd += f" {out_filename}"
|
ffmpeg_cmd += f" {out_filename}"
|
||||||
run_command(ffmpeg_cmd, verbose=verbose)
|
run_command(ffmpeg_cmd, verbose=verbose)
|
||||||
|
|||||||
Reference in new issue
Block a user