🌐 AI搜索 & 代理 主页
Skip to content

Commit b30af14

Browse files
committed
mini change
1 parent bf39524 commit b30af14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mp4-converter/resize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ def _resize_save(self) -> bool:
9595
corrupted_frames, successful_frames, last_good_frame = 0, 0, None
9696
while True:
9797
frame_idx,total_frames = int(self.clip.get(cv2.CAP_PROP_POS_FRAMES)), int(self.clip.get(cv2.CAP_PROP_FRAME_COUNT))+1
98-
if frame_idx % 30 == 0 or frame_idx == total_frames:
98+
if frame_idx % 10 == 0 or frame_idx == total_frames:
9999
boyut = None
100100
try: boyut = self.output_file.stat().st_size/(1024*1024)
101101
except: pass
102-
print(f'\rİlerleme: {(frame_idx/total_frames)*100:.2f}% - Bozuk frame: {corrupted_frames} | '+ f'{boyut:.2f} MB' if boyut else "", end="", flush=True)
102+
print(f'\rİlerleme: {(frame_idx/total_frames)*100:.2f}% - ' + (f'{boyut:.2f} MB' if boyut else "") + ' | Bozuk frame: {corrupted_frames}', end="", flush=True )
103103
ret, frame = self.clip.read()
104104
if not ret: break
105105
# Frame Kontrolü

0 commit comments

Comments
 (0)