VideoHelp Forum




+ Reply to Thread
Page 2 of 3
FirstFirst 1 2 3 LastLast
Results 31 to 60 of 68
  1. 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.

    Originally Posted by jagabo View Post
    You need to provide the full path to the d2v file in TFM and Mpeg2Source. The exception is when the AVS script is in the same folder as the d2v file. Then you can just use the name of the d2v file.
    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.
    Quote Quote  
  2. Double post, sorry.
    Quote Quote  
  3. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    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
    Quote Quote  
  4. The script suggested by manono already includes IVTC (TFM()+TDecimate()).
    Quote Quote  
  5. Originally Posted by kalemvar1 View Post
    01) DGIndex (to demux the .vob files and get .m2v & .d2v files)
    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.

    Originally Posted by kalemvar1 View Post
    02) I use VirtualDub IVTC filter
    No. TFM().TDecimate() is the IVTC.

    Originally Posted by kalemvar1 View Post
    03) this is where I am now. Not sure what to use and in what order.
    Open the AVS script in an editor like VirtualDub and encode it, optionally muxing (or converting) the AC3 audio.
    Quote Quote  
  6. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    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)
    Quote Quote  
  7. 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.
    Quote Quote  
  8. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    I got a similar message I Use File -> Open Video File and select the AVS file.

    Avisynth open failure:
    Script error: there is no function named ''mpeg2Source''
    (C:\script.avs, line 1)
    Quote Quote  
  9. That's a completely different error message. Put a copy of DgDecode.dll (it came with the DgMpgDec package along with DgIndex) in AviSynth's plugins folder.
    Quote Quote  
  10. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    ok it's done,

    Now I have the message:

    Avisynth open failure:
    TFM: Illegal transitions found in dvd2avi project file!
    Please use the fixed version that has been created
    in the same directory as the original d2v file.
    (C:\script.avs, line 2)
    Quote Quote  
  11. 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.
    Quote Quote  
  12. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    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 ?
    Quote Quote  
  13. 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.
    Quote Quote  
  14. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    Should I consider this a victory guys ? I mean properly converted from interlaced to progressive ?
    Image Attached Files
    Quote Quote  
  15. 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.
    Quote Quote  
  16. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    is it the same procedure to convert a tv-series interlaced but coming from a film source and not digital like the previous one ?
    Image Attached Files
    Quote Quote  
  17. 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.
    Quote Quote  
  18. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    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
    Quote Quote  
  19. Originally Posted by kalemvar1 View Post
    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.
    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.
    Quote Quote  
  20. 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.
    Quote Quote  
  21. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    Here is a sample of few seconds.
    Image Attached Files
    Quote Quote  
  22. Originally Posted by kalemvar1 View Post
    Here is a sample of few seconds.
    That video is progressive. It just needs to be decimated.
    Quote Quote  
  23. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    Thanks jagabo.

    to make LWLibavVIdeoSource() works for .mkv (and be able to load it in DGindex) what the script would look like ?

    Thanks
    Quote Quote  
  24. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    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()
    But your clip District.31.S01E01.mkv "just needs to be decimated", jagabo wrote; here I don't know what to do exactly...
    Last edited by LigH.de; 9th Jun 2018 at 07:54.
    Quote Quote  
  25. The clip just needs to be decimated. So leave out the TFM().
    Quote Quote  
  26. Member
    Join Date
    Aug 2015
    Location
    Quebec, Canada
    Search PM
    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)
    Quote Quote  
  27. Did you get the right bitness? 32 bit LSMASHSource.dll for 32 bit AviSynth, 64 bit LSMASHSource.dll for 64 bit AviSynth.
    Quote Quote  
  28. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    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.
    Quote Quote  
  29. According to http://avisynth.nl/index.php/LSMASHSource MSVCRT 2013 is required. There's a link to it there.
    Quote Quote  
  30. Member
    Join Date
    Aug 2013
    Location
    Central Germany
    Search PM
    More recent builds (a few just appear in the doom9 forum) may be built with newer Visual Studio versions...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!