test(hls): cubrir -forced_idr de QSV en el rate-control
This commit is contained in:
parent
556c5cb05f
commit
63be565227
1 changed files with 13 additions and 0 deletions
|
|
@ -98,6 +98,19 @@ func TestBuildHLSFFmpegArgsRateControl(t *testing.T) {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
t.Run("qsv keeps bitrate + forced_idr", func(t *testing.T) {
|
||||||
|
cfg := base
|
||||||
|
cfg.Transcode.HWAccel = HWAccelQSV
|
||||||
|
got := strings.Join(buildHLSFFmpegArgsAt(cfg, probe, "/tmp/tmpdir", 0, 0), " ")
|
||||||
|
// -forced_idr 1 (QSV's spelling): same non-IDR forced-keyframe failure
|
||||||
|
// mode as NVENC — without it segments stretch to the full GOP.
|
||||||
|
for _, want := range []string{"-look_ahead 0", "-forced_idr 1", "-b:v 6000k"} {
|
||||||
|
if !strings.Contains(got, want) {
|
||||||
|
t.Errorf("qsv argv missing %q\n%s", want, got)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
t.Run("vaapi keeps fixed-bitrate triple", func(t *testing.T) {
|
t.Run("vaapi keeps fixed-bitrate triple", func(t *testing.T) {
|
||||||
cfg := base
|
cfg := base
|
||||||
cfg.Transcode.HWAccel = HWAccelVAAPI
|
cfg.Transcode.HWAccel = HWAccelVAAPI
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue