Page 1 of 1

Detect HEVC

Posted: 19 Nov 2016, 14:28
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

Re: Detect HEVC

Posted: 19 Nov 2016, 15:18
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'}

Re: Detect HEVC

Posted: 19 Nov 2016, 15:54
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

Re: Detect HEVC

Posted: 19 Nov 2016, 17:27
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.