Yes, now we're getting somewhere. Try this:
Mpeg2Source("VTS_01_1.demuxed.d2v", Info=3)
TFM()
TDecimate()
If at any point you changed the name of the D2V or changed anything about it or in it, then make a new one and be sure to use the name you gave it in the script. I never give the full path to the D2V file in the scripts. Not sure why you did as it's just one more thing that can go wrong. Unless there's a reason to use a different name, I always name it:
MPEG2Source("Movie.d2v")
Again, if it doesn't work, post the full script and the full VDub error message.
Which is certainly the case with every D2V I've ever made - always in the same folder as the script in which it's used.
+ Reply to Thread
Results 31 to 60 of 68
-
-
ok guys, you have lots of good suggestion here but I need to follow some kind of guide here. Am I right if I say I start from :
01) DGIndex (to demux the .vob files and get .m2v & .d2v files)
02) I use VirtualDub IVTC filter
03) this is where I am now. Not sure what to use and in what order.
Thanks -
You don't need to demux the m2v file. I told you to do that earlier just to extract a sample for upload. You only need to make the d2v file and the ac3 file. The d2v file tells Mpeg2Source() where the VOB files are and how to read video from them. So don't move or delete the VOB files after making the d2v file.
No. TFM().TDecimate() is the IVTC.
Open the AVS script in an editor like VirtualDub and encode it, optionally muxing (or converting) the AC3 audio. -
I moved everything in c:\
I opened Virtualdub with the script
mpeg2source("c:\vts_01_1.d2v", Info=3)
tfm(d2v="c:\vts_01_1.d2v")
TDecimate()
and I received this message when I tried to run the script:
Error during script execution at line 1, column 12: Variable 'mpeg2source<!>("C\vts_01_1.d2v", Info=3) -
Don't use File -> Run Script in VirtualDub -- that's for VirtualDub's own scripts. Use File -> Open Video File and select the AVS file.
-
Do as it says. Either rename your D2V in the script to the fixed version, or delete the original D2V and rename the fixed version to your original one.
-
Ok, it seems to work now by changing the file. Should I encode it with virtualdub at 23,976 fps or directly do it with TMPGEnc Video Mastering ?
-
If you're really using VirtualDub and not VirtualDub FilterMod, then your choices are limited as to what codecs you can use. I use RipBot264 to open scripts and audio and encode to MP4 or MKV with H264 video with AAC audio. Others do it differently. I believe TMPGEnc takes scripts but as I've never used it (or felt the need to), others can answer better.
-
Should I consider this a victory guys ? I mean properly converted from interlaced to progressive ?
-
Though it displays with the proper 16:9 aspect ratio Why is your video 480 pixels wide and 720 pixels tall? You've lost resolution horizontally (the DVD is 720 pixels wide) and you needlessly stretched the video vertically from 480 lines to 720 lines. Otherwise it looks ok.
-
is it the same procedure to convert a tv-series interlaced but coming from a film source and not digital like the previous one ?
-
That's native 23.976 progressive too. Use the same TFM().TDecimate() method.
The first thing to do is open the video with no filters and step though a section with constant movement. If you see a pattern of 2 frames with comb artifacts followed by 3 frames with without, repeating -- the video is 23.976 fps with pulldown. To verify you can apply a simple Bob() filter. When there is motion, aside from bob artifacts, you will see a 2:3 repeat pattern of frames. Ie, 2 frames from one film frame, 3 frames from the next film frame, repeating. These should be inverse telecined back to the original film frame rate, 23.976 fps.
If every frame is different after the Bob(), and there are no blending artifacts, you have true interlaced video (typically live sports, news, some TV shows, home camcorder video, etc.) that should be deinterlaced, preferably to 59.94 fps. The best deinterlacer is now for most material is QTGMC in AviSynth. Second best is usually Yadif (available in many programs). You can deinterlace to 29.97 fps but motion will not be as smooth and the video will flicker in high contrast, high motion scenes.
There are other possibilities that require different processing. -
Thanks jagabo for all the information I've been able to do some amazing things during the last months.
Quick question, if your video source is a web-dl (29,97 fps Progressive) and want to convert to 23,976 fps the same way ? is it possible to do with the same script ? the only problem is that I don't have a .d2v file and can't get one because DGIndex can't load .mkv file.
Thanks -
I doubt a web-sourced video will have that telltale 3/2 pattern. They'll already have been deinterlaced one way or another before being uploaded. They might have a 4/1 pattern (4 unique and 1 duplicate), or every frame might be different. If 4/1, you can use TDecimate alone to remove the duplicate frames. If every frame is different you won't want to remove any frames. If 3/2 where there are 3 clean progressive frames and 2 blended/ghosted frames, then a different procedure is called for to restore it to progressive 23.976fps. Like everything else, when asking questions such as yours, please provide samples.
And, if the video is something besides an MPG of some sort or another, then you can't make an D2V file and use MPEG2Source. You'll need a different source filter. I usually use FFVideoSource on MKVs but there are others. -
I prefer to use LSmash for loading mp4 and mkv files. LSmashVideoSource() for mp4/mov, LWLibavVIdeoSource() for mkv.
Most 29.97 (or 30) fps videos you download will probably be 23.976 fps with duplicate frames. Usually all those need is TDecimate().Last edited by jagabo; 20th May 2018 at 20:06.
-
-
Either L-SMASH Works or DGIndex. Both are different plugins, one does not make the other load unsupported formats.
A script for applying "Inverse Telecine" (IVTC) to a telecined clip would look like:
Code:# if you put the DLL files into the AviSynth plugin autoload directory, you may omit the next two lines: LoadPlugin("path\to\LSMASHSource.dll") # this plugin provides the function LwLibavVideoSource LoadPlugin("path\to\TIVTC.dll") # this plugin provides the functions TFM and TDecimate LwLibavVideoSource("Telecine.mkv") TFM() TDecimate()
Last edited by LigH.de; 9th Jun 2018 at 07:54.
-
Thanks guys
I removed the TFM() line, added LSMASHSource.dll to plugins folder and added the path (like below)
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\LSMASHSource.dll")
LoadPlugin("C:\Program Files (x86)\AviSynth\plugins\TIVTC.dll")
LwLibavVideoSource("test.mkv")
TDecimate()
and I'm getting the message: Avisynth open failure: LoadPlugin: unable to load ("C:\Program Files (x86)\AviSynth\plugins\LSMASHSource.dll", error=0xc1 (c:\===work===\script2.avs, line 1) -
I rather believe you need to install the required version of Microsoft Visual C++ Runtime. But I don't know which version (year) your LSMASHSource.dll was compiled for. Can't hurt to install them all, from 2010 on. Mainly 32 bit here, but maybe 64 bit too, just for completeness.
-
According to http://avisynth.nl/index.php/LSMASHSource MSVCRT 2013 is required. There's a link to it there.
-
More recent builds (a few just appear in the doom9 forum) may be built with newer Visual Studio versions...
Similar Threads
-
Converting MP4 to MPG/VOB (Progressive to Interlaced)
By danielmak in forum MacReplies: 7Last Post: 7th Oct 2016, 06:58 -
Is mp4/mpeg4 designed for progressive rather than interlaced?
By SyncroScales in forum Video ConversionReplies: 7Last Post: 22nd Jul 2015, 06:42 -
Ho to get a pure interlaced mp4 with ffmpeg?
By marcorocchini in forum Newbie / General discussionsReplies: 113Last Post: 27th Nov 2014, 17:25 -
Ripbot264 tutorial for Interlaced VC1 to Roku mp4?
By WBFAir in forum Blu-ray RippingReplies: 4Last Post: 16th Aug 2013, 06:47 -
Interlaced .mp4, can't deinterlace.
By nick101181 in forum Newbie / General discussionsReplies: 7Last Post: 21st Oct 2012, 16:21