cablemonkey
31st January 2008, 06:25
I recently began backing up my DVD collection due to the acquisition of a NMT hardware media player, and am currently working on using MeGUI to do x264 conversions. After doing my research, i've just about got quality to where i want it, but i'd been struggling with getting anamorphic encodes to come out right. I think i finally worked out the answer last night, and my test encodes finally have the same AR on my SD TV as a straight DVD rip, but i'm still a little puzzled as i only got it to work by manually overiding the "hints" produced by MeGUIs "clever anamorphic" option.
I'm starting with 2.35:1 (really 2.39:1) 16:9 anamorphic encoded DVDs. I'm checking the anamorphic option and overcropping to 720x352 (mod 16), but the AR never seemed to come out right, always maybe 10% off. To test, i'd flip between watching the actual DVD on my SD tv and the x264 encode (using some tape for marking the position of on screen referrence points). I know that because of the overcrop i'd lose a few lines and have slightly larger letterbxoing, but the objects in the frame should have the same position.
Reading some great posts here (and elsewhere), i worked out the following:
SAR * PAR = DAR, so:
720/480 * x/y = 16/9 ie
3/2 * x/y = 16/9 and so
x/y = 16/9 * 2/3 = 32/27
so PAR should be 32/27 on all 16:9 anamorphic NTSC DVDs
So long as i only crop and don't resize, PAR should be constant, so flipping the equation around to get the correct DAR with my newly cropped video i get:
720/352 * 32/27 = x/y ie
45/22 * 32/27 = 1440/594 = 80/33
So my end DAR for a 720/352 cropped 16:9 DVD should be 80/33. If i go back and edit the avisynth script produced by MeGUI and update the script to show:
MeGUI_darx = 80
MeGUI_dary = 33
and then encode, the AR turns out (visually) perfect to my eyes, aided with visual markers (though avinaptic does show minor differences, which i'll mention coming up). This also seems to say that so long as my source is a 2.35:1 anamorphic DVD, i'll generally always be overcropping to 720/352 and my DAR will always be 80/33, which will make things easier.
What i don't understand is:
1) Why when i use anamorphic and overcrop for mod-16 in the script creator, is megui setting the DAR hints as 3107/1250 and not 80/33?
2) even with MeGUI using my revised dar hints, it sets the DAR in the end mkv to 2133/880. Since 80/33 = 2.4242... and 2133/880 = 2.42386..., its close enough that i'm not noticing a difference. But why the change?
Is there something obvious i'm missing?
I'm starting with 2.35:1 (really 2.39:1) 16:9 anamorphic encoded DVDs. I'm checking the anamorphic option and overcropping to 720x352 (mod 16), but the AR never seemed to come out right, always maybe 10% off. To test, i'd flip between watching the actual DVD on my SD tv and the x264 encode (using some tape for marking the position of on screen referrence points). I know that because of the overcrop i'd lose a few lines and have slightly larger letterbxoing, but the objects in the frame should have the same position.
Reading some great posts here (and elsewhere), i worked out the following:
SAR * PAR = DAR, so:
720/480 * x/y = 16/9 ie
3/2 * x/y = 16/9 and so
x/y = 16/9 * 2/3 = 32/27
so PAR should be 32/27 on all 16:9 anamorphic NTSC DVDs
So long as i only crop and don't resize, PAR should be constant, so flipping the equation around to get the correct DAR with my newly cropped video i get:
720/352 * 32/27 = x/y ie
45/22 * 32/27 = 1440/594 = 80/33
So my end DAR for a 720/352 cropped 16:9 DVD should be 80/33. If i go back and edit the avisynth script produced by MeGUI and update the script to show:
MeGUI_darx = 80
MeGUI_dary = 33
and then encode, the AR turns out (visually) perfect to my eyes, aided with visual markers (though avinaptic does show minor differences, which i'll mention coming up). This also seems to say that so long as my source is a 2.35:1 anamorphic DVD, i'll generally always be overcropping to 720/352 and my DAR will always be 80/33, which will make things easier.
What i don't understand is:
1) Why when i use anamorphic and overcrop for mod-16 in the script creator, is megui setting the DAR hints as 3107/1250 and not 80/33?
2) even with MeGUI using my revised dar hints, it sets the DAR in the end mkv to 2133/880. Since 80/33 = 2.4242... and 2133/880 = 2.42386..., its close enough that i'm not noticing a difference. But why the change?
Is there something obvious i'm missing?