mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Updated transfer_characteristics to color_transfer
Current implementation is looking for "transfer_characteristics" within ffprobe data as an attribute that has to match to determine if a file is HDR or not. However, current ffprobe is not showing this attribute on HDR files. I am proposing changing this attribute to "color_transfer" which does show up on HDR files.
This commit is contained in:
parent
a7db890f14
commit
fa69833d6d
1 changed files with 1 additions and 1 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue