View Full Version : credits and movie in different format...cannot join
X-Nemesis
5th February 2003, 21:28
Here's my script for the movie:
LoadPlugin("g:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
#LoadPlugin("g:\PROGRA~1\AviSynth2\plugins\FluxSmooth-2.5.dll")
mpeg2source("G:\Movie Rips\FOTR Disc2\FOTR cd2.d2v")
trim(0,136673)
crop(0,58,718,360)
#fluxsmooth(15,10)
ConvertToYUY2()
mergechroma(blur(1.3))
LanczosResize(704,288)
and for the credits:
LoadPlugin("g:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
mpeg2source("G:\Movie Rips\FOTR Disc2\FOTR cd2.d2v")
trim(136674,0)
crop(0,54,718,366)
BicubicResize(704,288,0.333,0.333)
Does the ConverttoYUY2 cause a problem here? Or is it the diff in the crop values...366 and 360?
thanks.
:confused:
neuron2
5th February 2003, 22:13
Why not join them in Avisynth itself?
X-Nemesis
5th February 2003, 22:52
what I do is use gnot to get the settings...encoding movie and credits seperately...but I save the avs file and edit the movie for lanczosresize instead of sharpbicubic. Not really sure what you mean by joining in avisynth? Then I load the project in gnot again and let it run the encode. Does changing the movie to lanczosresize mean that the end result will not be able to be joined to the credits which goes with bicubic???
Suzahara
5th February 2003, 23:13
Originally posted by X-Nemesis
what I do is use gnot to get the settings...encoding movie and credits seperately...but I save the avs file and edit the movie for lanczosresize instead of sharpbicubic. Not really sure what you mean by joining in avisynth? Then I load the project in gnot again and let it run the encode. Does changing the movie to lanczosresize mean that the end result will not be able to be joined to the credits which goes with bicubic???
Nope, the way you resize has nothing at all to do with it. Perhaps you can explain how you're compressing them? Format, bitrate, etc? And can you confirm that both outputs are YUY2 since that's the colorspace you're using for the movie?
primitive
5th February 2003, 23:46
You can join these together directly in Avisynth. Change your script to look like this:
LoadPlugin("g:\PROGRA~1\GORDIA~1\mpeg2dec3.dll")
video = mpeg2source("G:\Movie Rips\FOTR Disc2\FOTR cd2.d2v")
#split movie into two parts: movie and credits.
movie = video.Trim(0,136673)
credits = video.Trim(136674,0)
#process the movie
movie = movie.Crop(0,58,718,360)
movie = movie.ConvertToYUY2()
movie = movie.mergechroma(blur(1.3))
movie = movie.LanczosResize(704,288)
#process the credits
#you're going to have to crop to the same resolution.
credits = credits.Crop(0,58,718,360)
credits = credits.BicubicResize(704,288,0.333,0.333)
credits = credits.ConvertToYUY2()
#now put everything together again.
#both movie and credits have to have the same colorspace and resolution
video_processed = movie + credits
return video_processed
#end of script
---
Avisynth is a nonlinear render core, so you can pull **** like this. The work that you originally did in two separate scripts you can have Avisynth do in one if you know what you're doing.
Personally, all I use GKnot for anymore is as a bitrate calculator and its excellent method for selecting cropping parameters and output resolution. Once you start making your own custom scripts, you'll find yourself growing out of GKnot, too.
(primitive)
Suzahara
6th February 2003, 01:05
Well, maybe he wants to save some size on the credits and use those bits for his main video. Although you can set where the credits are in xvid so you can save bits in there, although last time I looked, nothing like this in divx.
X-Nemesis
6th February 2003, 04:22
so this means that if the credits are encoded yuv12 and the movie yuy2 then they cannot be joined?
Suzahara
6th February 2003, 04:24
Yep, afraid not :(
But I don't understand the converttoyuy2 there anyways if you're using avisynth 2.5 and your input is yv12. You shouldn't need that as no filters in your avs need only yuy2. So you should be able to just take that out.
X-Nemesis
6th February 2003, 06:00
Thanks Suzahara...don't know why I was thinking that...:D
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.