fix(server): apply qsv and vaapi quality to video stream only (#9807)

apply quality to video stream only
This commit is contained in:
Mert
2024-05-28 04:49:51 -04:00
committed by GitHub
parent fbc3790cb6
commit 8812c3afcf
2 changed files with 6 additions and 6 deletions

View File

@@ -1427,7 +1427,7 @@ describe(MediaService.name, () => {
'-v verbose',
'-vf format=nv12,hwupload=extra_hw_frames=64,scale_qsv=-1:720',
'-preset 7',
'-global_quality 23',
'-global_quality:v 23',
'-maxrate 10000k',
'-bufsize 20000k',
]),
@@ -1658,8 +1658,8 @@ describe(MediaService.name, () => {
outputOptions: expect.arrayContaining([
`-c:v h264_vaapi`,
'-c:a copy',
'-qp 23',
'-global_quality 23',
'-qp:v 23',
'-global_quality:v 23',
'-rc_mode 1',
]),
twoPass: false,