refactor: replace QMediaPlayer with mpv for video playback

This commit is contained in:
Honney OC committed 2026-09-13 23:28:15 +00:00
1 parent 5fe90af246
commit 37f19c5fd3
2 files changed
+81 -114

No files matched your search

+2 -2
View File
@@ -51,8 +51,8 @@ install:
fi
@echo "=> installing common deps..."
@$(PIP_INSTALL) soundfile scipy numpy pyqtgraph PyQt6 || echo " common deps failed"
@echo "=> optional: sounddevice (playback), openai-whisper (language detection)..."
@$(PIP_INSTALL) sounddevice openai-whisper || echo " optional deps failed (sounddevice/whisper)"
@echo "=> optional: sounddevice (playback), openai-whisper (language detection), mpv (video player)..."
@$(PIP_INSTALL) sounddevice openai-whisper python-mpv || echo " optional deps failed (sounddevice/whisper/mpv)"
@$(PY) -c "import torch, sys; print(f'torch {torch.__version__} cuda_available={torch.cuda.is_available()}', end=''); print(f' device={torch.cuda.get_device_name(0)}' if torch.cuda.is_available() else ' (cpu)')" 2>&1 || echo "torch not available, using numpy CPU fallback (still functional for 90s xcorr)"
@echo "=> done. Activate: source $(VENV)/bin/activate"