EuuIia commited on
Commit
bf0fd28
·
verified ·
1 Parent(s): b5c96ef

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +2 -2
api/ltx_server.py CHANGED
@@ -436,7 +436,7 @@ class VideoService:
436
  print("================PODA CAUSAL=================")
437
  return chunks
438
 
439
- def get_total_frames(video_path: str) -> int:
440
  cmd = [
441
  "ffprobe",
442
  "-v", "error",
@@ -471,7 +471,7 @@ class VideoService:
471
 
472
  # --- PODA ---
473
  video_podado = os.path.join(pasta, f"{base}_podado_{i}.mp4")
474
- total_frames = get_total_frames(video_clone)
475
  trim_ini = total_frames - poda # posição inicial do fade
476
  video_fade_fim = os.path.join(pasta, f"{base}_fade_fim_{i}.mp4")
477
 
 
436
  print("================PODA CAUSAL=================")
437
  return chunks
438
 
439
+ def _get_total_frames(self, video_path: str) -> int:
440
  cmd = [
441
  "ffprobe",
442
  "-v", "error",
 
471
 
472
  # --- PODA ---
473
  video_podado = os.path.join(pasta, f"{base}_podado_{i}.mp4")
474
+ total_frames = self._get_total_frames(video_clone)
475
  trim_ini = total_frames - poda # posição inicial do fade
476
  video_fade_fim = os.path.join(pasta, f"{base}_fade_fim_{i}.mp4")
477