利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Python ai-video-generatorcontent-creationffmpeginstagram-reelsllmpythonshort-videosubtitlestext-to-speechtiktokvideo-automationvideo-workflowworkflow-automationyoutube-shorts
fix(video): open render output read-write before fsync for Windows
Rodrigue933cb102909e
diff --git a/app/services/video_project.py b/app/services/video_project.pyindex c83a7f49..4e277c26 100644--- a/app/services/video_project.py+++ b/app/services/video_project.py@@ -830,7 +830,7 @@ class VideoProject:shutil.copyfile(results["assembly"]["path"], output)if cancel.exists():raise RenderCancelled("revision cancelled")- with output.open("rb") as completed:+ with output.open("r+b") as completed:os.fsync(completed.fileno())record = {"fingerprint": stage.fingerprint,diff --git a/test/services/test_material.py b/test/services/test_material.pyindex 56c50f89..2734ce31 100644--- a/test/services/test_material.py+++ b/test/services/test_material.py@@ -1002,8 +1002,8 @@ class TestMaterialTlsVerification(unittest.TestCase):self.assertEqual(material.save_video(url, save_dir=temp_dir), "")self.assertFalse((Path(temp_dir) / cached_name).exists())self.assertEqual(- material.save_video(url, save_dir=temp_dir),- str(Path(temp_dir) / cached_name),+ Path(material.save_video(url, save_dir=temp_dir)),+ Path(temp_dir) / cached_name,)self.assertEqual(get.call_count, 2)