EuuIia commited on
Commit
1135b0d
·
verified ·
1 Parent(s): bec8e1c

Update api/ltx_server.py

Browse files
Files changed (1) hide show
  1. api/ltx_server.py +1 -1
api/ltx_server.py CHANGED
@@ -516,7 +516,7 @@ class VideoService:
516
  # --- FADE_FIM ---
517
  if i < total_partes - 1:
518
  video_fade_fim = os.path.join(pasta, f"{base}_fade_fim_{i}.mp4")
519
- totalframes = self._gettotalframes(videoclone)
520
  startframe = totalframes - poda
521
  cmd_fim = f'ffmpeg -y -hide_banner -loglevel error -i "{videoclone}" -vf "trim=start_frame={startframe},setpts=PTS-STARTPTS" -an "{videofadefim}"'
522
  subprocess.run(cmd_fim, shell=True, check=True)
 
516
  # --- FADE_FIM ---
517
  if i < total_partes - 1:
518
  video_fade_fim = os.path.join(pasta, f"{base}_fade_fim_{i}.mp4")
519
+ totalframes = self._get_total_frames(videoclone)
520
  startframe = totalframes - poda
521
  cmd_fim = f'ffmpeg -y -hide_banner -loglevel error -i "{videoclone}" -vf "trim=start_frame={startframe},setpts=PTS-STARTPTS" -an "{videofadefim}"'
522
  subprocess.run(cmd_fim, shell=True, check=True)