correct ffmpeg command

This commit is contained in:
user 2025-02-05 11:41:45 +03:00
parent 1561f6e5cb
commit 6f75a645b7
1 changed files with 2 additions and 0 deletions

View File

@ -223,6 +223,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
"-i", file_path, "-i", file_path,
"-t", str(seconds_limit), "-t", str(seconds_limit),
"-c:v", "libx264", "-c:v", "libx264",
"-pix_fmt", "yuv420p", # Set pixel format for compatibility
"-c:a", "aac", "-c:a", "aac",
"-movflags", "+faststart", "-movflags", "+faststart",
tempfile_path tempfile_path
@ -234,6 +235,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
"-y", "-y",
"-i", file_path, "-i", file_path,
"-c:v", "libx264", "-c:v", "libx264",
"-pix_fmt", "yuv420p", # Set pixel format for compatibility
"-c:a", "aac", "-c:a", "aac",
"-movflags", "+faststart", "-movflags", "+faststart",
tempfile_path tempfile_path