mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
commit
dbabee14df
2 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ var plugin = function (args) {
|
|||
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.transfer_characteristics === 'smpte2084'
|
||||
&& stream.color_transfer === 'smpte2084'
|
||||
&& stream.color_primaries === 'bt2020'
|
||||
&& stream.color_range === 'tv') {
|
||||
isHdr = true;
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
|
|||
const stream = args.inputFileObj.ffProbeData.streams[i];
|
||||
if (
|
||||
stream.codec_type === 'video'
|
||||
&& stream.transfer_characteristics === 'smpte2084'
|
||||
&& stream.color_transfer === 'smpte2084'
|
||||
&& stream.color_primaries === 'bt2020'
|
||||
&& stream.color_range === 'tv'
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue