Page 1 of 1

Apparent Bug: Binding references 'vc' and 'vcf' not behaving as expected

Posted: 26 Jul 2021, 16:31
by RLA

Code: Select all

FileBot 4.9.3 (r8340)
JNA Native: 6.1.0
MediaInfo: 20.09
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2021-06-15 (r755)
Groovy: 3.0.7
JRE: OpenJDK Runtime Environment 15.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 4.3 GB Max Memory / 29 MB Used Memory
OS: Mac OS X (x86_64)
HW: Darwin RLA-MBP.local 18.7.0 Darwin Kernel Version 18.7.0: Mon May  3 20:41:19 PDT 2021; root:xnu-4903.278.68~1/RELEASE_X86_64 x86_64
STORAGE: apfs [/] @ 69 GB | hfs [/Volumes/Resize-Buffer] @ 9 GB | afpfs [/Volumes/RnC-Data] @ 54 GB | afpfs [/Volumes/Media] @ 54 GB
DATA: /Users/RLA/.filebot
Package: PKG
License: FileBot License [REDACTED] (Valid-Until: 2022-08-02)

Context: I have 2 versions of the same movie (Interstellar). One is 1080p/x264/AVC, and the other is 4K/x265/HEVC. I'm trying to use the following format on these two files, but behavior is unexpected:

Code: Select all

{n.upperInitial().space('.')}{'.'+y}{'.'+vf}{'.'+vc}{'-'+vcf}
Expected behavior: I expect the files to be renamed as follows:
  • Interstellar.2014.1080p.x264-AVC
  • Interstellar.2014.2160p.x265-HEVC
In other words, I would expect x264/x265 to come from the 'vc' reference, and AVC/HEVC to come from the 'vcf' reference

Actual behavior:
  • The following error is thrown for "vcf" property - "groovy.lang.MissingPropertyException: No such property: vcf for class: Script 156
  • File 1 resulting name is "Interstellar.2014.1080p.x264
  • File 2 resulting name is "Interstellar.2014.2160p.HEVC
In other words, x264 and HEVC come from the 'vc' reference (problem 1), and the 'vcf' reference fails completely (problem 2)

Re: Apparent Bug: Binding references 'vc' and 'vcf' not behaving as expected

Posted: 27 Jul 2021, 02:26
by rednoah
1.
What does the raw MediaInfo say for these files?
viewtopic.php?t=4285

:idea: {vc} is derived from one of the following MediaInfo video properties, in order of priority, whichever is available:

Code: Select all

"Encoded_Library_Name", "Encoded_Library/Name", "CodecID/Hint", "Format"


2.
{vcf} as added rather recently so you might need the latest beta.

:idea: Note that vcf is just a convenience alias for video[0].Format which will work with any version of FileBot:

Code: Select all

{ video[0].Format }