Update api/ltx_server.py
Browse files- api/ltx_server.py +1 -1
api/ltx_server.py
CHANGED
|
@@ -519,7 +519,7 @@ class VideoService:
|
|
| 519 |
|
| 520 |
total_frames = self._get_total_frames(video_clone)
|
| 521 |
start_frame = total_frames - poda
|
| 522 |
-
cmd_fim = f'ffmpeg -y -hide_banner -loglevel error -i "{
|
| 523 |
subprocess.run(cmd_fim, shell=True, check=True)
|
| 524 |
video_anterior_fade_fim = video_fade_fim
|
| 525 |
print(f"[DEBUG] Fade_fim preparado -> {video_fade_fim}")
|
|
|
|
| 519 |
|
| 520 |
total_frames = self._get_total_frames(video_clone)
|
| 521 |
start_frame = total_frames - poda
|
| 522 |
+
cmd_fim = f'ffmpeg -y -hide_banner -loglevel error -i "{video_clone}" -vf "trim=start_frame={start_frame},setpts=PTS-STARTPTS" -an "{video_fade_fim}"'
|
| 523 |
subprocess.run(cmd_fim, shell=True, check=True)
|
| 524 |
video_anterior_fade_fim = video_fade_fim
|
| 525 |
print(f"[DEBUG] Fade_fim preparado -> {video_fade_fim}")
|