My code is:
Code: Select all
{'.'+vc.replace('Microsoft', 'VC-1').replace ('AVC','H.264') .replace ('x264','H.264').replace ('HEVC','HEVC.x265').replace ('x265','HEVC.x265')}
Code: Select all
{'.'+vc.replace('Microsoft', 'VC-1').replace ('AVC','H.264') .replace ('x264','H.264').replace ('HEVC','HEVC.x265').replace ('x265','HEVC.x265')}
I Hope this can help you help merednoah wrote:Sure, check whatever MediaInfo is available and see if you can make a simple condition on one of these properties that works for all your files.
Not much I can do unless you post the full MediaInfo for that file.
Code: Select all
Format AAC
Format/Info Advanced Audio Codec
Format_Commercial AAC
Format_Profile HE-AAC / LC
Format_Settings_SBR Yes (Implicit)
Format_Settings_SBR/String Yes (Implicit)
Format_Settings_PS No (Explicit)
Format_Settings_PS/String No (Explicit)
CodecID A_AAC
Codec AAC LC-SBR
Codec/String AAC LC-SBR
Codec/Family AAC
Duration 7815882
Duration/String 2h 10mn
Duration/String1 2h 10mn 15s 882ms
Duration/String2 2h 10mn
Duration/String3 02:10:15.882
Duration/String5 02:10:15.882
Channel(s) 7
Channel(s)/String 7 channels
Channel(s)_Original 8
Channel(s)_Original/String 8 channels
ChannelPositions Front: L C R, Side: L R, Back: L R, LFE
ChannelPositions/String2 3/2/2.1
ChannelLayout C L R Ls Rs Lrs Rrs LFE
SamplingRate 48000 / 24000
SamplingRate/String 48.0 KHz / 24.0 KHz
Compression_Mode Lossy
Compression_Mode/String Lossy
Delay 31
Delay/String 31ms
Delay/String1 31ms
Delay/String2 31ms
Delay/String3 00:00:00.031
Delay_Source Container
Delay_Source/String Container
Video_Delay 31
Video_Delay/String 31ms
Video_Delay/String1 31ms
Video_Delay/String2 31ms
Video_Delay/String3 00:00:00.031
Video0_Delay 31
Video0_Delay/String 31ms
Video0_Delay/String1 31ms
Video0_Delay/String2 31ms
Video0_Delay/String3 00:00:00.031
Language en
Language/String English
Language/String1 English
Language/String2 en
Language/String3 eng
Language/String4 en
Default Yes
Default/String Yes
Forced No
Forced/String No
Code: Select all
Format HEVC
Format/Info High Efficiency Video Coding
Format/Url http://www.itu.int
Format_Commercial HEVC
Format_Profile Main 10@L4@Main
InternetMediaType video/H265
CodecID V_MPEGH/ISO/HEVC
Codec V_MPEGH/ISO/HEVC
Codec/String V_MPEGH/ISO/HEVC
Codec_Profile Main 10@L4@Main
Duration 7815899
Duration/String 2h 10mn
Duration/String1 2h 10mn 15s 899ms
Duration/String2 2h 10mn
Duration/String3 02:10:15.899
Duration/String4 02:10:17;20
Duration/String5 02:10:15.899 (02:10:17;20)
Width 1920
Width/String 1 920 pixels
Height 800
Height/String 800 pixels
Sampled_Width 1920
Sampled_Height 800
PixelAspectRatio 1.000
DisplayAspectRatio 2.400
DisplayAspectRatio/String 2.40:1
FrameRate_Mode CFR
FrameRate_Mode/String Constant
FrameRate 23.976
FrameRate/String 23.976 fps
Resolution 10
Resolution/String 10 bits
Colorimetry 4:2:0
ColorSpace YUV
ChromaSubsampling 4:2:0
BitDepth 10
BitDepth/String 10 bits
Delay 0
Delay/String3 00:00:00.000
Delay_Source Container
Delay_Source/String Container
Default Yes
Default/String Yes
Forced No
Code: Select all
Video_Format_List HEVC
Video_Format_WithHint_List HEVC
Video_Codec_List V_MPEGH/ISO/HEVC
Video_Language_List English
Audio_Format_List AAC
Audio_Format_WithHint_List AAC
Audio_Codec_List AAC LC-SBR
Audio_Language_List English
Text_Format_List UTF-8 / UTF-8
Text_Format_WithHint_List UTF-8 / UTF-8
Text_Codec_List UTF-8 / UTF-8
Text_Language_List / English
CompleteName H:\Movies (HEVC)\Big Short, The (2015) [R][BluRay]\The.Big.Short.2015.1080p.10bit.BluRay.HEVC.x265.AAC.6.1CH-PSA.mkv
FolderName H:\Movies (HEVC)\Big Short, The (2015) [R][BluRay]
FileName The.Big.Short.2015.1080p.10bit.BluRay.HEVC.x265.AAC.6.1CH-PSA
FileExtension mkv
Format Matroska
Format/String Matroska
Format/Url http://packs.matroska.org/
Format/Extensions mkv mk3d mka mks
Format_Commercial Matroska
Format_Version Version 4 / Version 2
Codec Matroska
Codec/String Matroska
Codec/Url http://packs.matroska.org/
Codec/Extensions mkv mk3d mka mks
FileSize 2555799309
FileSize/String 2.38 GiB
FileSize/String1 2 GiB
FileSize/String2 2.4 GiB
FileSize/String3 2.38 GiB
FileSize/String4 2.380 GiB
Duration 7815882
Duration/String 2h 10mn
Duration/String1 2h 10mn 15s 882ms
Duration/String2 2h 10mn
Duration/String3 02:10:15.882
Duration/String4 02:10:17;20
Duration/String5 02:10:15.882 (02:10:17;20)
OverallBitRate 2616006
OverallBitRate/String 2 616 Kbps
FrameRate 23.976
FrameRate/String 23.976 fps
Title PSArips.com | The.Big.Short.2015.1080p.10bit.BluRay.8CH.x265.HEVC-PSA
Movie PSArips.com | The.Big.Short.2015.1080p.10bit.BluRay.8CH.x265.HEVC-PSA
Encoded_Date UTC 2016-09-20 23:40:49
File_Created_Date UTC 2016-09-20 23:40:49.360
File_Created_Date_Local 2016-09-20 19:40:49.360
File_Modified_Date UTC 2016-11-04 22:19:56.205
File_Modified_Date_Local 2016-11-04 18:19:56.205
Encoded_Application mkvmerge v9.4.2 ('So High') 64bit
Encoded_Application/String mkvmerge v9.4.2 ('So High') 64bit
Encoded_Library libebml v1.3.4 + libmatroska v1.4.5
Encoded_Library/String libebml v1.3.4 + libmatroska v1.4.5
Attachements cover.jpg
DURATION 02:03:09.674000000
NUMBER_OF_FRAMES 2546
NUMBER_OF_BYTES 91275
_STATISTICS_WRITING_APP mkvmerge v9.4.2 ('So High') 64bit
_STATISTICS_WRITING_DATE_UTC 2016-09-20 23:40:49
_STATISTICS_TAGS BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Code: Select all
video[0].Format
Code: Select all
video[0].CodecID =~ /HEVC/ ? 'HEVC' : 'NOT_HEVC'
Code: Select all
fn.match(/HEVC.x265/)
Code: Select all
{ video[0].CodecID =~ /HEVC/ ? 'HEVC.x265' : 'H.264'}