Update api/ltx_server.py
Browse files- api/ltx_server.py +2 -2
api/ltx_server.py
CHANGED
|
@@ -732,7 +732,7 @@ class VideoService:
|
|
| 732 |
except Exception:
|
| 733 |
pass
|
| 734 |
|
| 735 |
-
latents_parts = self._dividir_latentes_por_tamanho(latents_cpu,
|
| 736 |
|
| 737 |
temp_dir = tempfile.mkdtemp(prefix="ltxv_"); self._register_tmp_dir(temp_dir)
|
| 738 |
results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
|
|
@@ -775,7 +775,7 @@ class VideoService:
|
|
| 775 |
print(f"[DEBUG] Falha no move; usando tmp como final: {e}")
|
| 776 |
|
| 777 |
final_concat = os.path.join(results_dir, f"concat_fim_{used_seed}.mp4")
|
| 778 |
-
partes_mp4_fade = self._gerar_lista_com_transicoes(pasta=results_dir, video_paths=partes_mp4, crossfade_frames=
|
| 779 |
self._concat_mp4s_no_reencode(partes_mp4_fade, final_concat)
|
| 780 |
|
| 781 |
|
|
|
|
| 732 |
except Exception:
|
| 733 |
pass
|
| 734 |
|
| 735 |
+
latents_parts = self._dividir_latentes_por_tamanho(latents_cpu,5,1)
|
| 736 |
|
| 737 |
temp_dir = tempfile.mkdtemp(prefix="ltxv_"); self._register_tmp_dir(temp_dir)
|
| 738 |
results_dir = "/app/output"; os.makedirs(results_dir, exist_ok=True)
|
|
|
|
| 775 |
print(f"[DEBUG] Falha no move; usando tmp como final: {e}")
|
| 776 |
|
| 777 |
final_concat = os.path.join(results_dir, f"concat_fim_{used_seed}.mp4")
|
| 778 |
+
partes_mp4_fade = self._gerar_lista_com_transicoes(pasta=results_dir, video_paths=partes_mp4, crossfade_frames=8)
|
| 779 |
self._concat_mp4s_no_reencode(partes_mp4_fade, final_concat)
|
| 780 |
|
| 781 |
|