View Full Version : [MadVr] Help a newb set "Profile Auto-Select Rules"?
paulescobar
23rd April 2015, 22:53
I'm just getting the hang of MadVR.
I'm at the point in knowledge where I can determine what Frame-Height, Frame-Width, and Frames-Rate are required for particular profiles.
Unfortunately, I feel like I can't get a grip on Madshi's scripting rules. I'm hoping someone can help me. If I see how my conditions look in the scripting language, I could break it down and get a better handle for the future.
......
Before I provide the sample conditions, I would like to point out a major source of confusion I have.
I don't understand what Madshi means by "framerate after deinterlacing". So in the example posted below, the "Frame Rate" I am conveying is based on:
(a) what I see in the "Ctrl+J" option
(b) what I see in Windows Explorer, when activating the "Frame Rate" column in Details view
If the Frame-Rate values expressed through these methods are incorrect, please tell me the correct method.
.......
Suppose I have two profiles:
- Profile 1
- Profile 2
For "Profile 1", the conditions are:
- Frame Rate: 0-28
- Frame Height: 0-480
- Frame Width: 0-640
For "Profile 2", the conditions are:
- Frame Rate: Any
- Frame Height: 481 and above
- Frame Width: 0-720
How could I set the "Profile Auto Select Rules" to choose between two such profiles?
Asmodian
23rd April 2015, 23:18
You need three profiles, what happens for a width of 721 or higher?
if (deintfps <= 28) and (srcwidth <= 640) and (srcheight <= 480) "Profile 1"
elseif (srcwidth <= 720) and (srcheight > 480) "Profile 2"
else "Profile 3"
edit:
I don't understand what Madshi means by "framerate after deinterlacing".
"framerate after deinterlacing" is the frame rate unless the video is interlaced. Interlaced video is deinterlaced to twice the frame rate so 30i is deinterlaced to 60p. The 60p is what madVR has to process so it makes more sense to base profile rules on the frame rate after deinterlacing.
edit2:
Actually your rules have a somewhat odd special case. What about a video that had a height below 480 but a width between 640 and 720? I assume you would want to use Profile 2 in that case so this would be a better set of rules:
if (deintfps <= 28) and (srcwidth <= 640) and (srcheight <= 480) "Profile 1"
elseif (srcwidth <= 720) "Profile 2"
else "Profile 3"
paulescobar
23rd April 2015, 23:37
Asmodian,
I only provided two profile samples to keep it simple.
These are, by no means, the complete package of profiles I intend to use.
I'm actually working my way up, starting with profiles for low-quality videos...then moving on-to higher.
So I have more work to do creating profiles, and by the end...they should cover all bases.
And thank you so much for the script! Can't wait to try this when I get home!
"framerate after deinterlacing" is the frame rate unless the video is interlaced. Interlaced video is deinterlaced to twice the frame rate so 30i is deinterlaced to 60p. The 60p is what madVR has to process so it makes more sense to base profile rules on the frame rate after deinterlacing.
But how do I determine this value?
I pointed out in my OP, I'm currently determining frame rate through "Ctrl+J" during video playback...or Windows Explorer.
Would any of these methods correctly display "framerate after deinterlacing"?
Asmodian
23rd April 2015, 23:48
But how do I determine this value?
I pointed out in my OP, I'm currently determining frame rate through "Ctrl+J" during video playback...or Windows Explorer.
Would any of these methods correctly display "framerate after deinterlacing"?
You would need to know the video was interlaced and double the values reported there.
Or you can use the "movie frame interval" reported in Ctrl+J, the current frame rate would be 1000 / "movie frame interval".
paulescobar
23rd April 2015, 23:52
You would need to know the video was interlaced and double the values reported there.
Or you can use the "movie frame interval" reported in Ctrl+J, the current frame rate would be 1000 / "movie frame interval".
Great! So much thanks for your help.
It looks so simple now! :thanks:
QBhd
24th April 2015, 05:56
Here is my profiles.... I watch a lot of different sources and like to push my GPU to the max for everything I watch
if (srcHeight < 289) and (deintFps < 31) "Flash 288"
elseif (srcHeight < 361) and (deintFps < 31) "Flash"
elseif (srcHeight < 405) and (deintFps < 31) "400p 30fps"
elseif (srcHeight < 714) and (srcWidth > 1279) "720p24 (cropped)"
elseif (srcHeight < 541) and (deintFps < 26) "1/2 HD"
elseif (srcHeight < 541) and (deintFps < 31) "1/2 HD 30fps"
elseif (srcHeight < 541) and (deintFps > 59) "1/2 HD 60fps"
elseif (srcHeight < 577) and (deintFps < 26) "Flash 576 25fps"
elseif (srcHeight < 577) and (deintFps > 49) "Flash 576 50fps"
elseif (srcHeight < 433) and (deintFps < 31) "<SD 30fps"
elseif (srcHeight < 481) and (deintFps < 31) "SD 30fps"
elseif (srcHeight < 714) and (deintFps > 59) "720p60 (cropped)"
elseif (srcHeight < 721) and (deintFps < 26) "720p24"
elseif (srcHeight < 721) and (deintFps < 31) "720p30"
elseif (srcHeight < 721) and (deintFps < 51) "720p50"
elseif (srcHeight < 721) and (deintFps > 51) "720p60"
elseif (srcHeight < 1040) and (srcWidth > 1919) "1080p24 (cropped)"
elseif (deintFps < 26) "1080p24"
else "1080i30"
It's important to know how conditions pass through the Boolean. So the order of these profiles is very important.
QB
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.