In honor of Star Wars Day 2024...
Okay, I've had a long layoff from AviSynth (and I was never really a guru...more of a recipe follower). But I have obtained a LaserDisc copy of the original Star Wars trilogy (before CGI and where Han Shoots First) and I'm wanting to adapt it so that it shows in optimal quality on my 16:9 TVs.
The LD was letterboxed for 4:3 TVs, and when played directly on mine shows up as both letterboxed AND pillarboxed...with something akin to a postage stamp of action in the middle. I made a good capture of the LD original to a lossless .avi using my All-In-Wonder setup. Now I'm wanting to reformat it to take advantage of the full width of a 16:9 screen, while at the same time preserving the subtitles which appear in the lower letterbox.
This is the script I'm using for a first cut:
Can someone make recommendations for improvement? After I get the lossless conversion to .avi format, I'm planning to convert to .mp4 and load it onto my home video server. Thanks!Code:AviSource("D:\StarWars\StarWars4LDPt2.avi") ColorYUV(cont_Y=10) Tweak(cont=1.05,sat=1.3,dither=true,coring=false) Levels(18,1.0,255,16,255,dither=true,coring=false) AssumeTFF() ConvertToYV12(interlaced=true) QTGMC(sharpness=0.6,border=true) AddGrainC(1.5,1.5) Crop(4,60,0,-10).AddBorders(2,4,2,6) Spline36Resize(Width,480)
+ Reply to Thread
Results 1 to 9 of 9
-
--------Eric H. Bowen; USN Battleship Veteran (USS Missouri, BB-63, 1985-88)
16" Armor Piercing - When you care enough to send the very, VERY best! -
Fair enough.
Here's a clip of the original LD raw capture (StarWars4LDclip-org.avi) and a clip after being resized and run through QTGMC with the script in my original post (StarWars4LDclip-proc.avi).--------Eric H. Bowen; USN Battleship Veteran (USS Missouri, BB-63, 1985-88)
16" Armor Piercing - When you care enough to send the very, VERY best! -
QTGMC is not appropriate for film based sources. You want to use TFM().TDecimate() instead. That will get you back to the original film frames. The levels and cropping are hard to say for sure, but try something like this:
Code:LWLibavVideoSource("StarWars4LDclip-org.avi") TFM() TDecimate() Spline36Resize(640, 480) Crop(0,102,0,-10) ColorYUV(gain_y=-15, off_y=-4, cont_u=100, cont_v=100) ConvertToYV12() MergeChroma(SMDegrain(thsad=200, tr=3, PreFilter=4), SMDegrain(thsad=1000, tr=3, PreFilter=4).aWarpSharp(depth=10)) ChromaShiftSP(x=-1, y=2) aWarpSharp2(depth=5) Sharpen(0.5, 0.0)
-
All right, I'm trying your suggested script but I'm having plugin problems. It's calling for a function called KNLMeansCL which does not exist. I found the plugin online and attempted to install it. When I use the "Load Plugin" command it tells me that this .dll cannot be used as an AviSynth plugin; when I try placing it in the regular plugins directory I get a "System Access Violation" message. I did install the redistributable Visual C++ for Visual Studio 2015 which is listed as a dependency. Still no luck.
Anyhow, right now I think I'm going to spend about two hours watching the version I converted with my first script. I'd like to see how it compares with the TFM version, but it looks adequately watchable as is.
Thanks for the help so far.--------Eric H. Bowen; USN Battleship Veteran (USS Missouri, BB-63, 1985-88)
16" Armor Piercing - When you care enough to send the very, VERY best! -
I tried and initially got the same error re KNLMeansCL.
Assuming your have Visual C++ dist installed...
I went here:
https://github.com/pinterf/KNLMeansCL/releases
In the first section, click on "Assets 3" and the KNL...7Z file will be shown. Download it, unzip it with Right-Click "Extract All..."
Open up the "x64" folder folder that is created (amoung others) and the KNLMeansCL.DLL file will be visible.
Copy and paste that file into your AviSynth+ Plugins64+ folder and you should be good to go. -
On my LD captures, I generally only apply a basic filtering:
Code:video_org=AviSource("StarWars4LDclip-org.avi") # IVTC video_org_ivtc=video_org.AssumeTFF().TFM(order=1, mode=0, PP=0, slow=2, field=1).TDecimate() ### convert to YV16 deinterlaced_yv16=video_org_ivtc.convertToYV16() ### denoising denoised_yv16=deinterlaced_yv16.TemporalDegrain2(degrainTR=3) ### convert to YUY2 denoised=denoised_yv16.convertToYUY2() ### convert to YV12 denoised_yv12=denoised_yv16.convertToYV12() ### sharpening sharpened_yv12=denoised_yv12.LSFmod(defaults="slow") ### convert to YUY2 with chroma from YUY2 color space restored=sharpened_yv12.convertToYUY2().MergeChroma(denoised) return(restored)
comparison with slider:
https://imgsli.com/MjYxNjEw
restored video:
rest.avi -
-
You can use LSFplus -- it has no restrictions like LSFmod.
Similar Threads
-
can ExBlend plugin for avisynth, do framerate conversion?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 30th Dec 2023, 20:28 -
How to colorspace conversion Vegas-->Avisynth?
By Amaze in forum Video ConversionReplies: 13Last Post: 29th May 2023, 09:51 -
Conversion of MKA files to .DTS and .WAV formats from original MKV source
By cybnmusic in forum MacReplies: 2Last Post: 25th May 2023, 17:07 -
Virtualdub, FFMPEG and Avisynth conversion
By Guernsey in forum Newbie / General discussionsReplies: 4Last Post: 26th Sep 2020, 03:18 -
apply gamma and colorspace conversion to match original .mov using ffmpeg
By Drinkitrinki in forum Video ConversionReplies: 18Last Post: 25th May 2020, 16:09