Hi i cant seem to deinterlace this DVD properly, any help/guidance would be kindly appreciated. After deinterlacing I would like to convert it to 24fps
https://easyupload.io/y2yag4
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 30 of 71
Thread
-
-
Looks to me like a poorly converted PAL -> NTSC source, so
Code:ffms2("VTS_01_1.VOB", cache=false) AssumeTFF() yadifmod2(mode=1) #or a bobber of your choice sRestore(frate=25.0)
Last edited by Sharc; 29th Sep 2023 at 13:46. Reason: File attached
-
Sharc is right. That type of conversion is very common.
Code:Mpeg2Source("VTS_01_1.d2v", CPU2="ooooxx", Info=3) QTGMC() # to 59.94p SRestore() #discard blended frames, to 25p Crop(10,58,-6,-58)
-
Thanks guys. Really appreciate this as I have alot of these dvds done by same company and they all messed up exactly like the sample.
I'm trying to open the vob on avisynth for 1st time and i cant open it on avsPmod.
this is what i get:
[Attachment 74084 - Click to enlarge] -
You have to build the index file with DgIndex. You also need to have the MPEG2Source filter.
http://avisynth.nl/index.php/DGDecode
That includes both.
Newer builds of MPEG2Source don't include the CPU2 filters. Just delete that argument.
Code:Mpeg2Source("VTS_01_1.d2v", Info=3)
-
Newer builds of MPEG2Source don't include the CPU2 filters. Just delete that argument.
# to 59.94p#discard blended frames, to 25p -
Those are just comments telling you what those two filters are doing. QTGMC converts the 29.97 fps interlaced video to 59.94 fps progressive. Then SRestore() converts that 59.94 fps progressive to 25 fps progressive by removing the blended frames.
-
-
The running of the video hasn't changed so you can keep the original audio tracks (mux them when you encode the new video, or as a separate step in MkvToolnix). If you want to edit and/or re-encode the audio you can include it in your script and use an encoder that support video and audio:
Code:a = LWlibavAudioSource("VTS_01_1.VOB", stream_index=2) # get audio (decompressed to PCM) v = Mpeg2Source("VTS_01_1.d2v", Info=3) # get video AudioDub(v,a) # join audio and video together QTGMC() # to 59.94p SRestore() #discard blended frames, to 25p Crop(10,58,-6,-58)
Code:a = LWlibavAudioSource("VTS_01_1.VOB", stream_index=2) # get audio (decompressed to PCM) v = Mpeg2Source("VTS_01_1.d2v", Info=3) # get video AudioDub(v,a) # join audio and video together QTGMC() # to 59.94p SRestore() #discard blended frames, to 25p Crop(10,58,-6,-58) # after this cropping you have a 704x364 frame Spline36Resize(856, 364) # 364 * 2.35 = 855.4, round up to 856 for a mod 8 width
Code:a = LWlibavAudioSource("VTS_01_1.VOB", stream_index=2) # get audio (decompressed to PCM) v = Mpeg2Source("VTS_01_1.d2v", Info=3) # get video AudioDub(v,a) # join audio and video together QTGMC() # to 59.94p SRestore() #discard blended frames, to 25p Crop(10,58,-6,-58) # after this cropping you have a 704x364 frame Spline36Resize(856, 364) # 364 * 2.35 = 855.4, round up to 856 for a mod 8 width AssumeFPS(24000, 1000, sync-audio=true) # audio sample rate reduced from 48000 to 46080 (lossless) SSRC(48000) # convert audio to 48000 Hz samples
-
Last script above encoded with ffmpeg batch file:
Code:Start /b /low "ffmpeg" "G:\program files\ffmpeg64\bin\ffmpeg.exe" -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^ -i %1 ^ -c:v libx264 -preset slow -crf 18 -g 50 ^ -colorspace smpte170m -color_trc smpte170m -color_primaries smpte170m -color_range tv ^ -acodec ac3 -ab 256K ^ "%~dpn1.avc.mkv"
-
Thank you so much jagabo.
I've tried your code all working except the audio is incomplete for the whole duration of dvd. Im guessing it's because I've only added 1 vob file for line 1:
a = LWlibavAudioSource("D:\DVD'S\THE_LOOT\VIDEO_TS\VTS _01_1.VOB", stream_index=2) # get audio (decompressed to PCM)
Also the dvd has 3 audio tracks. How can I keep all 3 ?Last edited by Akuma786; 29th Sep 2023 at 20:29.
-
Last edited by Sharc; 30th Sep 2023 at 03:50.
-
Oh yeah your right. Thanks
Virtualdub keeps crashing after few minutes into rendering. I cant seem to get this issue fixed. No matter what scripts I use it will crash at some point.
Its same thing Processing thread has not cycled for 30 seconds. Possible livelock.
[Attachment 74104 - Click to enlarge]
Also CPU usage is only 25% when running script on virtualdub 2.Last edited by Akuma786; 30th Sep 2023 at 05:45.
-
This is what i get after running it:
[Attachment 74110 - Click to enlarge] -
I forgot that I had modified the script from which that file was made. It included some other noise reduction and sharpening. So you won't get exactly the same thing when you render the earlier script.
Yes. Instead of importing audio from the VOB file you can import from the AC3 file(s) that DgIndex produced. That will include the audio for the full VOB sequence it indexed.
I don't know how to do this all at once. You could just modify the script to open one of the audio files then render it. Then repeat for the next audio file. Etc. Then finally mux all three audio files with the video.
Does it always happen at the same point with a given script? That might indicate a problem with the source. If it happens a different times that might indicate an overheating problem.
By default AviSynth+ runs single threaded. To use more threads add Prefetch(N) to the end of your script. Where N is the number of threads to use. Try the number of cores your CPU has. -
Does it always happen at the same point with a given script? That might indicate a problem with the source. If it happens a different times that might indicate an overheating problem.
By default AviSynth+ runs single threaded. To use more threads add Prefetch(N) to the end of your script. Where N is the number of threads to use. Try the number of cores your CPU has. -
Some other things you can try to diagnose the lockup:
Instead of encoding try File -> Run Video Analysis Pass. That will read through the entire script without encoding anything. If that locks up it indicates an AviSynth problem, not an encoding problem.
Try different audio and video codecs in VirtualDub. Or different encoding programs like the x264 CLI encoder or ffmpeg. See post #13 for an example using ffmpeg.
Monitor your CPU temperatures with Core Temp while encoding; to make sure your CPU isn't overheating.
https://www.alcpu.com/CoreTemp/ -
[Attachment 74112 - Click to enlarge] -
Oops, get rid of the qsv options on the first line: "-init_hw_device qsv=hw -filter_hw_device hw". And maybe "-hwaccel dxva2" too.
Note that command line is supposed to go in a batch file. Then you drag/drop an AVS script onto the batch file to encode that script.
That means the problem in in AviSynth, not the encoding program. -
Your next step would be to try removing parts of the script until you find what's causing the lockup. The most likely culprits would probably be QTGMC and SRestore.
-
One culprit for hanging with QTGMC is an old avstp.dll version . If you don't have it in your plugins directory , that' s not the answer. If you do, replace with 1.0.4.1
https://github.com/pinterf/AVSTP/releases
Another culprit is old mvtools2 version. Update to newest one if you haven't already
https://github.com/pinterf/mvtools/releases -
This has fixed the issue I was having with Avisynth. I'm now able to export the script without any issues. Thank you so much guys for all your help.
I forgot that I had modified the script from which that file was made. It included some other noise reduction and sharpening. So you won't get exactly the same thing when you render the earlier script.
Similar Threads
-
Is this bad interlacing or a poorly authored DVD?
By LaserBones in forum Newbie / General discussionsReplies: 12Last Post: 16th Oct 2023, 01:15 -
Decrypting DVD / de-interlacing workflow woes
By ArchLio in forum DVD RippingReplies: 25Last Post: 10th Feb 2023, 22:42 -
Use UsEac3To for 24fps to 23.976?
By digitalfreaknyc in forum AudioReplies: 2Last Post: 27th Mar 2022, 16:47 -
Dvd interlacing
By Johnnysh in forum DVD RippingReplies: 37Last Post: 6th Dec 2020, 15:34 -
Converting NTSC->PAL Interlaced DVD Back To NTSC 24FPS???
By SegaSonic91 in forum DVD RippingReplies: 7Last Post: 3rd Oct 2020, 00:55