Add runtime encoder compatibility validation

This commit is contained in:
seo-amugae committed 2026-10-08 02:10:14 +09:00
1 parent f11e636826
commit 4adf42cc4c
5 files changed
+1345 -90

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
#!/bin/sh
set -eu
repo_root="$(git rev-parse --show-toplevel)"
script_path="$repo_root/screen-rtsp.ps1"
config_path="$repo_root/config.ini"
if ! command -v powershell.exe >/dev/null 2>&1; then
echo "ScreenRTSP: powershell.exe를 찾을 수 없어 config.ini 자동 기록 정보를 제거할 수 없습니다." >&2
exit 1
fi
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$script_path" \
-ConfigPath "$config_path" -ResetManagedInfo >/dev/null
git add -- "$config_path"
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -eu
managed_keys='CheckedAt|EnvironmentFingerprint|GPU|NvidiaNvencApi|NvidiaNvencRequiredApi|NvidiaNvencSupport|AmdAmfSupport|IntelQsvSupport|SelectedHardwareEncoder|FFmpegVersion|FFmpegBuild|FFmpegExecutableSha256|FFmpegDownloadSource|FFmpegArchiveSha256Verification|MediaMTXVersion|MediaMTXExecutableSha256|MediaMTXDownloadSource|MediaMTXArchiveSha256Verification|CompatibilityTest'
if git show HEAD:config.ini 2>/dev/null | grep -E "^# (${managed_keys})=.+" >/dev/null 2>&1; then
echo "ScreenRTSP: HEAD의 config.ini에 실제 장치/설치 정보가 남아 있어 push를 중단합니다." >&2
echo "다시 커밋하면 pre-commit hook이 자동 기록 영역을 비웁니다." >&2
exit 1
fi