Help with Video Codec

All about user-defined episode / movie format expressions
Post Reply
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Help with Video Codec

Post by cyberdoggy »

I am getting a Double HEVC and cannot seem to figure out how to fix it. Example: The.Big.Short.2015.1080p.10bit.BluRay.HEVC.HEVC.x265.AAC.6.1CH
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')} 
I was wondering if there was a way for it to just see the Video codec and just either make it H.264 or HEVC.x265 for any video I'm thinking it should be that simple.
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Video Codec

Post by rednoah »

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. ;)
:idea: Please read the FAQ and How to Request Help.
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

rednoah 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. ;)
I Hope this can help you help me ;)
https://drive.google.com/file/d/0B4syVb ... sp=sharing
https://drive.google.com/file/d/0B4syVb ... sp=sharing
https://drive.google.com/file/d/0B4syVb ... sp=sharing
https://drive.google.com/file/d/0B4syVb ... sp=sharing
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Video Codec

Post by rednoah »

Please copy & paste the data of the audio stream as text from the MediaInfo table Image so that I can see exactly what FileBot is seeing.

Image
:idea: Please read the FAQ and How to Request Help.
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

I hope this is what you were asking for...
https://drive.google.com/file/d/0B4syVb ... sp=sharing
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Video Codec

Post by rednoah »

Almost... Please use copy & paste to copy the data of Video Stream 1 as text:

1. Select All (CTRL+A)
2. Copy (CTRL+C)
3. Post here in the forums (CTRL+V)

Thanks.
:idea: Please read the FAQ and How to Request Help.
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

OK Gotcha, and thanks so much for taking the time to help ;)

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
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

Here's Video Tab:

Code: Select all

Format	HEVC
Format/Info	High Efficiency Video Coding
Format/Url	http://www.itu.int
Format_Commercial	HEVC
Format_Profile	Main [email protected]@Main
InternetMediaType	video/H265
CodecID	V_MPEGH/ISO/HEVC
Codec	V_MPEGH/ISO/HEVC
Codec/String	V_MPEGH/ISO/HEVC
Codec_Profile	Main [email protected]@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
Here's General Tab:

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
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Video Codec

Post by rednoah »

The Format property seems to contain the value you want:

Code: Select all

video[0].Format
You can also check properties:

Code: Select all

video[0].CodecID =~ /HEVC/ ? 'HEVC' : 'NOT_HEVC'
Or just match pieces of information from the filename:

Code: Select all

fn.match(/HEVC.x265/)
:idea: Please read the FAQ and How to Request Help.
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

Thank's rednoah, I Pieced something together with what you posted!
User avatar
rednoah
The Source
Posts: 19011
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Help with Video Codec

Post by rednoah »

Please share what you came up with so the next guy can learn from (or at least copy & paste) your solution. ;)
:idea: Please read the FAQ and How to Request Help.
cyberdoggy
Posts: 28
Joined: 03 Sep 2016, 21:27

Re: Help with Video Codec

Post by cyberdoggy »

Not sure if this is actually correct but it seems to be working fine for me now with this code...

Code: Select all

{ video[0].CodecID =~ /HEVC/ ? 'HEVC.x265' : 'H.264'}
Post Reply