Update src/utils/videoio.py
Browse files- src/utils/videoio.py +1 -1
src/utils/videoio.py
CHANGED
|
@@ -36,7 +36,7 @@ def save_video_with_watermark(video, audio, save_path, watermark=False):
|
|
| 36 |
temp_file = tempfile.NamedTemporaryFile(suffix='.mp4', delete=False)
|
| 37 |
temp_file.close() # Close the file so it can be opened by MoviePy
|
| 38 |
temp_file_path = temp_file.name
|
| 39 |
-
final_clip.write_videofile('
|
| 40 |
|
| 41 |
with open(temp_file_path, 'rb') as f:
|
| 42 |
video_content = f.read()
|
|
|
|
| 36 |
temp_file = tempfile.NamedTemporaryFile(suffix='.mp4', delete=False)
|
| 37 |
temp_file.close() # Close the file so it can be opened by MoviePy
|
| 38 |
temp_file_path = temp_file.name
|
| 39 |
+
final_clip.write_videofile('video.mp4', fps=30, threads=1, codec="libx264")
|
| 40 |
|
| 41 |
with open(temp_file_path, 'rb') as f:
|
| 42 |
video_content = f.read()
|