mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Update index.ts
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
fa69833d6d
commit
c372a21883
1 changed files with 1 additions and 1 deletions
|
|
@ -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