Another sexy trick to get a linear same quality according to all different streams which have to match as a whole the 4.3 GB.
Code:
a = avisource(........ part 1) or Mpeg2source(..... part1
b = avisource(........ part 2)
c = avisource(........ part 3)
d = avisource(........ part 4) .... and so on
addblack(300)
function addblack (clip c, int "lof") {
lof= default(lof, 50)
wi=width(c)
hi=height(c)
fr=framerate(c)
ty= (IsRGB24(c)==true) ? "RGB24" : (IsRGB32(c)==true) ? "RGB32" : (IsYUY2(c)==true) ? "YUY2" : "YV12"
ch= (AudioChannels(c)==2) ? true : false
ar = Audiorate(c)
z=BlankClip( Pixel_Type=ty,audio_rate=ar, stereo=ch, length=lof, width=wi, height=hi, fps=fr, color=$000000)
Return a+z+b+z+c+z+d ..... and so on
}
You have to change the parameters in the function to their specific stream parts so as you see it here its not set right!
This function bases on a "addblack()" avsi I created to add black frames adaptive to the source on captures ...
http://www.kvcd.net/forum/viewtopic.php?t=7645
So the logic would be .... that this implementated function adds for example 300 black frames between every stream when encoding as a WHOLE! So after encoding you could "cut" a ready muxed 4.3GB whole stream (after whole prediction and encoding) at its needed points to receive separated streams again which you can author as tracks using an DVD authoring Appl! And they will match!
As I said, the function above in its parameters is still not correct, it's just a thought based on my addblack() script .... but the logic should work in this case to get a most effective output ?!
You understand what I mean Dialhot? I think we should focus this .... and rewrite the function based on multiple import streams in the avs script.
Im here in the office and so I can't do my try and errors to approach to correct script settings
But I think maybe you don't need these 300 Frames between the streams as TmpgEnc's cutting engine supports frame by frame approach to the needed cut points, so the script above could have its logic but without the BlankClip() command!
And if it still doesn't match the whole DVD-5 Media size (maybe overflow of bad prediction)... this logic lets you also nice reduce the size by using the M2VRequantizer on the WHOLE stream so even by this ... the quality will be linear through all streams and no seperate "transformation" is needed = Nice!
So you predict all the movies as a whole. Muxing them and do the "cut" afterwards in TmpgEnc .... BUT!: How does TmpgEnc behave when cutting muxed AC3s??? Well we should try and if it doesn't support AC3 cutting well, we have to look out for another method to exact-frame split the whole-stream afterwards incl. AC3 supporting.
Or you do perform the BlankClip() command by adding one "lightning green" frame to directly see the cut point ... so if you split the m2v afterwards without included AC3s ... after this the sync and size of the AC3 should match when doing the following muxing job in a DVD authoring appl... hmmmm
Tonight I'll have to pack my stuff for a Weekend trip to Prague which starts tomorrow at 4.45 h in the morning
, so I'll not have the time tonight to check this out
But maybe you could do DialHot ....