Inconsistent {hdr} output (not detecting DV)

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
flammabled
Posts: 4
Joined: 14 Oct 2025, 10:10

Inconsistent {hdr} output (not detecting DV)

Post by flammabled »

Hi,

I'm looking to rename my current library to include more info about the files in the filename. I'm using the following format:

Format: Select all

{ plex.id % { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {allOf{vf}{vs}{hdr}{ original.matchAll(/PROPER|REMUX|REPACK/) }{group}.joining(' ', ' [', ']')} }
However I'm finding that when I run this on my Synology NAS using Filebot Node, none of my DV files are detected as such, just as "HDR10". I was trying to determine why, so tried installing the community MediaInfo, which didn't help. I then copied a test file to my desktop, where I used the Filebot GUI format editor, where I found that the format worked as I expected.

NAS:

Code: Select all

American Pie (1999) {edition-Unrated} [2160p BluRay HDR10 REMUX FraMeSToR].mkv
Desktop:

Code: Select all

American Pie (1999) {edition-Unrated} [2160p DV+HDR10].mkv
I found that both are running the same version of MediaInfoLib, v21.09, and Filebot, 5.2.0 (r10714), and both seem to output the exact same mediainfo. Any idea why there might be a discrepancy between the two? The only difference I know is that the value of `original` didn't seem to make it across to my desktop, but that only explains the absence of "BluRay", "REMUX" and release group on the desktop. As I understand from the docs, {hdr} is not sourced from the filename.

Here is the output of the same command from the NAS and Desktop, plus the output of sysinfo

Desktop:

Console Output: Select all

flammabled@pop-os:~$ filebot -script 'fn:amc' Videos/ --output . --action TEST -non-strict --order Airdate --conflict replace --lang en --def 'deleteAfterExtract=y' 'ignore=/(Behind The Scenes|Deleted Scenes|Featurettes|Interviews|Scenes|Shorts|Trailers|Other)' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={plex}' 'movieFormat={ plex.id % { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {allOf{vf}{vs}{hdr}{ original.matchAll(/PROPER|REMUX|REPACK/) }{group}.joining('\'' '\'', '\'' ['\'', '\'']'\'')} }' --apply metadata refresh -no-index --log all
Run script [fn:amc] at [Sun Oct 12 22:51:33 BST 2025]
Parameter: deleteAfterExtract = y
Parameter: ignore = /(Behind The Scenes|Deleted Scenes|Featurettes|Interviews|Scenes|Shorts|Trailers|Other)
Parameter: minLengthMS = 0
Parameter: minFileSize = 0
Parameter: seriesFormat = {plex}
Parameter: movieFormat = { plex.id % { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {allOf{vf}{vs}{hdr}{ original.matchAll(/PROPER|REMUX|REPACK/) }{group}.joining(' ', ' [', ']')} }
Argument[0]: /home/flammabled/Videos
Input: /home/flammabled/Videos/American Pie (1999).mkv
Group files by movie or series
Failed to write xattr key: net.filebot.mediainfo: Error writing extended attribute 'net.filebot.mediainfo': No space left on device: American Pie (1999).mkv
Group: {Movie=American Pie (1999)} => [American Pie (1999).mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/home/flammabled/Videos/American Pie (1999).mkv]
[TEST] from [/home/flammabled/Videos/American Pie (1999).mkv] to [/home/flammabled/Movies/American Pie (1999) {tmdb-2105}/American Pie (1999) {edition-Unrated} [2160p DV+HDR10].mkv]
Processed 1 file
Finished without processing any files
Done ¯\_(ツ)_/¯
flammabled@pop-os:~$ filebot -script 'fn:sysinfo'
FileBot 5.2.0 (r10714)
JNA Native: 6.1.1
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.11 mkvpropedit/65.0.0
Extended Attributes: OK
Unicode Filesystem: OK
GVFS: PlatformGVFS [/run/user/1000/gvfs]
Script Bundle: 2025-09-04 (r1016)
Groovy: 4.0.28
JRE: OpenJDK Runtime Environment 17.0.11
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 7 GB Max Memory / 56 MB Used Memory
OS: Linux (amd64)
HW: Linux pop-os 6.16.3-76061603-generic #202508231538~1757385336~22.04~8f363f2 SMP PREEMPT_DYNAMIC Tue S x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: : AMD Ryzen 5 3400G with Radeon Vega Graphics / MemTotal: 31 GB / MemFree: 2.7 GB / MemAvailable: 17 GB / SwapCached: 2.1 MB / SwapTotal: 21 GB / SwapFree: 19 GB
STORAGE: ext4 [/] @ 254 GB | vfat [/recovery] @ 1.1 GB | ext4 [/media/flammabled/94a3a655-a4ff-4f65-aa50-253100357715] @ 572 GB | fuseblk [/media/flammabled/1A44C92778DCF175] @ 241 GB
UID/GID: uid=1000(flammabled) gid=1000(flammabled) groups=1000(flammabled),27(sudo),998(docker)
DATA: /home/flammabled/.filebot
Package: DEB
License: FileBot License P30064131 has EXPIRED on 2022-11-04
Done ヾ(@⌒ー⌒@)ノ
NAS:

Console Output: Select all

filebot -script 'fn:amc' '/volume1/plexvolume/Movies/American Pie (1999)' --output /volume1/plexvolume --action TEST -non-strict --order Airdate --conflict replace --lang en --def 'deleteAfterExtract=y' 'ignore=/(Behind The Scenes|Deleted Scenes|Featurettes|Interviews|Scenes|Shorts|Trailers|Other)' 'minLengthMS=0' 'minFileSize=0' 'seriesFormat={plex}' 'movieFormat={ plex.id % { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {allOf{vf}{vs}{hdr}{ original.matchAll(/PROPER|REMUX|REPACK/) }{group}.joining('\'' '\'', '\'' ['\'', '\'']'\'')} }' --apply metadata refresh -no-index --log all --log-file '/var/packages/filebot-node/var/filebot.log'

------------------------------------------

Run script [fn:amc] at [Sun Oct 12 22:48:47 IST 2025]
Parameter: deleteAfterExtract = y
Parameter: ignore = /(Behind The Scenes|Deleted Scenes|Featurettes|Interviews|Scenes|Shorts|Trailers|Other)
Parameter: minLengthMS = 0
Parameter: minFileSize = 0
Parameter: plex = *****
Parameter: seriesFormat = {plex}
Parameter: movieFormat = { plex.id % { none{ edition.match(/Theatrical|Remastered/) } ? " {edition-$edition}" : null } % {allOf{vf}{vs}{hdr}{ original.matchAll(/PROPER|REMUX|REPACK/) }{group}.joining(' ', ' [', ']')} }
Argument[0]: /volume1/plexvolume/Movies/American Pie (1999)
Ignore extra: /volume1/plexvolume/Movies/American Pie (1999)/Featurettes
Ignore pattern: /volume1/plexvolume/Movies/American Pie (1999)/Trailers
Ignore extra: /volume1/plexvolume/Movies/American Pie (1999)/Deleted Scenes
Ignore extra: /volume1/plexvolume/Movies/American Pie (1999)/Behind The Scenes
Input: /volume1/plexvolume/Movies/American Pie (1999)/American Pie (1999).mkv
       └─ xattr metadata: American Pie (1999)
Group files by movie or series
Group: {Movie=American Pie (1999)} => [American Pie (1999).mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context [/volume1/plexvolume/Movies/American Pie (1999)/American Pie (1999).mkv]
[XATTR] American Pie (1999) (/volume1/plexvolume/Movies/American Pie (1999)/American Pie (1999).mkv)
[TEST] from [/volume1/plexvolume/Movies/American Pie (1999)/American Pie (1999).mkv] to [/volume1/plexvolume/Movies/American Pie (1999) {tmdb-2105}/American Pie (1999) {edition-Unrated} [2160p BluRay HDR10 REMUX FraMeSToR].mkv]
Processed 1 file
Finished without processing any files
Done ¯\_(ツ)_/¯

------------------------------------------

[Process completed]


filebot -script 'fn:sysinfo' --log-file '/var/packages/filebot-node/var/filebot.log'

------------------------------------------

FileBot 5.2.0 (r10714)
JNA Native: 7.0.0
MediaInfo: 21.09
Tools: 7z/16.02 unrar/5.70
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2025-09-04 (r1016)
Groovy: 4.0.28
JRE: OpenJDK Runtime Environment 21.0.4
JVM: OpenJDK 64-Bit Server VM
JAVA_OPTS: -Xmx790m
FILEBOT_OPTS: -DuseExtendedFileAttributes=false
CPU/MEM: 8 Core / 828 MB Max Memory / 41 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.302+ #72806 SMP Mon Jul 21 23:14:25 CST 2025 x86_64 GNU/Linux synology_v1000_1821+
CPU/MEM: : AMD Ryzen Embedded V1500B / MemTotal: 4.1 GB / MemFree: 646 MB / MemAvailable: 2.7 GB / SwapCached: 434 KB / SwapTotal: 4.6 GB / SwapFree: 4.6 GB
STORAGE: ext4 [/] @ 834 MB | ext4 [/volume1] @ 756 GB
UID/GID: uid=106247(FileBot) gid=106247(FileBot) groups=106247(FileBot),999(synopkgs)
DATA: /var/packages/filebot/var/data/106247
Package: SPK
License: FileBot License PX67477369 (Valid-Until: 2074-12-04)
Done ヾ(@⌒ー⌒@)ノ

------------------------------------------

[Process completed]
Thank you!
User avatar
rednoah
The Source
Posts: 24313
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Inconsistent {hdr} output (not detecting DV)

Post by rednoah »

:?: What does the MediaInfo table say for the file at hand?

:arrow: Please use the libmediainfo version used by filebot. You can print the MediaInfo table from FileBot Node via Tools ➔ MediaInfo.

Screenshot



:idea: The {hdr} binding hinges entirely on the HDR_* properties from the mediainfo table, e.g. DV+HDR10:

Properties: Select all

HDR_Format                       : Dolby Vision / SMPTE ST 2086
HDR_Format_Commercial            : HDR10 / HDR10
HDR_Format_Compatibility         : HDR10 / HDR10

EDIT
:idea: If the libmediainfo build you have available is too old for DV properties - DV is a fairly recent thing after all - then you may need to resort to docker containers to run the latest FileBot / FileBot Node build with the latest libmediainfo build. You may also ask the SynoCommunity maintainers to build and release a newer version of their libmediainfo package.
:idea: Please read the FAQ and How to Request Help.
flammabled
Posts: 4
Joined: 14 Oct 2025, 10:10

Re: Inconsistent {hdr} output (not detecting DV)

Post by flammabled »

rednoah wrote: 14 Oct 2025, 13:26 :?: What does the MediaInfo table say for the file at hand?

:arrow: Please use the libmediainfo version used by filebot. You can print the MediaInfo table from FileBot Node via Tools ➔ MediaInfo.

Screenshot



:idea: The {hdr} binding hinges entirely on the HDR_* properties from the mediainfo table, e.g. DV+HDR10:

Properties: Select all

HDR_Format                       : Dolby Vision / SMPTE ST 2086
HDR_Format_Commercial            : HDR10 / HDR10
HDR_Format_Compatibility         : HDR10 / HDR10

EDIT
:idea: If the libmediainfo build you have available is too old for DV properties - DV is a fairly recent thing after all - then you may need to resort to docker containers to run the latest FileBot / FileBot Node build with the latest libmediainfo build. You may also ask the SynoCommunity maintainers to build and release a newer version of their libmediainfo package.
The full file is too long to post, but the relevant part from Filebot Node's Tools->MediaInfo:

Console Output: Select all

filebot -script 'fn:mediainfo' '/volume1/plexvolume/Movies/American Pie (1999)' --mode raw --log-file '/var/packages/filebot-node/var/filebot.log'

------------------------------------------

# MediaInfoLib - v21.09

# /volume1/plexvolume/Movies/American Pie (1999)/American Pie (1999).mkv (2.4 GB of 57 GB)
...

HDR_Format                       : Dolby Vision / SMPTE ST 2086
HDR_Format/String                : Dolby Vision, Version 1.0, dvhe.07.06, BL+EL+RPU, Blu-ray compatible / SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial            : Blu-ray / HDR10
HDR_Format_Version               : 1.0 / 
HDR_Format_Profile               : dvhe.07 / 
HDR_Format_Level                 : 06 / 
HDR_Format_Settings              : BL+EL+RPU / 
HDR_Format_Compatibility         : Blu-ray / HDR10
As mentioned, the MediaInfo output was the same for both Filebot Node (where it doesn't work) and Filebot on my Desktop (where it does).
User avatar
rednoah
The Source
Posts: 24313
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Inconsistent {hdr} output (not detecting DV)

Post by rednoah »

{hdr} should return DV+HDR10 based on the MediaInfo properties above. We could try to trace the issue by running our own Groovy code to come up with the same value to trace where things go awry. You'd have to login via SSH and run commands though.


:?: What does the output say if you run this command on one of these DV files?

Shell: Select all

filebot -mediainfo /path/to/input --format "{f.name} | {hdr} | {video.HDR_Format} | {video.HDR_Format_Commercial} | {video.HDR_Format_Compatibility} | { video.HDR_Format =~ /Dolby Vision/ ? video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : 'DV' : 'NO-DV' } | {video.BitDepth} | {video.colour_primaries}"
:idea: Please read the FAQ and How to Request Help.
flammabled
Posts: 4
Joined: 14 Oct 2025, 10:10

Re: Inconsistent {hdr} output (not detecting DV)

Post by flammabled »

rednoah wrote: 14 Oct 2025, 17:05 {hdr} should return DV+HDR10 based on the MediaInfo properties above. We could try to trace the issue by running our own Groovy code to come up with the same value to trace where things go awry. You'd have to login via SSH and run commands though.


:?: What does the output say if you run this command on one of these DV files?

Shell: Select all

filebot -mediainfo /path/to/input --format "{f.name} | {hdr} | {video.HDR_Format} | {video.HDR_Format_Commercial} | {video.HDR_Format_Compatibility} | { video.HDR_Format =~ /Dolby Vision/ ? video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : 'DV' : 'NO-DV' } | {video.BitDepth} | {video.colour_primaries}"
Curiously, does seem to work from the command line:

Console Output: Select all

admin@nas:/$ filebot -mediainfo /volume1/plexvolume/Movies/American\ Pie\ \(1999\) --format "{f.name} | {hdr} | {video.HDR_Format} | {video.HDR_Format_Commercial} | {video.HDR_Format_Compatibility} | { video.HDR_Format =~ /Dolby Vision/ ? video.HDR_Format_Compatibility =~ /HDR10/ ? 'DV+HDR10' : 'DV' : 'NO-DV' } | {video.BitDepth} | {video.colour_primaries}"
Current application revision (r10714) does not match cache revision (r10514)
Initialize new disk cache: /var/packages/filebot/var/data/1026/cache/0
Failed to write xattr key: net.filebot.mediainfo: Error writing extended attribute 'net.filebot.mediainfo': No space left on device: American Pie (1999).mkv
American Pie (1999).mkv | DV+HDR10 | [Dolby Vision / SMPTE ST 2086] | [Blu-ray / HDR10] | [Blu-ray / HDR10] | DV+HDR10 | [10] | [BT.2020]
fanart.jpg | DV+HDR10 | [Dolby Vision / SMPTE ST 2086] | [Blu-ray / HDR10] | [Blu-ray / HDR10] | DV+HDR10 | [10] | [BT.2020]
poster.png | DV+HDR10 | [Dolby Vision / SMPTE ST 2086] | [Blu-ray / HDR10] | [Blu-ray / HDR10] | DV+HDR10 | [10] | [BT.2020]
I also ran sysinfo just to make sure it was the same as from Filebot Node, and it does appear so, aside from the user info:

Console Output: Select all

admin@nas:/$ filebot -script 'fn:sysinfo'
FileBot 5.2.0 (r10714)
JNA Native: 7.0.0
MediaInfo: 21.09
Tools: 7z/16.02 unrar/5.70
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2025-09-04 (r1016)
Groovy: 4.0.28
JRE: OpenJDK Runtime Environment 21.0.4
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 1.0 GB Max Memory / 34 MB Used Memory
OS: Linux (amd64)
HW: Linux nas 4.4.302+ #72806 SMP Mon Jul 21 23:14:25 CST 2025 x86_64 GNU/Linux synology_v1000_1821+
CPU/MEM: : AMD Ryzen Embedded V1500B / MemTotal: 4.1 GB / MemFree: 179 MB / MemAvailable: 2.8 GB / SwapCached: 434 KB / SwapTotal: 4.6 GB / SwapFree: 4.5 GB
STORAGE: ext4 [/] @ 833 MB | ext4 [/volume1] @ 705 GB
UID/GID: uid=1026(admin) gid=100(users) groups=100(users),101(administrators)
DATA: /var/packages/filebot/var/data/1026
Package: SPK
Activate License [PX67477369] on [Thu Oct 16 12:01:25 IST 2025]
License: FileBot License PX67477369 (Valid-Until: 2074-12-04)
Done ヾ(@⌒ー⌒@)ノ
I reran the test in Filebot Node and still get

Code: Select all

American Pie (1999) {edition-Unrated} [2160p BluRay HDR10 REMUX FraMeSToR].mkv
, however if I run the exact command at the top of the Node run via ssh, I get the expected return of

Code: Select all

American Pie (1999) {edition-Unrated} [2160p BluRay DV+HDR10 REMUX FraMeSToR].mkv
User avatar
rednoah
The Source
Posts: 24313
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Inconsistent {hdr} output (not detecting DV)

Post by rednoah »

:?: What happens if you do Clear Cache once from the FileBot Node menu? (i.e. run filebot -clear-cache as the FileBot Node internal user)

Screenshot
:idea: Please read the FAQ and How to Request Help.
flammabled
Posts: 4
Joined: 14 Oct 2025, 10:10

Re: Inconsistent {hdr} output (not detecting DV)

Post by flammabled »

rednoah wrote: 16 Oct 2025, 11:42 :?: What happens if you do Clear Cache once from the FileBot Node menu? (i.e. run filebot -clear-cache as the FileBot Node internal user)

Screenshot
Aha, that seems to have done the job, I am now getting the expected {hdr} output from Node! Thank you!
User avatar
rednoah
The Source
Posts: 24313
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Inconsistent {hdr} output (not detecting DV)

Post by rednoah »

flammabled wrote: 16 Oct 2025, 11:54 Aha, that seems to have done the job, I am now getting the expected {hdr} output from Node! Thank you!
I see. That does explain things. Any upgrade / downgrade will clear all caches. But if you upgrade FileBot to r10714 first, then process files with older libmediainfo, then upgrade to newer libmediainfo independently of FileBot, then FileBot will be using outdated mediainfo tables from cache.



EDIT
:idea: libmediainfo has been updated as well: [Package Update] MediaInfo · Issue #6734 · SynoCommunity/spksrc · GitHub
:idea: Please read the FAQ and How to Request Help.
Post Reply