From 6f75a645b7777a80df22c11758a94aadeed1c7e5 Mon Sep 17 00:00:00 2001 From: user Date: Wed, 5 Feb 2025 11:41:45 +0300 Subject: [PATCH] correct ffmpeg command --- app/api/routes/node_storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/routes/node_storage.py b/app/api/routes/node_storage.py index ae0427a..654f163 100644 --- a/app/api/routes/node_storage.py +++ b/app/api/routes/node_storage.py @@ -223,6 +223,7 @@ async def s_api_v1_storage_get(request, file_hash=None): "-i", file_path, "-t", str(seconds_limit), "-c:v", "libx264", + "-pix_fmt", "yuv420p", # Set pixel format for compatibility "-c:a", "aac", "-movflags", "+faststart", tempfile_path @@ -234,6 +235,7 @@ async def s_api_v1_storage_get(request, file_hash=None): "-y", "-i", file_path, "-c:v", "libx264", + "-pix_fmt", "yuv420p", # Set pixel format for compatibility "-c:a", "aac", "-movflags", "+faststart", tempfile_path