Spaces:
Paused
Paused
Update api/ltx_server.py
Browse files- api/ltx_server.py +2 -1
api/ltx_server.py
CHANGED
|
@@ -794,7 +794,8 @@ class VideoService:
|
|
| 794 |
final_output_path = output_video_path
|
| 795 |
print(f"[DEBUG] Falha no move; usando tmp como final: {e}")
|
| 796 |
|
| 797 |
-
|
|
|
|
| 798 |
final_vid = os.path.join(results_dir, f"concat_fim_{used_seed}.mp4")
|
| 799 |
partes_mp4_fade = self._gerar_lista_com_transicoes(pasta=results_dir, video_paths=partes_mp4, crossfade_frames=8)
|
| 800 |
self._concat_mp4s_no_reencode(partes_mp4_fade, final_vid)
|
|
|
|
| 794 |
final_output_path = output_video_path
|
| 795 |
print(f"[DEBUG] Falha no move; usando tmp como final: {e}")
|
| 796 |
|
| 797 |
+
total_partes = len(partes_mp4)
|
| 798 |
+
if (total_partes>1)
|
| 799 |
final_vid = os.path.join(results_dir, f"concat_fim_{used_seed}.mp4")
|
| 800 |
partes_mp4_fade = self._gerar_lista_com_transicoes(pasta=results_dir, video_paths=partes_mp4, crossfade_frames=8)
|
| 801 |
self._concat_mp4s_no_reencode(partes_mp4_fade, final_vid)
|