Log in

View Full Version : MPEG-2 to DivX


actionman133
30th December 2005, 15:42
Hey,

I'm looking for suggestions to attain the most pure, highest quality conversion from DVD MPEG-2 to DivX 6.

So far, a template script with filled in values reads like (Using anamorphic, progressive PAL sources):


MPEG2Source ("dgindex.d2v", idct = 5, cpu = 0)
ColorMatrix ("Rec.709->Rec.601", mmx = False, hints = False, d2v = ("dgindex.d2v")

# MPEG2Source should be using IEEE-1180 reference for precision
# ColorMatrix should read coefficients from d2v file

AudioDub (DirectShowSource ("audio - DELAY -16ms.ac3")).DelayAudio (-0.016)

ConvertToYUY2 ()
Lanczos4Resize (1024, 426, 0, 75, 720, 426)
ConvertToYV12 ()

AssumeFPS (24, True)
SSRC (48000, False)


This is basically as complex as I expect it to get (maybe occasionally I might ConvertToRGB ()... do I need to specify the matrix value if I do?) - I wouldn't convert to YUY2 unless the cropping required it. Since I deal with high quality sources, I don't plan to use denoisers of any kind.

Is there anything here that reduces accuracy of the MPEG-2 data? I ask because I thought I had it perfect, then I found out about ColorMatrix. About ColorMatrix, the help file is a little confusing. Does it say that using MMX is slightly less accurate than not using it?

Is there anything here that's even slightly incorrect?

PS. Another note which is important - I noticed FadeIO () only fades to 16, not to 0. Since my destination is DivX on computer, is there a way I can force it to fade to true black? I know I could write a function using Animate (), but I'm hoping there's a shorthand available...

Thanks

sh0dan
30th December 2005, 15:50
DivX/XviD assumes Rec 601, thus black must be Y=16, as does all internal functions, unless specified otherwise.

:search:
This has been discussed often.

actionman133
30th December 2005, 16:20
Sorry, Shodan. Lesson learned.