Add Video Quality to the Renaming Scheme

All your suggestions, requests and ideas for future development
Post Reply
Minibeastly
Posts: 1
Joined: 07 Oct 2017, 19:35

Add Video Quality to the Renaming Scheme

Post by Minibeastly » 07 Oct 2017, 19:54

Such as 1080p, 720p, or SD. Could do it from the original file name or some sort of metadata search. Not entirely sure which would be easier.

Example: Avatar (2009)/ Avatar (2009) [1080p].mkv

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

Re: Add Video Quality to the Renaming Scheme

Post by rednoah » 07 Oct 2017, 21:55

Bindings such as {vf} or {hd} yield values based on the media info regardless of the current or previous filename. You can just add that to your format.

@see viewtopic.php?f=5&t=4285
:idea: Please read the FAQ and How to Request Help.

poochie2
Posts: 12
Joined: 16 Jun 2018, 13:55

Re: Add Video Quality to the Renaming Scheme

Post by poochie2 » 16 Jun 2018, 13:59

rednoah wrote:
07 Oct 2017, 21:55
Bindings such as {vf} or {hd} yield values based on the media info regardless of the current or previous filename. You can just add that to your format.
Dear master, I found out that some weird releases (LGC group) have uncommon vertical resolutions like 1090 pixels. Filebot {vf} would mistake them for 2160p content. Can you suggest an elegant fix for issues like these other redoing the whole calculation from the raw video height parameter?

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

Re: Add Video Quality to the Renaming Scheme

Post by rednoah » 16 Jun 2018, 14:12

poochie2 wrote:
16 Jun 2018, 13:59
Dear master, ...
Flattery accepted and well received. :lol:


Not sure. What are the exact width / height values?

{vf} tries to normalize the values and give you what you want, instead of just giving you the raw {hpi} value.

As a quick fix, you could do your own checks:

Code: Select all

{height in 800..1200 ? '1080p' : vf}
Not very elegant, but maybe {vf} can be tweaked for next release.
:idea: Please read the FAQ and How to Request Help.

poochie2
Posts: 12
Joined: 16 Jun 2018, 13:55

Re: Add Video Quality to the Renaming Scheme

Post by poochie2 » 16 Jun 2018, 14:30

Flattery well deserved, from what I read.

The info is:

Code: Select all

Width: 1 936 pixels
Height: 1 090 pixels
Tried and it works, I need to rename all my media with generic video fromat information so that Sonarr and his bros can understand what quality is on my drives to allow me to try some quality upgrade automation.

Would it be possible to know what exact values (min, max) are used right now by filebot to do the {vf} qualifications?

PS: I will probably ping you in another thread because there is something very basic about customizing the code between {} that is puzzling me.

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

Re: Add Video Quality to the Renaming Scheme

Post by rednoah » 16 Jun 2018, 16:35

FileBot uses this data and traverses each w/h pair until it finds one that doesn't fit, and then picks the previous one:

Code: Select all

resolution.steps.w: 15360 7680 3840 1920  1280 1024 854 720 688 512 320 160
resolution.steps.h:  8640 4320 2160 1080   720  576 576 480 360 240 240 120
:idea: Please read the FAQ and How to Request Help.

poochie2
Posts: 12
Joined: 16 Jun 2018, 13:55

Re: Add Video Quality to the Renaming Scheme

Post by poochie2 » 16 Jun 2018, 16:54

rednoah wrote:
16 Jun 2018, 16:35
FileBot uses this data and traverses each w/h pair until it finds one that doesn't fit, and then picks the previous one:

Code: Select all

resolution.steps.w: 15360 7680 3840 1920  1280 1024 854 720 688 512 320 160
resolution.steps.h:  8640 4320 2160 1080   720  576 576 480 360 240 240 120
I see, I don't know if there is an official definition somewhere, but a 1081p movie should probably not fit in it's upper category :geek:.

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

Re: Add Video Quality to the Renaming Scheme

Post by rednoah » 17 Jun 2018, 04:55

Yeah, I'll update that one for next release.
:idea: Please read the FAQ and How to Request Help.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests