Seriously? You need an equation? 800/1920 x 1280 = 533.3333
I didn't say I wouldn't resize to 1296, I said I'd aim for 1280 first. If I couldn't resize without cropping too much picture for very low aspect error, I'd change the resizing if need be. I'd stick with 1280 for 16:9, but for widescreen encodes what do I care? It'll be upscaled to 1920 on playback anyway.
I don't see the problem. The closest mod2 resizing is 1280x534 which means there's a small aspect error, just as I said. Getting it down to zero can require a little fiddling with the cropping in the calculator. Maybe a pixel or two from the width, a couple more from the height etc, but often it's possible. The calculator didn't magically produce the other cropping/resizing combinations though. I fiddled with the cropping/resizing myself to find them.
I only use auto-cropping to roughly crop, but from there I invariably manually adjust it. Many (or most) programs let you auto-crop and resize but still only let you specify a width because the height depends on the cropping. So you specify 1280, they crop, and the height ends up the closest match for 1280 possible. The greater the mod specified, the more potential for aspect error.
AutoGK was one program smarter than the average bear. It cropped twice. It'd do the usual cropping and resizing but instead of resizing to the specified with, it'd resize to a height that gave you a width equal to or greater than the one specified. Or something along those lines. So if you specified (for example) 720 as a width, and after cropping the exact resizing would be 720x396, it'd resize to the next mod16 height instead ie 728x400 (727.27x400 rounded up) then it'd crop the width for 720x400. That way it could give you the requested width and mod16 with almost zero aspect error.
I had intended to duplicate some of it's scripts myself at one stage, even just as an exercise, but as everything's mod4 or mod2 these days and I always manually crop and resize, I haven't been motivated, but if I was only auto-cropping that's probably the way I try to do it, as it gives you the best of both worlds.
MeGUI doesn't automate anything, aside from automatically adjusting the resizing while cropping if you let it. Mostly I fiddle with the cropping and resizing myself until I find a very low aspect error combination.
2.4:1 isn't some magic resolution. Crop 2 more pixels from the height and the source is now 2.397:1, and in exactly the same way it was 16:9 before you cropped to make it 2.4:1, the resizing and aspect error calculations are based on the post-crop resolution.
It's not a case of me admitting anything, but I think it be a case of getting you to understand. There's always a calculation. 1280/(1920/1080) = 720 might be a nice number and easy to remember but it's a calculation.
You'll have to show me where I said that, because I use non standard resolutions all the time.
It comes down to this. I have a 720x576 PAL DVD I want to resize to exactly 4:3 dimensions. 640x480, 768x576, it doesn't matter, so I'll pick 720x540. There's a lot of black down the sides I want to remove. I crop the crud and resize what's left to 720x540. I note the aspect error, and increase the cropping as required (width and/or height) until the aspect error is zero or almost zero. I save the script and I have a nice clean 4:3 encode at 720x540.
How would you resize first and then auto crop for a nice 4:3 resolution, and how would you ensure it's 720x540 each time? AutoGK had an option to always output the specified width and a 4:3 aspect ratio, and once again it involved some additional auto-cropping and script cleverness, but it didn't distort the picture. If you don't care about that sort of thing it's your personal choice, but I do, and I know you can't do it by simply resizing first and auto-cropping second, so your way doesn't work for me.
+ Reply to Thread
Results 31 to 39 of 39
-
Last edited by hello_hello; 14th Feb 2017 at 10:03.
-
MeGUI doesn't automate anything, aside from automatically adjusting the resizing while cropping if you let it. Mostly I fiddle with the cropping and resizing myself until I find a very low aspect error combination.
If it does not, the do you understand what I am getting at? Why do you need that 2.4:1 for? I told you, you do not need that, you do not need any of those values what op asked about, you brought up that Megui needs that for this and this, and I asked why, because if not BD source or DVD they are false and software cannot guess correct value, you even said it yourself.
How would you resize first and then auto crop for a nice 4:3 resolution
I am going to check now if handbrake can do it that way...Last edited by _Al_; 14th Feb 2017 at 11:02.
-
Seriously man. I've written essays answering your questions, trying to explain for days. What else are you still having trouble understanding?
I must have missed the numerous times you've asked about the OneClick encoder.... oh wait a minute, this is the first time.
Apparently OneClick can be used to auto-crop and/or resize and output a finished file just like Handbrake and every other GUI, and they all crop first, but I've almost never used OneClick myself.
I still don't know how you go about resizing first and auto-cropping because you haven't answered the question..... yet again. I'm ready to assume you don't actually have a method for cropping after resizing and it's just theoretical.
Is English your fourth or fifth language?
I bought up MeGUI simply because we were discussing converting decimal numbers into the smallest possible fraction and not knowing an easy way to do it myself, I get MeGUI to tell me by creating a custom aspect ratio. That was it. You turned it into a different discussion by telling me I shouldn't be using aspect ratios for reasons that make no sense given every video has one.
I explained why I use custom aspect ratios for DVDs but obviously you don't get it and I don't know how else to explain it. I use 15:11 as the aspect ratio, you use 4:3, but EITHER WAY, you have to pick the aspect ratio you want to start with and there's no magic involved just because you happen to pick 4:3. It's an aspect ratio like the rest.
Once again.... for the other videos I WASN'T GUESSING AT ASPECT RATIOS. THEY WERE WRITTEN TO THE VIDEO STREAM. MEGUI WAS IGNORING THEM BECAUSE THE RESOLUTION WAS EXACTLY 720X480 AND ASSUMING 4:3 INSTEAD. I CREATED CUSTOM ASPECT RATIOS SO I'D BE USING THE ASPECT RATIOS WRITTEN TO THE VIDEO STREAMS INSTEAD OF THE 4:3 MEGUI WAS ASSUMING. And once more for luck.... THERE WAS NO GUESSING.
You can tell me I don't need 2.41 as often as you like but it just sounds like a way to justify not being able to crop and resize like everyone else. Cropping the black is so easy, encoding it seems borderline stupid to me.
So you can't achieve what I've told you countless times I want to achieve but you're still telling me to do it that way anyway.
I haven't told you you're doing it wrong. You're talking nonsense now. You started off telling me I should be doing it your way because aspect error calculators are snake oil, but now I'm the one who's been telling you you're doing it wrong? Unbelievable.
I've said it's personal preference. Things aren't going to work better for me if I don't crop, because they're working fine now. No aspect error, no black, and the output I want.Last edited by hello_hello; 14th Feb 2017 at 12:48.
-
you are an impossible man, just wasted couple of days,
You want plain English? Did not read further than that remark, you are entering ass**** territory with statements like that, it is me who is patient here. So elaborate on this and give me yes , no answer and quick proof, no stupid novels of yours good for nothing:
-Aspect ratio that mediainfo reports is bloody good for nothing if file is not BD or DVD file.
-MeGui does not need it while calculating anything, yet you bring that number up, rounded up all the time and make some decimal to fraction calculations thinking about infinity for a decimal number.
-You CAN resize and autocrop BD, DVD file afterwards automatically not having university degree how things work and you are better off.
-If talking about not BD and DVD file , like downloaded MP4, our own encoded files if cropped or whatever was done (especially after your world norm class treat crop&resize and making mistake because doing it manually one makes a mistake, just look at the web) we established source could be anything, thank you. -
Yep. All that and you still don't understand
Really? After I've asked you yet again what your method is for resizing first and cropping second and you've ignored it yet again? Yet once more you've told me to do it that way. And you want me to keep answering your questions? I'm still laughing.
And to think you actually accused me of being the one telling you how to do it. It's hard to create a new version of history in forums without being able to remove all the evidence, yet it's amazing how often people are somewhat detached from reality.
Last edited by hello_hello; 14th Feb 2017 at 23:34.
-
Last edited by Keyser; 17th Feb 2017 at 14:59. Reason: Add screenshot
"The greatest trick the Devil ever pulled was convincing the world he didn't exist." -
I was reminded of this thread while I was trying to work out how to do something else, as I discovered Avisynth has the ability to reduce fractions, so I created a little function to make it easier, and another one to convert decimal numbers to fractions. The result is displayed as a subtitle in the centre of the video.
LowDen(Num, Den, Limit) reduces fractions.
Code:# Function for displaying the lowest common denominator of a rational pair of numbers. # The result displays as a subtitle in the centre of the video. # The Limit argument specifies the allowable error as 1/Limit, so Limit=100 would be 1/100 or 0.01 or 1%. # If Limit is not specified, Num & Den are reduced by the greatest common divisor. # http://avisynth.nl/index.php/Internal_functions#Continued_Numerator.2C_Denominator # # Examples: # LowDen(1280, 720) will result in 16/9 # LowDen(1281, 721) will result in 1281/721 # LowDen(1281, 721, 100) will result in 167/94 # LowDen(1281, 721, 10) will result in 16/9 function LowDen(clip c, int "Num", int "Den", int "Limit") { assert(defined(Num), """ LowDen: Both numerator and denominator must be specified """) assert(defined(Den), """ LowDen: Both numerator and denominator must be specified """) Numerator = string(ContinuedNumerator(Num, Den, limit=Limit)) Denominator = string(ContinuedDenominator(Num, Den, limit=Limit)) return c.subtitle(Numerator + """/""" + Denominator, size=30, align=5, text_color=color_white) }
Code:# Function for converting decimal numbers to fractions. # The result displays as a subtitle in the centre of the video. # The Limit argument specifies the allowable error as 1/Limit, so Limit=100 would be 1/100 or 0.01 or 1%. # Limit=50000 by default which should make it accurate to nearly 6 decimal places, # therefore 1.777777 or 1.777778 will convert to exactly 16:9. To disable the Limit argument, set Limit=0 # http://avisynth.nl/index.php/Internal_functions#Continued_Numerator.2C_Denominator # # Examples: # DecToFrac(1.78) will result in 89/50 # DecToFrac(1.777778) will result in 16/9 # DecToFrac(1.777778, 0) will result in 634601/356963 function DecToFrac(clip c, float "Dec", int "Limit") { Limit = default(Limit, 50000) Limited = Limit == 0 ? undefined : Limit Numerator = string(ContinuedNumerator(Dec, limit=Limited)) Denominator = string(ContinuedDenominator(Dec, limit=Limited)) return c.subtitle(Numerator + """/""" + Denominator, size=30, align=5, text_color=color_white) }
Last edited by hello_hello; 22nd Aug 2017 at 20:08.
Similar Threads
-
Aspect Ratio help: What ratio is this?
By bergqvistjl in forum RestorationReplies: 20Last Post: 20th Aug 2016, 06:00 -
Keep Aspect Ratio
By monteverde in forum Video ConversionReplies: 8Last Post: 31st Dec 2013, 12:26 -
Old TV - aspect ratio
By wurlitzer in forum Newbie / General discussionsReplies: 1Last Post: 29th Oct 2012, 10:38 -
Video aspect ratio and Pixel aspect ratio
By LeoKac in forum Newbie / General discussionsReplies: 3Last Post: 1st Sep 2012, 15:15 -
aspect ratio
By devdev in forum Video ConversionReplies: 5Last Post: 19th Apr 2012, 17:31