- Post
- #333408
- Topic
- GOUT image stabilization - Released
- Link
- https://originaltrilogy.com/post/id/333408/action/topic#333408
- Time
I have the same problem with CCE too, with HCEnc or TMPGEnc I have no problems.
I have the same problem with CCE too, with HCEnc or TMPGEnc I have no problems.
Try HCEnc 0.23. Its freeware.
G-force,
here is the original, unprocessed chapter 5 of the GOUT.
I could send more, if required, just let me know.
Thank you, g-force.
I'm at work at the moment and will post the clip as soon as I can.
You can use this script for both NTSC and PAL.
In the first few lines of the script you can read
PAL = false # <-----Set to false for NTSC, true for PAL
If you want to do a NTSC-encode, change nothing there, if you want to do a PAL-encode, change the "false" into "true".
I encoded 2 chapters and they look perfect, exept the left side of the picture. When you look frame by frame at the scene it looks, like the things that come into the picture would "ghost" into the scene from the left side to the center and disappear then.
Here I posted a short clip, because I don't know how to describe it exactly.
I tried to use other denoisers with your script the last few days, but avisynth doesn't seem to be my friend; I had no luck.
Thank you, g-force.
The encoding is running while I'm writing.
I did download this from rapidshare as links are posted on fanedit.org.
When I burn this, I get this error:
"VTS_14_0.IFO is missing".
So, can someone please upload this file (should be a small one) from his Deleted Magic Video_TS folder? That would fix the problem.
At the moment the mainmovie plays about 7 minutes because this file is missing.
Thanks.
Puggo - Jar Jar's Yoda said:In the meantime, any suggestions for free tool(s) for converting .avi to mpeg4?
Here are some free tools:
http://www.videohelp.com/tools/Leimings_x264_GUI
http://www.videohelp.com/tools/RipBot264
http://www.videohelp.com/tools/MeGUI
I don't know which one would be the best, I haven't tried them yet.
I have a new theory as to what is happening. I think you may have a newer version of MVTools than I have.
I used mvtools 1.9.2 you used mvtools 1.9.3. I've tried both and learned that it makes no difference.
I started to encode the scene I posted with screenshots further again, to be sure, I have not used a wrong plugin.
So I downloaded the plugins as you postet for download earlier here. The result was the same.
Could you upload your MVTools, that you are using???
g-force,
in your current script you write
"Function Contra(clip denoised, clip orig)
{# re-write of Didée's contra sharpening routine from TemporalDegrain.avs"
So do I need the hqdn3d.dll-plugin as required filter for this as described here?
g-force said:OSJ,
I have taken a look at those frames, and although they are showing some artifacts, they aren't as bad as the pics you are showing. There must be some differences between how the PAL reacts to the script compared to the NTSC version. So I have updated the script yet again, and now am not getting any artifacts on those frames. Could you check the new script (on page one) with your PAL version and report back your findings? As a side benefit, there is now even more noise reduction!
(fingers crossed)
-G
I've made some encodings with script 3.06, the artifacts stay the same like they were with script 3.05. I have no idea. Maybe I will do the final encodings with your script 2.03 or the actual one, although there are some artifacts...
Ok, I got a new DVD-ROM and start new encodings. I'll post the results later.
OH, SHIT! I can't rip the movie on my HDD. My PC is quite new and the DVD ROM is already damaged. According to the servicehotline I will get a new DVD drive in about 5 days,so I can't do a testencoding at the moment. But I test it as soon as I can.
I could smash this PC against the wall!!!!!!
Thank you, this is very kind from you.
I will post the result, starting to work with the script at the moment.
Oh, thank you very much!!!
g-force,
I've done some testencodings and I'm getting some errors. Here are some screenshots:
Here I did do some markings arround the area I mean:
Here is also a short sample-clip:
http://rapidshare.com/files/148657334/1.m2v.html
Did I use a wrong avisynth-plugins again? I'm actually using the plugins I used the last months for the encodings.
Because I prefer selectable subtitles, I did change your script a littlebit:
#######################################################################################
############################ GOUT Filter By G-force V.3.05 ############################
#######################################################################################
########## setup stage
sw_frame_no = 689 # <-----Enter number of first frame of "Star Wars" logo
PAL = true # <-----Set to false for NTSC, true for PAL
Mpeg2Source("C:\Users\d\Videos\demuxed\ANH.d2v") # <-----Set path
########## cut off some of the black bars for faster processing (but keep mod 16)
PAL==false ? Crop(0,96,0,-96,align=true) : Crop(0,120,0,-120,align=true)
########## set black level/gamma, saturation/hue
Levels(10,1.13,255,0,255)
Tweak(sat=1.08,hue=-4)
########## global motion stabilization stage
temp = last.TemporalSoften(7,255,255,25,2)
Interleave(temp.Repair(last.TemporalSoften(1,255,255,25,2)),last)
DePan(last,data=DePanEstimate(last,trust=0,dxmax=1,dymax=0),offset=-1)
SelectEvery(2,0)
########## local motion stabilization/degrain stage
source = last
sigma = 3
filt = source.fft3dfilter(sigma=sigma,sigma2=sigma*.75,sigma3=sigma*.5,sigma4=sigma*.25,sharpen=.3)
temp = temp.Repair(filt,9)
fw_vec2 = temp.MVAnalyse(isb=false,delta=2,pel=2,sharp=1,overlap=4,plevel=0,idx=1)
fw_vec1 = temp.MVAnalyse(isb=false,delta=1,pel=2,sharp=1,overlap=4,plevel=0,idx=1)
bw_vec1 = temp.MVAnalyse(isb=true, delta=1,pel=2,sharp=1,overlap=4,plevel=0,idx=1)
bw_vec2 = temp.MVAnalyse(isb=true, delta=2,pel=2,sharp=1,overlap=4,plevel=0,idx=1)
fw2 = source.MVCompensate(fw_vec2,idx=2,thSAD=375)#previous previous moved forward
fw1 = source.MVCompensate(fw_vec1,idx=2,thSAD=475)#previous frame moved forward
bw1 = source.MVCompensate(bw_vec1,idx=2,thSAD=425)#next frame moved back
bw2 = source.MVCompensate(bw_vec2,idx=2,thSAD=325)#next next moved back
Median2(filt.Repair(source,9),fw2,fw1,bw1,bw2)
Median1(source,last,filt)
fw2_2 = last.MVCompensate(fw_vec2,idx=3,thSAD=360)
fw1_2 = last.MVCompensate(fw_vec1,idx=3,thSAD=460)
bw1_2 = last.MVCompensate(bw_vec1,idx=3,thSAD=410)
bw2_2 = last.MVCompensate(bw_vec2,idx=3,thSAD=310)
Average2(last,fw2_2,fw1_2,bw1_2,bw2_2)
########## temporal min/max sharpening
ContraMC(last,source,bw1,fw1,2)
########## restore stars stage
prest = last
prest.MT_Binarize(threshold=20,upper=true).MT_Expand()
MT_Merge(prest,source,last,chroma="copy first")
prest.Trim(0,sw_frame_no-1)++last.Trim(sw_frame_no,0)
########## anti-aliasing
NNEDI(dh=true,field=1)
########## resize to 16x9 AR, remove sides, add borders
PAL==false ? Spline16Resize(720,384).Crop(8,8,-4,-12,align=true).AddBorders(6,58,6,58)
\ : Spline16Resize(720,448).Crop(4,6,-4,-8, align=true).AddBorders(4,70,4,72)
#######################################################################################
Function ContraMC(clip denoised, clip orig, clip bw1, clip fw1, int "overshoot")
{#
overshoot = default(overshoot,0)
pmax = orig.MT_Logic(bw1,"max").MT_Logic(fw1,"max")
pmin = orig.MT_Logic(bw1,"min").MT_Logic(fw1,"min")
Interleave(denoised,denoised.RemoveGrain(12,-1),denoised.RemoveGrain(4,-1))
Clense(reduceflicker=false,grey=true)
SelectEvery(3,1)
MT_MakeDiff(last,last.RemoveGrain(12,-1))
MT_LUTxy(denoised,last,"y 128 - 1.5 * x +",chroma="copy first")
MT_Clamp(last,pmax,pmin,overshoot,overshoot,chroma="copy first")
Return(last)
}
#######################################################################################
Function Average2(clip input_1, clip input_2, clip input_3, clip input_4, clip input_5, string "chroma")
{# average of 5 clips from Helpers.avs by G-force.
chroma = default(chroma,"process") #default is "process". Alternates: "copy first" or "copy second"
Interleave(input_1,input_2,input_3,input_4,input_5)
TemporalSoften(2,255,255,255,2)
SelectEvery(5,2)
chroma == "copy first" ? last.MergeChroma(input_1) : chroma == "copy second" ? last.MergeChroma(input_2) : last
Return(last)
}
#######################################################################################
Function Median1(clip input_1, clip input_2, clip input_3, string "chroma")
{# median of 3 clips from Helpers.avs by G-force
chroma = default(chroma,"process") #default is "process". Alternates: "copy first" or "copy second"
Interleave(input_1,input_2,input_3)
chroma == "process" ? Clense(reduceflicker=false) : Clense(reduceflicker=false,grey=true)
SelectEvery(3,1)
chroma == "copy first" ? last.MergeChroma(input_1) : chroma == "copy second" ? last.MergeChroma(input_2) : last
Return(last)
}
#######################################################################################
Function Median2(clip input_1, clip input_2, clip input_3, clip input_4, clip input_5, string "chroma")
{# median of 5 clips from Helpers.avs by G-force
chroma = default(chroma,"process") #default is "process". Alternates: "copy first" or "copy second"
#MEDIAN(i1,i3,i5)
Interleave(input_1,input_3,input_5)
chroma == "process" ? Clense(reduceflicker=false) : Clense(reduceflicker=false,grey=true)
m1 = selectevery(3,1)
#MAX(MIN(i1,i3,i5),i2)
m2 = input_1.MT_Logic(input_3,"min",chroma=chroma).MT_Logic(input_5,"min",chroma=chroma).MT_Logic(input_2,"max",chroma=chroma)
#MIN(MAX(i1,i3,i5),i4)
m3 = input_1.MT_Logic(input_3,"max",chroma=chroma).MT_Logic(input_5,"max",chroma=chroma).MT_Logic(input_4,"min",chroma=chroma)
Interleave(m1,m2,m3)
chroma == "process" ? Clense(reduceflicker=false) : Clense(reduceflicker=false,grey=true)
SelectEvery(3,1)
#Interleave(input_1,input_2,input_3,input_4,input_5)
#MedianBlurT(0,0,0,2)
#selectevery(5,2)
chroma == "copy first" ? last.MergeChroma(input_1) : chroma == "copy second" ? last.MergeChroma(input_2) : last
Return(last)
}
Maybe the error is caused by changing it this way? Any ideas? To me it seems, that the error is only at scene-changes, but I'm not sure, if it has something to do with it...
I have just encoded chapter 15 and I'm really happy with the result. I will do another encoding with chapter 19. Chapter 19 and chapter 5 was always my reference-chapter for the testencodings.
G-force, I like the idea, that everybody can do his own watchable DVD with your script maybe with custom DVD menu and the audiotracks one prefers. So this is a real big thing for me.
Ok, what I found important to post here (it can be read in the first post of mverta here):
http://www.starwarslegacy.com/forums/showthread.php?t=4
Quote (mverta):
"There is an incredible amount of grain in the transfers, which is not part of the masters they come from (I've seen them). To be honest, it's not so much grain, as it looks like dirt - the film stocks used for those movies are not that grainy. In any case, this, and a ton of other evidence, has led people like me to strongly suspect they've been deliberately grained up, or in other ways made sure to look like an inferior release next to the 2004's."
With the transfers he means the GOUT, just read the post linked above.
Here is one of my encodings with script 2.03.
I encoded all movies and after I did do some testencodings with the actual script I know, I have to encode them again.
Often couldn't imagine there was more tweaking possible in the script, but g-force told me better. I tried to write an avisynth script for the GOUT before g-force started this treat, but I was not very successful.
Head over to
http://www.starwarslegacy.com/forums/showthread.php?t=4
Read the first posting of mverta!!!
Moth3r said:Rapidshare links may still be active, for those that are into that sort of thing. Try searching for "KCCI" at fileshunt.com.
Thanks, Moth3r, that helped.
g-force,
would you say that the script version 2.03 is the final script or are there some more improvements since this script?
You can remux the videostream and the wanted audiosteams with Rejig (but make sure that you enable "Copy subtitle colours" and browse therefore for the original ifo (make sure the original DVD remains on your PC in a Video-TS-folder) of the original DVD. Otherwise the subtitles may have a green colour.
You could also remux the streams with Muxman.
When finished, you should have the original (unprocessed) DVD in a Video-TS folder and the new muxed Video in another Video-TS-folder.
Then replace the files of the new Video-TS folder into the unprocessed (original-DVD) Video-TS folder as described in this guide.
You can start with step 6 of the guide. You also need Vobblanker for replacing, its freeware.