fix converting mp4
This commit is contained in:
1 parent
9adc4c2bd0
commit
2a97a9914d
3 files changed
+6
-4
No files matched your search
@@ -211,7 +211,7 @@ async def s_api_v1_storage_get(request, file_hash=None):
|
||||
|
||||
elif content_type == 'video':
|
||||
# Build a temp path for the video
|
||||
tempfile_path += "_mp4" + (f"_{seconds_limit}" if seconds_limit else "")
|
||||
tempfile_path += "_mp4" + (f"_{seconds_limit}" if seconds_limit else "") + ".mp4"
|
||||
if not os.path.exists(tempfile_path):
|
||||
try:
|
||||
# Use ffmpeg to cut or convert to mp4
|
||||
|
||||
Reference in new issue
Block a user