View Full Version : @lenOx: Shouldnīt AutoGK enforce output AR ?
Darksoul71
27th August 2005, 08:27
Hi len0x,
Iīve been recently comparing the AVI files generated of AutoGK to those generated with my little AutoIt script called "Komprezzor". Something seemed a bit strange to me: AutoGK often produces files with an AR < 1.33 (which is the normal display AR of most computer monitors -> square pixels), e.g. 512x400 instead of 512x384.
To translate this into %: The AR of 512x400 is something like 3.7% smaller than of 512x384. This is nearly 4% "incorect" AR (at least if we referr to 1.33 as "correct").
This results in an incorrect AR when the movie is played back via a player which stretches the movie to the screen borders. Of course you can correct this via playback but I think an "enforce at least 1.333 AR" option would add some value to AutoGK.
While itīs absolutely correct to stick to ARīs < 1.333 from the perspective of not loosing too much pixels of the encoded movie, it makes absolutely no sense to me in regard to having mainly 1.333 playback devices :confused:
Thus Komprezzor enforces 1.333 AR whenever a movieīs AR is smaller. You may loose a few pixels but I can live with that.
Just my 2 cents,
D$
unskinnyboy
27th August 2005, 16:18
Check 'Force ITU resize method' under 'Hidden Options' (Ctrl+F9) and retry.
Darksoul71
27th August 2005, 16:32
Thnx for the info !
..but this still leaves the question open why AutoGK doesnīt support this with default settings, or ?
D$
unskinnyboy
27th August 2005, 21:13
Well, few DVDs need ITU-R BT.601 resizing, most don't (depending on which part of the world you are from, the opposite also could be true). ITU is turned off by default because of that and that's how it should be. Please don't complain because you get an option to change it to what you want.
More info: http://forum.doom9.org/showthread.php?t=42708. For further info :search:.
Darksoul71
28th August 2005, 00:29
Wohaa, Unskinnyboy,
donīt wanna seem unpolite but I donīt care about AutoGK. My main purpose for encoding MPEG2 to "DivX" are MPEG2 captures from my WinTV PVR USB2.
AutoGK supports MPEG2 or AVI captures similar to DVD sources. As a lot of people without any knowledge might use AutoGK, I would appreciate that they find nice working values. IMHO AR < 1.333 are crap if you play back your movies on a standard PC monitor. Thus they should not need to fiddle around with any "hidden settings". I think len0x did a good job with AutoGK but he should also think about the many peoples that might use AutoGK in combination with MPEG2 or AVI captures as source for compressing to "DivX". If you would have taken a close look to my posting you would have seen that Iīve only been running AutoGK in comparrison to my own tool. No need to point out to "search".
Thanks again,
D$
Darksoul71
28th August 2005, 00:38
May be I should clarify that I had a "dicussion" with len0x quite a while before about adding a CLI to AutoGK. This would a great feature for AutoGK for all PVR / HTPC users out there squeezing their DVB / MPEG2 captures to good quality AVIs in DivX format with MP3 audio. Frankly I donīt care about AutoGK. Converting DVDīs to DivX is something I havenīt done for month since DVD medias have dropped to a price lower than 1. For MPEG2 to DivX conversion my AutoIt Script "Komprezzor" does a much better job compared to AutoGK, since I have the opportunity to fine tune any setting / filtering. That is something I canīt do with AutoGK. I just wanted to share my observations with len0x. If he doesnīt care, neither do I :D
Honestly, wef was listening a lot more.....
And once again: Donīt point out to use forum search to me.....
Cherio,
-D$
unskinnyboy
28th August 2005, 01:59
lol edgy, are we? Well, if you didn't care about AutoGK, then I don't even see why you even made this post. Rest of us are happy with the default ITU setting and knows enough about it to turn it on/off as we please/need. So if you think your script is better, just use it and be done with it. Please don't try to make AutoGK conform to what *you* think is right or wrong.
Besides and more importantly, I don't see you presenting your "Komprezzor" to the A/V community? Or did you? If not, then you have no right to say AutoGK is inferior to your tool. If you can, make it available to us so that we can decide for ourselves which is better. Else this is no argument. I can also claim that I have made a DVD-to-AVI tool using which I can make 704x384-100 kbps avis which plays flawless, but does it prove anything if I lock it up in my closet? :D
P.S: Yeah, you really *need* to search since the default ITU settings for GK/AGK have been discussed before and this thread adds nothing more to it.
Doom9
28th August 2005, 02:22
I'm not sure since I've never tried but perhaps the force input AR and/or Detect and force 4:3 AR if close to that aspect might be useful? Either way I perfectly understand the way it works.. why resize to a resolution that less closely matches the original AR (after cropping) if the result would be stretched, whereas if you pick the resolution, that, taking mod constraints into question, more accurately represents the source?
Oh, and HTPC with a 4:3 monitor? Ewww.. throw that pile of garbage out the window and get a real screen ;) 16:9 is the future, so don't hold back - the day will come when news will switch too, and that day you'll be up swearing all day long because you decided to put more money into a doomed screen size.
unskinnyboy
28th August 2005, 02:48
I'm not sure since I've never tried but perhaps the force input AR and/or Detect and force 4:3 AR if close to that aspect might be useful?
Yes, that'd work too. :)
Darksoul71
28th August 2005, 22:46
Oooooh,
Iīm surrounded by wise man.
I see all of my argumentation went down the drain <lol>
OK, seriously: I guess you both have been missing what I was talking about.
Of course I would not expect AutoGK to enforce every movie to 1.33 AR for output but those with an AR below this value.
Why ? May be wise men should think about what happens, when you play back a movie with an AR < 1.33 on a 1.33 display.
You can
a) display the complete movie with black borders left and right. Hey, great ! Just like vertical cinemascope :D
b) resize the movie to 1.33 ratio and thus get a vertically squeezed image
c) making the movie fit to the screen width and loose the vertical part of the image which is cropped away.
Greaaaat options. Note that Iīm only talking about a few rare cases but I experienced them during coding "Komprezzor".
If you do just search for the next matching target AR matching your source AR, youīll sometimes run in those issues.
At least I did for six episodes of Batman Beyond where I used AutoGK for testing.
If I would have implemented my resize stuff within AVI Synth, I would have posted it for len0x. My solution in AutoIt code looks somewhat like this:
If ($AutoCrop = 1) Then
AddLine ($cAVSFile, LoadAVSPlugIn("AutoCrop.dll"))
AddLine ($cAVSFile, "AutoCrop(0, 4, 2, 2, 2, 2, 2, 40, 10)")
$CropWidth = 0
$CropHeight = 0
AVI_Info($cAVSFile, $CropWidth, $CropHeight, $Frames)
Else
$CropWidth = $SourceWidth
$CropHeight = $SourceHeight
EndIf
$CropAR = ($CropWidth * $SourcePAR) / $CropHeight
$TargetAR = $CropAR
$TargetHeight = $TargetWidth / $TargetAR
$H_MOD_16 = ($TargetHeight - Mod($TargetHeight,16)) / 16
$4_zu_3_Height = ($TargetWidth / 1.333) - Mod(($TargetWidth / 1.333),16)
$THeight_1 = 16 * $H_MOD_16
$THeight_2 = 16 * ($H_MOD_16 + 1)
If Abs($TargetHeight - $THeight_1) > Abs($TargetHeight - $THeight_2) Then
$TargetHeight = $THeight_2
Else
$TargetHeight = $THeight_1
EndIf
If ($TargetHeight > $4_zu_3_Height) Then
$TargetHeight = $4_zu_3_Height
EndIf
$TargetAR = $TargetWidth / $TargetHeight
If ($CropAR > $TargetAR) Then
$MotionHeight = $CropHeight
$MotionWidth = Round(($CropHeight * $TargetAR) / $SourcePAR)
$Left = Round(($CropWidth - $MotionWidth) * 0.5)
$Top = 0
Else
$MotionWidth = $CropWidth
$MotionHeight = Round (($CropWidth * $SourcePAR) / $TargetAR)
$Left = 0
$Top = Round(($CropHeight - $MotionHeight) * 0.5)
EndIf
FileCopy ( $cAVSFile, $FinalAVS, 1)
If ($DenoiseMode = 1) And (Mod ($MotionWidth, 8) > 0) Then
$MotionWidth = $MotionWidth - Mod ($MotionWidth, 8)
$MotionHeight = Round (($MotionWidth * $SourcePAR) / $CropAR)
EndIf
AddLine ($FinalAVS, "Crop(" & $Left & "," & $Top & "," & $MotionWidth & "," & $MotionHeight & ")")
@unskinnyboy:
Besides and more importantly, I don't see you presenting your "Komprezzor" to the A/V community? Or did you? If not, then you have no right to say AutoGK is inferior to your tool.
No need to make a p. length comparison. Why should I release "Komprezzor" ? len0x behaved like I sissy when I asked him about commandline support for AutoGK. "...No...some evil company could use it...la.la.la"
So I started my work with "Komprezzor". Solely for the purpose of post-compression of MPEG2 captures. I wanted to do this via commandline and as fast as possible.
Also you completely missed my statement: Itīs solely "inferior" for my purpose for a simple reason: Developed by me covering exactly what I need plus I have the sources available to do quick changes.
..but this posting was not about "Komprezzor"...it was AutoGK, wasnīt it ?
OK, I agree with you: Newbs should get movies encoded with an AR below 1.33. Itīs fine ! They donīt see it anyway...... :rolleyes:
@doom9:
Oh, and HTPC with a 4:3 monitor? Ewww.. throw that pile of garbage out the window and get a real screen
Believe me, mate ! Iīll through my 4:3 80 cm TV out of the window as soon as you send me 1000 euros to buy one of those nifty 16:9 110 cm Plasma thingies my friend bought when he moved into his new house. :D
Cherio,
D$
len0x
1st September 2005, 21:39
I don't understand - especially for such cases there is a hidden option called "force 4:3 output if close to that AR" which works when 1.25 < AR < 1.4. What else do you need???
Darksoul71
1st September 2005, 22:03
@len0x:
Thnx for stopping by and reading my postings.
>>What else do you need???
Nothing ! Based on the experiences I made when coding my own tool, I just thought it would be good to have this in AutoGK enabled per default. And IMO "enforce AR to 1.33" should be always the case when target AR is < 1.33.
For the reasons I explained above....
-D$
len0x
1st September 2005, 22:12
It was on by default at some point, but I have to re-read change log to try and remember why its not now...
Darksoul71
1st September 2005, 22:31
It would be cool to have this re-enabled. Esp. with newbies in mind that might not even know what aspect ratio means :D
-D$
len0x
3rd September 2005, 01:01
From what I see when it was moved to hidden option (from always being enforced) - none of them are selected by default, so i guess I can enable a bunch of them by default now (4:3, color correction and adjust subs).
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.