mirror of
https://github.com/immich-app/immich.git
synced 2025-06-08 21:38:40 +02:00
Update server/src/utils/media.ts
- HEVC is not related to format, removed condition - scale_vaapi takes care of the format Co-authored-by: Mert <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
parent
62c128d1fb
commit
200804c9dd
1 changed files with 3 additions and 7 deletions
|
@ -781,14 +781,10 @@ export class VaapiSwDecodeConfig extends BaseHWConfig {
|
|||
|
||||
getFilterOptions(videoStream: VideoStreamInfo) {
|
||||
const options = this.getToneMapping(videoStream);
|
||||
if (videoStream.codecName === VideoCodec.HEVC) {
|
||||
options.push('format=nv12');
|
||||
options.push('hwupload=extra_hw_frames=64');
|
||||
} else {
|
||||
options.push('hwupload=extra_hw_frames=64');
|
||||
}
|
||||
if (this.shouldScale(videoStream)) {
|
||||
options.push(`scale_vaapi=${this.getScaling(videoStream)}:mode=hq:out_range=pc:format=nv12`);
|
||||
options.push('hwupload=extra_hw_frames=64', `scale_vaapi=${this.getScaling(videoStream)}:mode=hq:out_range=pc:format=nv12`);
|
||||
} else {
|
||||
options.push('format=nv12', 'hwupload=extra_hw_frames=64');
|
||||
}
|
||||
|
||||
return options;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue