- transcribe_backends.py: parakeet-tdt-0.6b-v3 (onnx-asr, VAD+timestamps) as selectable backend (TRANSCRIBE_BACKEND), token->word reconstruction keeping the leading-space convention, absolute timestamps, native floats, language detection via py3langid, and automatic whisper fallback (errors, empty output, or language outside parakeet's 25). - whisper singleton + ASR GPU semaphore (model stays resident; GPU decodes serialized; CPU path behavior unchanged). - ffmpeg_utils.py: central encoder args (FFMPEG_ENCODER=x264|nvenc|auto with cached probe + fallback); migrated the 9 hardcoded libx264 call sites. - saasshorts now honors WHISPER_* config instead of hardcoded base/cpu/int8. - Dockerfile: ARG GPU=1 installs CUDA user-space libs (cuBLAS/cuDNN9) + onnx-asr/onnxruntime-gpu; LD_LIBRARY_PATH + NVIDIA_DRIVER_CAPABILITIES. - Validated on prod GPU (RTX 4000 Ada, driver 580): 94s clip transcribed in 6.5s, word timestamps within ~0.1s of whisper, fallback path exercised.
19 lines
316 B
Text
19 lines
316 B
Text
scenedetect==0.7
|
|
ultralytics==8.4.46
|
|
torch==2.11.0
|
|
torchvision==0.26.0
|
|
tqdm==4.67.3
|
|
yt-dlp
|
|
faster-whisper==1.2.1
|
|
py3langid==0.3.0
|
|
google-genai==1.75.0
|
|
python-dotenv==1.2.2
|
|
mediapipe==0.10.14
|
|
boto3==1.43.4
|
|
|
|
fastapi==0.136.1
|
|
uvicorn==0.46.0
|
|
python-multipart==0.0.27
|
|
httpx==0.28.1
|
|
Pillow==12.2.0
|
|
beautifulsoup4==4.14.3
|