diff --git a/.gitignore b/.gitignore index 1b5f0fb..4aa4fc7 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ .zed .history upload -*.exe +# *.exe (uncomment if needed to exclude all .exe files) *.db build *.db-journal @@ -34,6 +34,3 @@ redis_data/ .gomodcache/ .gocache-temp .gopath - -# ffprobe binaries (too large for git) -service/ffprobe-bin/ diff --git a/service/ffprobe-bin/README.md b/service/ffprobe-bin/README.md new file mode 100644 index 0000000..807fc16 --- /dev/null +++ b/service/ffprobe-bin/README.md @@ -0,0 +1,17 @@ +Place platform ffprobe binaries here for embedded build mode. + +Expected files: + +- `windows-amd64/ffprobe.exe` +- `linux-amd64/ffprobe` +- `linux-arm64/ffprobe` + +Build with: + +`go build -tags embed_ffprobe .` + +If not using `embed_ffprobe`, the service falls back to: + +1. Side-by-side ffprobe file +2. ffprobe from PATH +3. HTTP range metadata parser diff --git a/service/ffprobe-bin/linux-amd64/ffprobe b/service/ffprobe-bin/linux-amd64/ffprobe new file mode 100644 index 0000000..4c2063a Binary files /dev/null and b/service/ffprobe-bin/linux-amd64/ffprobe differ diff --git a/service/ffprobe-bin/linux-arm64/ffprobe b/service/ffprobe-bin/linux-arm64/ffprobe new file mode 100644 index 0000000..3e1fa66 Binary files /dev/null and b/service/ffprobe-bin/linux-arm64/ffprobe differ diff --git a/service/ffprobe-bin/windows-amd64/ffprobe.exe b/service/ffprobe-bin/windows-amd64/ffprobe.exe new file mode 100644 index 0000000..a24c086 Binary files /dev/null and b/service/ffprobe-bin/windows-amd64/ffprobe.exe differ