logo Sign In

althor1138

User Group
Members
Join date
12-Feb-2011
Last activity
20-Aug-2023
Posts
637

Post History

Post
#634588
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

EDIT: I haven't even started ROTJ yet btw.

I used several avs files for star wars because it was so many changes and lines but I used one for ESB so here it is:

#setmemorymax(2000)
#setmtmode(5,0)
side1raw=AVISource("E:\STAR WARS\Laserdisc\JSC\ESB\Theater750HD\side1.avi")
s1p1=side1raw.assumetff().doubleweave().pulldown(0,2).trim(704,0).trim(0,15585)
s1p22=side1raw.separatefields().trim(40722,0).weave().assumetff().doubleweave().pulldown(2,4).trim(0,15145)
s1p21=side1raw.separatefields().trim(40722,0).weave().assumetff().doubleweave().pulldown(2,4).trim(15146,15146).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s1p2=s1p22 ++ s1p21
s1p3=side1raw.separatefields().trim(78590,0).weave().assumetff().doubleweave().pulldown(2,4).trim(0,1439)
s1=s1p1 ++ s1p2 ++ s1p3
side2raw=AVISource("E:\STAR WARS\Laserdisc\JSC\ESB\Theater750HD\side2.avi")
s2p11=side2raw.separatefields().trim(804,0).weave().assumetff().doubleweave().pulldown(1,4).trim(0,14322)
s2p12=side2raw.separatefields().trim(804,0).weave().assumetff().doubleweave().pulldown(1,4).trim(14323,14323).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s2p1= s2p11 ++ s2p12
s2p2=side2raw.separatefields().trim(36614,0).weave().assumetff().doubleweave().pulldown(0,3).trim(0,13038)
s2p3=side2raw.separatefields().trim(69212,0).weave().assumetff().doubleweave().pulldown(2,4).trim(0,13195)
s2=s2p1 ++ s2p2 ++ s2p3
side3raw=AVISource("E:\STAR WARS\Laserdisc\JSC\ESB\Theater750HD\side3.avi")
s3p1=side3raw.separatefields().trim(824,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,2277)
s3p21=side3raw.separatefields().trim(6518,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,31049)
s3p22=side3raw.separatefields().trim(6518,0).weave().assumetff().doubleweave().pulldown(0,2).trim(31050,31050).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s3p2=s3p21 ++ s3p22
s3=s3p1 ++ s3p2
side4raw=AVISource("E:\STAR WARS\Laserdisc\JSC\ESB\Theater750HD\side4.avi")
s4p11=side4raw.separatefields().trim(726,0).weave().assumetff().doubleweave().pulldown(1,4).trim(0,2)
s4p12=side4raw.separatefields().trim(726,0).weave().assumetff().doubleweave().pulldown(1,4).trim(3,3).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s4p13=side4raw.separatefields().trim(738,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,15552)
s4p1=s4p11 ++ s4p12 ++ s4p13
s4p21=side4raw.separatefields().trim(39620,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,13001)
s4p22=side4raw.separatefields().trim(39620,0).weave().assumetff().doubleweave().pulldown(0,2).trim(13002,13002).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s4p2=s4p21 ++ s4p22
s4p3=side4raw.separatefields().trim(72126,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,8296)
s4=s4p1 ++ s4p2 ++ s4p3
side5raw=AVISource("E:\STAR WARS\Laserdisc\JSC\ESB\Theater750HD\side5.avi")
s5p11=side5raw.separatefields().trim(696,0).weave().assumetff().doubleweave().pulldown(1,3).trim(0,2)
s5p12=side5raw.separatefields().trim(708,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,7160)
s5p1=s5p11 ++ s5p12
s5p21=side5raw.separatefields().trim(18610,0).weave().assumetff().doubleweave().pulldown(0,2).trim(0,15034)
s5p22=side5raw.separatefields().trim(18610,0).weave().assumetff().doubleweave().pulldown(0,2).trim(15035,15035).separatefields().trim(0,-1).nnedi2(dh=true).assumefps("ntsc_film")
s5p2=s5p21 ++ s5p22
s5p3=side5raw.separatefields().trim(56198,0).weave().assumetff().doubleweave().pulldown(0,3).trim(0,14350)
s5=s5p1 ++ s5p2 ++ s5p3

dw=s5p3.assumetff().doubleweave()
a = dw.Pulldown(0, 2).Subtitle("0, 2")
b = dw.Pulldown(1, 3).Subtitle("1, 3")
c = dw.Pulldown(2, 4).Subtitle("2, 4")
d = dw.Pulldown(0 ,3).Subtitle("0 ,3")
e = dw.Pulldown(1, 4).Subtitle("1, 4")
show=ShowFiveVersions(a, b, c, d, e)
finalvid=s1 ++ s2 ++ s3 ++ s4 ++ s5

return(finalvid)

Post
#634556
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Darth Mallwalker said:

Well I'm sorry to be 'that guy' again

 Yeah I'd rather have known before I release it again.  Thanks for the help! I was about ready to fix everything and start encoding but I guess it can wait a few more days lol. 

 

I was using selectevery and manually throwing out the frames but moth3r showed me this:

dw=avisource().assumetff().doubleweave()
a = dw.Pulldown(0, 2).Subtitle("0, 2")
b = dw.Pulldown(1, 3).Subtitle("1, 3")
c = dw.Pulldown(2, 4).Subtitle("2, 4")
d = dw.Pulldown(0 ,3).Subtitle("0 ,3")
e = dw.Pulldown(1, 4).Subtitle("1, 4")
show=ShowFiveVersions(a, b, c, d, e)

return(show)

I found it to be quicker and easier to spot which pulldown to use with the showfiveversions filter.  I imagine the same thing could be implemented with the selectevery method also.  Are there any benefits or drawbacks to using either method?

EDIT: I'm really hoping you guys don't find so much wrong with ESB or ROTJ lol.

Post
#633848
Topic
Help: Looking for... a good transfer of the first issue Pan And Scan Laserdisc for Star Wars
Time

I captured my '82 P&S Laserdisc last night. There is a problem with side 1.  There is noise in the audio and the video is a little bit noisy as well.  Side 2 seems pretty much ok.  I can encode this and release it if anybody is interested.  I'm not going to spend the time IVTC'ing this because as Mallwalker said it is quite maddening. I've managed to get rid of the interlacing at least with the tfm filter. With that being said, I found it quite watchable as long as you don't mind the noisy audio. 

Post
#633714
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

I'm going to wait a little bit before releasing this again because it seems we are finding little things to fix still.  When it seems that things are in order I'll put it up again.  Here is a little clip.  It is interleaved with 1 clip being the raw capture and the other being the adjusted clip I plan on using for the 720p version.  I've just adjusted the levels and tried to not crush or blow out any information.  I have applied a halo reducer which I think I'm going to use.  I wouldn't say it fixes the right-edge halo problem but I think it makes it better. 

Post
#632712
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Yes, I'd definitely be interested in a list of frames to check.  The frames you are giving me match up exactly with my numbers. Is the Red Leader glitch only in my release?  It's the strangest one because it's only like half of the frame that is affected. 

I'll have to go back through the script to make it legible.  I've been cannibalizing it with all of these added fixes and I have a separate script for each side that feeds into one "master" avs file so I can kind of keep my sanity when sorting things out.  I counted the nnedi()'ed frames in my script and have now come up to 14 including the 2 from red leader.

Post
#632438
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Thanks for the input and thanks for putting up the pics with the frame numbers. It will make it much easier to find and fix! I'll make sure and fix those tonight. You must have very keen eyes to find this kind of stuff. Is it possible to interpolate the last or first frame in a scene btw?

EDIT: ok they are fixed.  Could you also check in between frames 155980-155990 and let me know what you think that is?

Post
#632296
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

g-force said:

Alright, I'm looking at the SW sample, and I don't see the crazy amount of temporal artifacts that the 720 mkv had, but it also looks less detailed than I remember the 480 mkv being (sorry, at work and can't compare). Anyway, the fine (good) grain seems to be gone and the big (some may argue ugly) grain seems to still be there. So, why bother? 

 

I've tried to take into account what you said about the detail and the grain.  When you have time would you look at this?  If you don't think it's an improvement I think I will concede with you and just release a 480p anamorphic version with only adjusted levels and saturation alongside the 480p raw letterbox.

It's the same method in the script above but I've added some masks and a couple other things to try and keep detail.  I might have cheated a bit, I'm not sure.  I'll wait to see what you say.

It's a split down the middle of the frame comparison of the raw capture on the right and the filtered version on the left.

Post
#632286
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Okay the 480p raw stream is encoded with the same settings minus the blu-ray compatibility option.  It is more than 1gb smaller.  I remember Chewtobacca saying how he thought the encode was quite big at nearly 4.5gb and now I guess we know why that was.  It's now about 3.3gb and when I demux the stream it comes out at 24fps instead of 30fps.

I believe I also found the reason why some of the whites were getting clipped.  Mysycamore commented on this.  I'd have never noticed it otherwise. The 480p stream that I originally released was essentially the raw capture encoded to x264 but I did apply a levels tweak which I thought would not clip anything.  However, coring was by default set to true which automatically clips stuff when you use it(I think).  This time I have not adjusted anything whatsoever.  It's just been IVTC'ed and a couple wonky frames have been fixed but other than that it's untouched.  It looks a bit washed out because of this but is easily fixable with a few tweaks.  I plan on releasing it completely untouched this time however.

I feel like such a noob sometimes lol.

Post
#631958
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Yeah it's  the same it seems.  I think you could even use it to stretch out the histograms for each individual channel and do some basic color correction before you start to denoise. I probably read that post awhile ago and kept the idea in my head. I'm sure I'm not the first person to try and denoise in rgb colorspace so hopefully I can get some tips.

Post
#631932
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

source=Avisource()

##separate channels and adjust levels
red=source.converttorgb32().showred("yv12")#.levels(8,1,255,0,255)
green=source.converttorgb32().showgreen("yv12")#.levels(7,1,255,0,255)
blue=source.converttorgb32().showblue("yv12")#.levels(14,1,255,0,255)

##temporal denoise (used as an auxiliary clip for the spatial denoiser)
vectors=red.MVAnalyseMulti(refframes=5, pel=2, blksize=16, blksizev=16, overlap=8, idx=1,chroma=false)
auxred=red.MVDegrainMulti(vectors, thSAD=400, SadMode=1, idx=2,plane=0)
auxgreen=green.MVDegrainMulti(vectors, thSAD=400, SadMode=1, idx=2,plane=0)
auxblue=blue.MVDegrainMulti(vectors, thSAD=400, SadMode=1, idx=2,plane=0)

##spatial denoise of separate channels
redvd=red.vaguedenoiser(0,interlaced=false,wiener=true,auxclip=auxred,chromat=-1)
greenvd=green.vaguedenoiser(0,interlaced=false,wiener=true,auxclip=auxgreen,chromat=-1)
bluevd=blue.vaguedenoiser(0,interlaced=false,wiener=true,auxclip=auxblue,chromat=-1)

##fft3d for noise in dark areas
redfft=redvd.fft3dfilter(sigma=.5,sigma2=1,sigma3=3,sigma4=8,plane=0,sharpen=0,bt=2,degrid=2)
greenfft=greenvd.fft3dfilter(sigma=.5,sigma2=1,sigma3=3,sigma4=8,plane=0,sharpen=0,bt=2,degrid=2)
bluefft=bluevd.fft3dfilter(sigma=2,sigma2=3,sigma3=5,sigma4=8,plane=0,sharpen=0,bt=5,degrid=2)

##mix channels and adjust levels if needed
mix=mergergb(redfft,greenfft,bluefft,"rgb32").levels(16,1,255,0,235).converttoyv12()
#sc=stackhorizontal(source.converttoyv12(),mix.histogram())
return(mix)

Here is the script I used to denoise the 2 test clips.  I have never used RGB before. Is there a better way? I guess I'm bothering because most people nowadays don't like noise in the picture. Is there some recommended settings that anybody can offer me that would unoffensively reduce noise?

 

 

Post
#631844
Topic
Star Wars Laserdisc Preservations. See 1st Post for Updates.
Time

Thanks!  I'm glad you spoke up about all of the issues that you noticed or some of it might have gone unnoticed for awhile.

Separate MKV's could be good imo.

 

EDIT: BTW, that second clip is resized and has the wrong aspect ratio but I guess you can still judge the denoising.  It's pretty late here I should go to bed now lol.