BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Support for Windows users
Post Reply
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

Hello, I am new here, I have a general question about filebot: I have UHD BD, BD, 3D BD rips and DVD rips as .iso or folders (BDMV or VIDEO_TS). My folder structure is the same e.g NAS\movies\BLURAY; NAS\movies\UHDBD;... Is filebot with amc script capeable to determine whether my .iso or folder contains a BD, an UHDBD, a BD3D or a DVD? (and to save it in it's respective directory on my server after renaming it)

I am trying to figure that out for 2 weeks now but get confused about the information I find on the Internet. If I understood it right, it works if the filename of the .iso (or its directory) contains the given tags (DVD, BLURAY, UHD,...)
So before I waste more time for a use case thats maybe not working at all I hope someone can answer and help me out. Thank you!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

Yes, it'll work if the folder structure matches the standard.
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

Thank you for the quick answer!
Does filebot know the media type from the filename/path or from "looking into the .iso file" (or BDMV folder) ?
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

Arlecchino wrote: 04 Dec 2020, 07:18 Does filebot know the media type from the filename/path or from "looking into the .iso file" (or BDMV folder) ?
If the disk is an ISO file, then FileBot will look into the ISO file. If the disk is a folder, then FileBot will look into the folder. Thus FileBot can separate generic ISO files from DVD/BD ISO files and generic folders from DVD/BD folders.
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

Cool, I am able to make filebot rename files to the format: Moviename.year.BLURAY.iso and Moviename.year.DVD.iso, with:

Code: Select all

{n.space ('.')}.{y}{'.'+source}
But I had no luck with the detection of UHD blurays, the final format is supposed to be: Moviename.year.UHD.BLURAY.iso

Neither I was able to rename 3D Blurays to: Moviename.year.3D.BLURAY.iso
So I added "s3d"

Code: Select all

{n.space ('.')}.{y}{'.'+s3d}{'.'+source}.COMPLETE
because thats the only expression I could find regarding 3D, but that doesnt work.Error message: Binding "s3d": undefined

BDMV folders don't work (no "BLURAY" expression)

DVD Video TS folders return "TS" expression for source

I am testing on Win10, have a valid filebot license and Mediainfo is installed. I am a total beginner with filebot and I have no plan about programming and stuff, so please be patient.
What am I doing wrong? What do I have to look up for information and what do i have to change?
Thank you for your help!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

{source} does not work the way you want.

It will only work for files or folders where the source is in the file or folder name:
viewtopic.php?t=11265

e.g.

Code: Select all

/path/to/Avatar BluRay.avi => BluRay
/path/to/Avatar BluRay => BluRay
/path/to/Avatar.avi => undefined
/path/to/Avatar => undefined
:idea: Note that the {source} binding does not look inside the disk folder for different kinds of disk folder structure types.


:arrow: If you need to auto-detect the type of disk for a given disk folder, then you will need to use custom code and check the file structure for certain keywords, e.g.

Code: Select all

{f.files =~ /BDMV/ ? 'BluRay' : null}
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

That was vital information, so far I have:

Code: Select all

{n.space ('.')}.{y}{width > 3000 ? '.UHD' : null}{f.files =~ /BDMV/ ? '.BLURAY' : null}{f.files =~ /VIDEO_TS/ ? '.DVD' : null}
and that works for folders and that gives out:

Moviename.year.UHD.BLURAY for UHD BD folders
Moviename.year.BLURAY for BD folders
Moviename.year.DVD for DVD folders

thats good, but how can I make filebot now look into .iso files?
and how can I define 3D BDs?

thats my sysinfo:

Code: Select all

FileBot 4.9.2 (r8046)
JNA Native: 6.1.0
MediaInfo: 20.08
7-Zip-JBinding: 16.02
Tools: fpcalc/1.5.0
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2020-12-01 (r724)
Groovy: 3.0.6
JRE: OpenJDK Runtime Environment 15
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 4 Core / 1.1 GB Max Memory / 35 MB Used Memory
OS: Windows 10 (amd64)
STORAGE: NTFS [(C:)] @ 12 GB | NTFS [NAS] @ 5 TB | NTFS [NAS] @ 244 GB
DATA: C:\Users\Flo\AppData\Roaming\FileBot
Package: MSI
Activate License [P11511203] on [Fri Dec 04 23:01:38 CET 2020]
License: FileBot License P11511203 (Valid-Until: 2021-02-08)
thank you for your help!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

Arlecchino wrote: 04 Dec 2020, 22:26 thats good, but how can I make filebot now look into .iso files?
Unfortunately, FileBot does not have easy-to-use scripting interfaces for that for you at this point.

:idea: You can use the Filter to batch-extract all your ISO files as a pre-processing step though.

Arlecchino wrote: 04 Dec 2020, 22:26 and how can I define 3D BDs?
You will have to add additional heuristics to your code. What characteristics do 3D BDs have on the file system level?
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

...oh, that's kind of a show stopper, I prefer .iso over folders, so there are a lot of isos I don't really wanna convert. For new downloads, can I combine 2 approaches, like:

1.if the information is in the filname take from there
2.if not and it is a BDMV folder take info from there
3.unknown files move to a seperate directory to rename manually

?

...for the 3DBD definition i added finally:

Code: Select all

{f.files =~ /BDMV\STREAM\SSIF/ ? '.3D' : null}
Would that work? I can't check because I just have 3D isos, no folders, I am just interested if that was the solution : )

Am I the only one in need for the .iso option of filebot?

Thank you for your help! , as usual
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

Arlecchino wrote: 05 Dec 2020, 11:52 Would that work? I can't check because I just have 3D isos, no folders, I am just interested if that was the solution : )
If it's an ISO file, then you have to make due with the file path, or perhaps sibling nfo files if you happen have those. If you have a directory then you can check file paths in the directory. I don't know if it's easy to find 3D BD disk folders by looking at the file paths.


EDIT:

FileBot r8262 extends a File.getChildren() to list child files for folders and child items for archives.


Arlecchino wrote: 05 Dec 2020, 11:52 Am I the only one in need for the .iso option of filebot?
Pretty much. Most people prefer video files over disk images.
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

I don't know if it's easy to find 3D BD disk folders by looking at the file paths.
If it has BDMV/STREAM/SSIF then it is a 3D BD disk folder.
FileBot r8262 extends a File.getChildren() to list child files for folders and child items for archives.
What's that? Is r8262 the beta? (I have r8046) How does that "File.getChildren()" work? How can I use it?

thank you
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

Arlecchino wrote: 05 Dec 2020, 18:47 What's that? Is r8262 the beta?
:arrow: viewtopic.php?t=1609

Arlecchino wrote: 05 Dec 2020, 18:47 How does that "File.getChildren()" work? How can I use it?
FileBot r8273 now works like this:

Code: Select all

f.find() =~ /BDMV|STREAM|SSIF/
:idea: File.find() will return a list of file paths, files inside a folder, entries inside an archive file, lines instead a text file, etc.


EDIT:

FileBot r8280 now works like this:

Code: Select all

files =~ /BDMV|STREAM|SSIF/
:idea: Please read the FAQ and How to Request Help.
Arlecchino
Posts: 7
Joined: 03 Dec 2020, 15:36

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by Arlecchino »

...ok, I got the newest beta of filebot!
How can I determine the rev. number on the portable version?

It works like you said with:

Code: Select all

{files =~ /BDMV|STREAM|SSIF/ ? '.3D' : null}
...for movie folders with a BDMV/STREAM/SSIF folder it adds a ".3D"

BUT:

Code: Select all

{n.space ('.')}.{y}
{files =~ /VIDEO_TS/ ? '.DVD' : null}
...ALSO works on .iso files, why is that!? Why can filebot look inside a DVD.iso but not into a BD,3DBD,UHDBD?

I apreciate your help as usual, thank you!
User avatar
rednoah
The Source
Posts: 22986
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: BD, UHDBD, 3DBD, DVD .iso identification in filebot?

Post by rednoah »

1.
Please read How to Request Help for details on how to check the revision number.


2.
What is the value of {files} in the case where it doesn't work as expected?
:idea: Please read the FAQ and How to Request Help.
Post Reply