Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Remixer: Add Special Bulk Processing + fixes #336

Merged
merged 14 commits into from
Sep 30, 2024
2 changes: 1 addition & 1 deletion guide/video_blender_frame_fixer.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
1. Set _Last clean frame BEFORE damaged ones_ to the frame number of a clean frame befor the bad ones
- This is pre-filled with the current frame number if the _Fix Frames_ button is used
1. Set _First clean frame AFTER damaged ones_ to the frame number of a clean frame after the bad ones
1. Click _Preview Fixed Frames_
1. Click _Create and Preview Fixed Frames_
1. A set of high-precision replacement frames are made using _Frame Search_
- The search precision is set via the config setting `blender_settings.frame_fixer_depth`
1. An animated GIF is shown with the replacement frames
Expand Down
3 changes: 2 additions & 1 deletion resequence_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ def resequence(self, ignore_name_clash=True) -> None:

if self.rename:
new_filepath = os.path.join(self.input_path, new_filename)
os.replace(old_filepath, new_filepath)
if old_filepath != new_filepath:
os.replace(old_filepath, new_filepath)
else:
new_filepath = os.path.join(self.output_path, new_filename)
shutil.copy(old_filepath, new_filepath)
Expand Down
2 changes: 1 addition & 1 deletion tabs/video_blender_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def render_tab(self):
label="First clean frame AFTER damaged ones", value=0,
precision=0)
with gr.Row():
preview_button_ff = gr.Button(value="Preview Fixed Frames",
preview_button_ff = gr.Button(value="Create and Preview Fixed Frames",
variant="primary", elem_id="highlightbutton")
with gr.Column():
preview_image_ff = gr.Image(type="filepath",
Expand Down
Loading
Loading