Compare commits
2 commits
2fc7ce1de0
...
909eb70dea
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
909eb70dea | ||
|
|
1376357b20 |
2 changed files with 36 additions and 4 deletions
|
|
@ -63,11 +63,15 @@ changelog:
|
||||||
# these URLs and publishes the release there instead of GitHub. Reachable via
|
# these URLs and publishes the release there instead of GitHub. Reachable via
|
||||||
# `forgejo` hostname inside the dokploy-network (the runner shares it); for
|
# `forgejo` hostname inside the dokploy-network (the runner shares it); for
|
||||||
# local goreleaser runs outside the network, override via env GITEA_API_URL.
|
# local goreleaser runs outside the network, override via env GITEA_API_URL.
|
||||||
release:
|
#
|
||||||
gitea_urls:
|
# In goreleaser v2 `gitea_urls` is a top-level key (was nested under `release`
|
||||||
|
# in v1).
|
||||||
|
gitea_urls:
|
||||||
api: http://forgejo:3000/api/v1
|
api: http://forgejo:3000/api/v1
|
||||||
download: https://git.torrentclaw.com
|
download: https://git.torrentclaw.com
|
||||||
skip_tls_verify: false
|
skip_tls_verify: false
|
||||||
|
|
||||||
|
release:
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: auto
|
prerelease: auto
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,3 +67,31 @@ func TestBuildHLSFFmpegArgsLibx264NoRegression(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TestBuildHLSFFmpegArgsVAAPIDump prints the full argv buildHLSFFmpegArgsAt
|
||||||
|
// emits for a typical VAAPI session. Mimics the daemon spawn step so the
|
||||||
|
// operator can verify the ffmpeg command-line shape without booting the
|
||||||
|
// stack — equivalent to `journalctl --user -u unarr-dev | grep ffmpeg`
|
||||||
|
// but without waiting for a real player session.
|
||||||
|
func TestBuildHLSFFmpegArgsVAAPIDump(t *testing.T) {
|
||||||
|
cfg := HLSSessionConfig{
|
||||||
|
SessionID: "vaapi-smoke",
|
||||||
|
SourcePath: "/mnt/nas/peliculas/sample.mkv",
|
||||||
|
Quality: "720p",
|
||||||
|
AudioIndex: -1,
|
||||||
|
Transcode: TranscodeRuntime{
|
||||||
|
FFmpegPath: "/usr/bin/ffmpeg",
|
||||||
|
FFprobePath: "/usr/bin/ffprobe",
|
||||||
|
HWAccel: HWAccelVAAPI,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
probe := &StreamProbe{
|
||||||
|
VideoCodec: "hevc",
|
||||||
|
Width: 3840,
|
||||||
|
Height: 2160,
|
||||||
|
DurationSec: 5400,
|
||||||
|
AudioTracks: []ProbeAudioTrack{{Index: 0, Lang: "en", Codec: "ac3"}},
|
||||||
|
}
|
||||||
|
args := buildHLSFFmpegArgsAt(cfg, probe, "/tmp/smoke-tmpdir", 0, 0)
|
||||||
|
t.Logf("ffmpeg %s", strings.Join(args, " "))
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue