mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Check for yuv420p10le
This commit is contained in:
parent
c7349c1c28
commit
0e0be951ad
2 changed files with 10 additions and 2 deletions
|
|
@ -37,7 +37,9 @@ var plugin = function (args) {
|
|||
if (Array.isArray((_b = (_a = args === null || args === void 0 ? void 0 : args.inputFileObj) === null || _a === void 0 ? void 0 : _a.ffProbeData) === null || _b === void 0 ? void 0 : _b.streams)) {
|
||||
for (var i = 0; i < args.inputFileObj.ffProbeData.streams.length; i += 1) {
|
||||
var stream = args.inputFileObj.ffProbeData.streams[i];
|
||||
if (stream.codec_type === 'video' && stream.bits_per_raw_sample === 10) {
|
||||
if (stream.codec_type === 'video'
|
||||
&& (stream.bits_per_raw_sample === 10
|
||||
|| stream.pix_fmt === 'yuv420p10le')) {
|
||||
is10Bit = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,13 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
if (Array.isArray(args?.inputFileObj?.ffProbeData?.streams)) {
|
||||
for (let i = 0; i < args.inputFileObj.ffProbeData.streams.length; i += 1) {
|
||||
const stream = args.inputFileObj.ffProbeData.streams[i];
|
||||
if (stream.codec_type === 'video' && stream.bits_per_raw_sample === 10) {
|
||||
if (
|
||||
stream.codec_type === 'video'
|
||||
&& (
|
||||
stream.bits_per_raw_sample === 10
|
||||
|| stream.pix_fmt === 'yuv420p10le'
|
||||
)
|
||||
) {
|
||||
is10Bit = true;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue