fix: 포스터 프레임 추출에 imageio_ffmpeg 사용 및 반영 가이드 추가
This commit is contained in:
1 parent
b0248a2e63
commit
059269c5e6
2 files changed
+113
-1
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
import asyncio
|
||||
from pathlib import Path
|
||||
import imageio_ffmpeg
|
||||
|
||||
from app.utils.logger import get_logger
|
||||
from app.utils.upload_blob_as_request import AzureBlobUploader
|
||||
@@ -54,7 +55,7 @@ async def extract_first_frame(video_path: str | Path) -> bytes | None:
|
||||
|
||||
try:
|
||||
process = await asyncio.create_subprocess_exec(
|
||||
"ffmpeg",
|
||||
imageio_ffmpeg.get_ffmpeg_exe(),
|
||||
"-nostdin",
|
||||
"-hide_banner",
|
||||
"-loglevel",
|
||||
|
||||
Reference in new issue
Block a user