Refine SwDec and QSV encoding
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
This commit is contained in:
parent
be01aeecd9
commit
27d0d8a7f2
|
@ -3772,7 +3772,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
mainFilters.Add(swDeintFilter);
|
||||
}
|
||||
|
||||
var outFormat = doOclTonemap ? "yuv420p10le" : "yuv420p";
|
||||
var outFormat = doOclTonemap ? "yuv420p10le" : (hasGraphicalSubs ? "yuv420p" : "nv12");
|
||||
var swScaleFilter = GetSwScaleFilter(state, options, vidEncoder, inW, inH, threeDFormat, reqW, reqH, reqMaxW, reqMaxH);
|
||||
// sw scale
|
||||
mainFilters.Add(swScaleFilter);
|
||||
|
@ -3973,7 +3973,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||
mainFilters.Add(swDeintFilter);
|
||||
}
|
||||
|
||||
var outFormat = doOclTonemap ? "yuv420p10le" : "yuv420p";
|
||||
var outFormat = doOclTonemap ? "yuv420p10le" : (hasGraphicalSubs ? "yuv420p" : "nv12");
|
||||
var swScaleFilter = GetSwScaleFilter(state, options, vidEncoder, inW, inH, threeDFormat, reqW, reqH, reqMaxW, reqMaxH);
|
||||
// sw scale
|
||||
mainFilters.Add(swScaleFilter);
|
||||
|
|
Loading…
Reference in New Issue
Block a user