Page 1 of 1

Guess source media based on resolution, bitrate and file size

Posted: 20 Oct 2021, 12:26
by rednoah
Return different values based on {hd}, {bytes} and {bitrate}:

Code: Select all

{
	if (hd == 'SD')
		if (megabytes >= 700 && mbps >= 1.1)
			return 'DVDRip'
		else
			return 'TVRip'

	if (hd == 'HD')
		if (megabytes >= 1 && mbps >= 18)
			return 'BDRemux'
		else if (mbps >= 8)
			return 'BDRip'
		else if (mbps >= 2.2)
			return 'MicroHD'
		else
			return 'HDRip'

	if (hd == 'UHD')
		if (megabytes >= 1 && mbps >= 32)
			return 'UHDRemux'
		else if (mbps >= 16)
			return 'UHDRip'
		else
			return 'MicroUHD'
}

Possible return values:

Code: Select all

DVDRip
TVRip
BDRemux
BDRip
MicroHD
HDRip
UHDRemux
UHDRip
MicroUHD