Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
23rd June 2019, 18:53 | #1 | Link |
Registered User
Join Date: Jul 2012
Posts: 1,213
|
Need some help with a Vapoursynth script
When using an avisynth script for my encode all works
Code:
LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll") DGSource("I:\xxxxx.dgi", fieldop=0, fulldepth=True) DGTelecide(mode=1, dthresh=3.5) DGDecimate() #####CROP##### Crop(12, 60, -8, -60) #####RESIZE##### Spline64Resize(854, 370) ConvertBits(10) Vapoursynth Editor check says the script is fine but I can't even get vdub2 to load it Code:
import vapoursynth as vs core = vs.get_core() core.std.LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll") clip = core.dgdecodenv.DGSource(r'F:\xxxxx.dgi', fieldop=0, fulldepth=True) #####AVSCOMPAT##### core.avs.LoadPlugin("C:/Program Files (Portable)/dgdecnv/DGDecodeNV.dll") #####IVTC##### clip = core.avs.DGTelecide(clip, mode=1, dthresh=3.5) clip = core.avs.DGDecimate(clip) #####CROP##### clip=core.std.Crop(clip, left=12, right=8, top=60, bottom=60) #####RESIZE##### clip=core.resize.Spline36(clip=clip, width=854, height=370) clip = core.resize.Point(clip, format=vs.YUV420P10) clip.set_output() The reason I am trying to get the vpy script working is that when using 64 bit suptitle I get major artifacts during the appearance of the subtitle I don't have a problem with ImageFile Last edited by gonca; 23rd June 2019 at 18:56. |
23rd June 2019, 20:41 | #4 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
|
23rd June 2019, 21:22 | #5 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
clip=clip is correct. Resize error 1027: image dimensions must be divisible by subsampling factor
If you change height to something like 372 then it should work. But is height = 370 correct for YUV420P8? I can confirm that it works in avs, in VS not. Who is to blame?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
23rd June 2019, 21:27 | #6 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,565
|
Interlaced should need mod4, progressive only mod2?
http://avisynth.nl/index.php/Crop#Crop_restrictions |
23rd June 2019, 21:30 | #7 | Link | |
Registered User
Join Date: Jul 2012
Posts: 1,213
|
The video is form an old DVD.
The DVD was soft pull down but the video was flagged interlaced (fake) Interlaced cropping must be mod 4 Quote:
The SetFieldBased entry gets around the mod requirements for interlaced This whole exercise is because 64 bit suptitle does some nasty things when the subtitle is showing, makes it look like I am using 50kb/s Last edited by gonca; 23rd June 2019 at 21:34. |
|
23rd June 2019, 21:40 | #8 | Link | |
Registered User
Join Date: Jul 2012
Posts: 1,213
|
Quote:
That is why it takes me longer and I have to ask for help for vpy and avs+ scripts And I still don't get any notifications Maybe some is giving me a hint |
|
23rd June 2019, 21:45 | #9 | Link | |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
Quote:
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
|
23rd June 2019, 22:32 | #10 | Link | |
Registered User
Join Date: Jul 2012
Posts: 1,213
|
Quote:
This was a 720x480 16:9 with letterboxing I removed the black bars and resized so I could use a SAR of 1:1 so I don't have to rely on a media player being able to recognize the DAR in a mkv container I was using a progressive clip, which had fake interlaced flags |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|