Log in

View Full Version : MeGUI: colormatrix, anamorphic, dg preferences...


djloewen
27th April 2010, 22:57
I'm making the transition from Gordian Knot to MeGUI, from DivX to x264 and from mp3 to aac. I'm very picky about my workflow, I like to understand exactly what's going on every step of the way to be sure that I'm using the best possible tools/filters/settings for my own needs. As such, I suspect I'll have more questions over the next few days, but be assured that I'm searching extensively before posting!

1.)
As much as there are a number of previous posts on the subject, "Clever Anamorphic Encoding" is still a bit of a mystery to me. My intention is to never use crop, and to only use resize if I want to bring 1080 down to 480. For anamorphic sources such as DVDs, I want anamorphic. Now, I would have imagined that the very act of choosing the "Input DAR" from the drop-down list would be all that I need to do. In fact I see that if I check "Clever Anamorphic Encoding", two lines are added to the script.

Then, when i hit "save" and get to the (second) video preview window, I can check the "DAR" box to show the correct AR, but only if I previously checked the "Clever" box. Otherwise I can still preview it correctly by re-choosing the AR from the drop-down list.

Presumably then, the way anamorphic is accomplished in the final encoded video is by setting a switch in the x264 line. Whether or not I check the "Clever" box, however, I see no such addition in the preview line at the bottom of the x264 config page.

The reason I'm posting this rather than encoding various videos and examining the results is that I'm hoping for a little clarification on what's actually going on here, rather than just some black-box testing. Particularly confusing is the MeGUI documentation:

"Clever (TM) Anamorphic Encoding: Checking this box will enable anamorphic encoding.This is for 16:9 (squished )features and ensures the aspect ratio choice selection at the last step is accurate. It is usually safe to leave this off for 4:3 features."

-4:3 and 16:9 are both anamorphic from a DVD source, so if "checking this box will enable anamorphic encoding", then why should I only check it for 16:9 sources?

-"usually" safe? When is it not safe for 4:3 features?

What's going on? What, exactly, does the "Clever" option do?

2.)
Colormatrix. Again, I've found some posts, none of which ease my troubled mind. I never used it with Gordian Knot, although maybe I should have. Anyway MeGUI says "Safe to leave enabled 99% of the time" - so, again, what's the other 1%?

The colormatrix documentation suggests that it was created specifically when using the chain MPEG-2 -> DivX/XviD -> TMPGEnc/QuEnc, which I'm obviously not doing. The bottom line is that I want the colours to be exactly accurate, but it's not clear to me what that entails. A little guidance would be much appreciated :) If it's smart enough to pass-through anything that doesn't need adjusting then great, and if all DVD sources need adjustinig then that's good to know, but I'm sure you can understand my nervousness and just sticking a filter in the chain without knowing what's going on! (btw I also encode from Blu-Ray sources - is it not used for those?)

3.)
Using the automated "DG creator" process, I am never asked whether I want to "honor pulldown flags" or to "force film". Is this automatically detected? If so, at what "FILM %" point does it switch from one to the other? Also as a lesser issue, do I have the ability to change the iDCT algorithm in the automated process? (Presumably the "DG creator" is just sending a command-line to DG - is there a way to see or alter that command-line?) And yes, I'm aware that I can just run DG the old-fashioned way :)

Thanks in advance!

Inspector.Gadget
27th April 2010, 23:10
1) There's no reason not to crop black bars for PC playback. For hardware device playback, you may be limited in acceptable resolutions. For Blu-ray disc creation, you certainly are. The caveat to the first sentence is that you should shoot for mod16 when possible: though x264 will pad out other resolutions internally, some decoders may barf. Try your playback targets and see.

Whether or not I check the "Clever" box, however, I see no such addition in the preview line at the bottom of the x264 config page.

It's passed internally through MeGUI.

-4:3 and 16:9 are both anamorphic from a DVD source, so if "checking this box will enable anamorphic encoding", then why should I only check it for 16:9 sources?


Whoever wrote that is wrong. Ignore it.

2) You don't need Colormatrix unless your DVD was incorrectly encoded with Rec.709 flagged as Rec.601.

djloewen
27th April 2010, 23:21
1) There's no reason not to crop black bars for PC playback.

Okay that was just wrong on my part. I meant to say that I DO use crop to remove black bars, but that I never use resize unless downsizing from 1080p.

So, if I check the "anamorphic" box then I get anamorphic video, and if I don't check it then all DVDs will keep their 1.5:1 aspect ratio (1:1 pixel), no matter what the DAR drop-box says? Using the word "Clever" made me think that it did something special, as oppsed to the "Non-clever" method of simply using the drop-down DAR list.

And so, if I never use colormatrix then the end result is that almost all videos will be correct, and there may be the occasional poorly-mastered DVD that shows a very slight incorrect colour/brightness? I could live with that, it would be preferable for me than having a filter just stuck in there that I'm not familiar with :).

Inspector.Gadget
27th April 2010, 23:50
Yes, you are correct on all points. The only thing to bear in mind about the "Clever" part is that MeGUI automatically compensates by adjusting the DAR for cropping and resizing. If you, like me, think in terms of pixel aspect ratio, then there's no need to worry about it.

BTW, MeGUI defaults to ITU display sizes for DVD content, so it will scale widescreen NTSC 720x480 DVDs to ~875:480. Not all DVDs are mastered according to ITU standards, so you may wish to select the plain "16:9" option to get 853:480 display. I don't notice much of a difference in most cases, so I just go by whichever leaves a circular object in the film more circular. With a DVD with 8px black bars left and right, I assume the remaining picture is the true 853:480 (less any black bars top and bottom, which get a straight crop and don't affect PAR).

djloewen
28th April 2010, 03:13
So in reference to my third question, I found an option that indicates that if it's (by default) Film over 95% then it does "forced film". But, I loaded a DVD image and processed it, and looked at the resulting log file:

Frame Rate: 29.970030 fps
Video Type: Film 99.95%

Is the program somehow able to activate the "force film" option after the d2v file has been generated? What's going on here?

Inspector.Gadget
28th April 2010, 03:41
I'm not sure how that's handled. Forcing film in DGIndex itself while creating a D2V file with DGIndex and then loading the D2V into the AVS Script Creator will surely work, though.

Zathor
28th April 2010, 22:22
Is the program somehow able to activate the "force film" option after the d2v file has been generated?

If the film value in the created d2v file is above the value specified in the settings the d2v will be altered (Field_Operation=1 and Frame_Rate=23976 or Frame_Rate=23976 (24000/1001)). There should be some entries in the log:
"Film percentage" and then "Applied force film". Please post your log.

djloewen
29th April 2010, 05:55
Actually you're right, it's behaving quite well. I didn't know the D2V numbers could be changed after indexing. Cool :)