Detect HEVC

All about user-defined episode / movie / file name format expressions
Post Reply
Rick7C2
Posts: 12
Joined: 22 Nov 2013, 23:04

Detect HEVC

Post by Rick7C2 »

First I assume HEVC, h265, x265 are all the same right? If so I would like the filename to be x265 if it matches any of those.

I want the renamer to first check the filename for the info and use that if exists. If not I want it to parse mediainfo for the data. Then if fn.match or vc equals HVEC, h265, or x265 use x265.

This is my code sofar the only thing it lacks is use x265 even if fn.match or vc equals HVEC, or h265.

Code: Select all

F:\Media Server\TV Shows\{n}\{'Season '+s.pad(2)}\{n} - {s00e00} - {t} ({any{fn.match(/720[pP]|1080[pP]/)}{vf}} {any{source}{'Unknown'}}, (({any{fn.match(/[xX]264|[xX]265/)}{vc}}), ({any{fn.match(/DTS|AC3/)}{ac}}))
How would I modify this code to add these conditions?

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

Re: Detect HEVC

Post by rednoah »

No, HEVC, h265 and x265 are not the same thing.

This thread is more or less about what you're trying to do: viewtopic.php?f=5&t=4283

e.g.

Code: Select all

{video.CodecID =~ /HEVC/ ? 'HEVC' : 'Not HEVC'}
:idea: Please read the FAQ and How to Request Help.
Rick7C2
Posts: 12
Joined: 22 Nov 2013, 23:04

Re: Detect HEVC

Post by Rick7C2 »

Ok. Well if they are not the same I don't want to do this. I was under the impression that they were the same so I just wanted to keep the files tidy.

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

Re: Detect HEVC

Post by rednoah »

HEVC is a category of codecs, h265 is a standard that belong to the HEVC category and x265 is an implementation of the h265 standard.
:idea: Please read the FAQ and How to Request Help.
Post Reply