VideoHelp Forum




+ Reply to Thread
Results 1 to 18 of 18
  1. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    I'm sure this is a nub question but here goes....

    I have a .vob file of a music video. Looking at the video through a simple avs script in virtualdub, the video is interlaced (and I'm pretty sure bottom field first.)

    I'm trying to convert this to any FPS....doesn't really matter to me at all what the FPS ends up at....my goal is to properly deinterlace the video. I tried loading the dgindex d2v file into MeGUI and using the analyze video, and using the created script. The resulting video file seems to have a jitter every one or so seconds. I used the following script from another webpage I found about converting :

    xxxSource(“25i.xxx”)

    AssumeTFF() # or AssumeBFF()

    LeakKernelBob(order=1) # or order=0

    ChangeFPS(23.976)

    LanczosResize(width, height)


    Obviously I modified it to load my music video and set it for BFF. That video file has the same jitter. The interlacing is gone but the jitter is bad. Every second or so. If I step through the frames in virtualdub, it looks like some of the things on the screen are ghosting. Like it takes the next (or sometimes the previous) frame, and adds it to the current frame but slightly translucent. What can I do to fix this? Now I'm not sure of the "ghosting" issue is what's causing the jitter effect or not. I just need advice on a correct avs script to process this file to deinterlace it and fix the jitter that I get after the deinterlace.

    EDIT 1 : Here a sample clip : http://www.mediafire.com/file/dzie2d2kki3/KardinalOffishall-Dangerous-Sample.m2v

    EDIT 2 : More information on this issue. When I play the original interlaced 25 FPS vob through zoom player, zoom player deinterlaces the video on the fly and the video plays back smooth as butter. When I play the deinterlaced video converted with MeGUI, the video stutters. Better description of what I'm calling jitter is this : about every second or so, the video seems to speed up for a split second and then slow down back to normal speed....does that about every second.
    Quote Quote  
  2. If the source was 25i , why changefps(23.976) ?

    changefps will add/delete frames, so you are bound to get choppiness (maybe what you described as jitter?)

    it might help to post an unprocessed source sample, the ghosting might be blending frames or something else - hard to say without seeing it. At least try taking changefps(23.976) out of the script, then preview the .avs in mpc before encoding it

    I'm not familiar with leakkernalbob() , I assume it's a bob-deinterlacer?
    Quote Quote  
  3. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    I only added the changefps based on another post. I did not add that changefps to the avs script created by MeGUI's avi script creator, and I had the same jitter. How do I edit my vob to only 10 or so seconds so I can upload the sample?

    EDIT : I have VideoReDo...maybe I can cut the vob with that...

    And here's the avs script generated by MeGUI that had the same jitter issue :

    DGDecode_mpeg2source("C:\Documents and Settings\alcOre\My Documents\Downloads\Kardinal Offishall - Dangerous\Kardinal Offishall - Dangerous.d2v", info=3)
    ColorMatrix(hints=true, interlaced=true, threads=0)
    Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
    Yadif(order=0)
    crop( 8, 4, -8, -6)

    Spline36Resize(436,320) # Spline36 (Neutral)
    Undot() # Minimal Noise
    Quote Quote  
  4. You can use use the "[" and "]" to mark in/mark out in DGIndex => save project and demux sample . All you need is the .m2v , the elementary video stream
    Quote Quote  
  5. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Ok I'll make a sample and post it...not sure where to upload it to. I think I have webspace from my isp...
    Quote Quote  
  6. If its <5mb, you can upload it here. Or use a free site like mediafire.com or megaupload.com
    Quote Quote  
  7. I could be wrong, but it really looks field blended to me. Many people use SRestore() to fix blended fields

    I renamed the file 1.m2v

    Load_Stdcall_Plugin("PATH\yadif.dll")
    LoadPlugin("PATH\DGDecode.dll")
    MPEG2Source("1.d2v")
    Yadif(order=0, mode=1) #BFF
    SRestore(FRate=25)

    http://avisynth.org/mediawiki/Srestore

    Download the srestore.avsi from the wiki, and put it into the avisynth/plugins folder . You also need the 4 required filters listed on that page as pre-requsites
    Quote Quote  
  8. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    I'm a nub so no idea what field blended is (or srestore) but I'll give that a shot and see how it looks to me...

    What exactly does SRestore(FRate=25) do?
    Quote Quote  
  9. Interlaced (as opposed to progressive) content consists of fields or half-frames. So 25i is really 50 fields per second. If the video is field blended, some of the fields are mixed up causing the blurring

    The process I went thru to determine it was field blended , and the field order (ie. bff or tff) is outlined here
    http://neuron2.net/faq.html#analysis

    Srestore() is the newer revision avisynth function for mrestore(), which both work to fix/unblend the fields; you can read more about it here if you want http://forum.doom9.org/showthread.php?p=1186623#post1186623

    Also I didn't do the crop/resizing, so you can add that back into the script as you see fit
    Quote Quote  
  10. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    Stupid question....how do I install mask tools? there's quite a few files and directories in the zipped file....not sure which to put in the avisynth plugins directory.
    Quote Quote  
  11. You need to place the .dll files in the avisynth/plugins directory.

    This might be a dumb way of doing it, but I place the original folder & contents in the avisynth/plugins folder, and copy the .dll separately to the avisynth/plugins - this way it's organized so I know exactly what version I have when a new version comes out, and which .dll to replace. It gets very messy when you accumulate many filters...
    Quote Quote  
  12. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    a little better but still stuttering. not as bad though. I have another source for the video that is 29.97i that I can use...I just wanted to use the 25p source cause it was higher quality, but that stuttering is gonna drive me nuts.


    poison...would you mind posting that sample clip I posted earlier after you transcoded it to h264? I just want to compare yours to mine to see if I'm doing something wrong.
    Quote Quote  
  13. The video was converted to PAL from a 24fps film source. The basic script would go:

    Yadif(Mode=1,Order=0)#or your favorite bobber - the sample was BFF
    SRestore(Frate=24)

    Here's an MP4 (x264, 3MB in size) of the sample:

    http://www.mediafire.com/?2wur2nmndjn
    Quote Quote  
  14. Thx for the correction manono! good job
    Quote Quote  
  15. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    sweet....thanks both of you for your help....i really appreciate it. ps...how would one go about figuring out it was converted from 24 fps? Also, since it was originally 24 fps, would it be a good idea to use ChangeFPS(24) in the script or should I just leave it at 25fps?

    EDIT to that last question : I just did a SRestore(24) and it looks great but its now back to 24fps without adding ChangeFPS(24). But the sample you sent me is at 25fps. Why is your sample 25fps and mine is 24fps?
    Quote Quote  
  16. I must admit that your edit threw me for a loop. I checked the MP4 in both GSpot and MediaInfo and sure enough they both said 25fps. I checked the XviD4PSP log and it said 25fps. I checked my original script in VDubMod and it said 24fps (which I knew already). So, evidently for some reason I don't quite understand (it was reading the framerate off of the D2V, maybe, or there was some setting in XviD4PSP I overlooked), it changed the framerate. It speeded it up; it didn't add any extra frames. So, I did it over again being more careful with the settings and here's the same thing at 24fps. Like I said, I used the same script both times.

    http://www.mediafire.com/?ymn5mywzjit

    The FRate setting sets the framerate (24fps in this case). The default SRestore is for 25fps. You shouldn't need to use ChangeFPS.
    how would one go about figuring out it was converted from 24 fps?
    That's a little bit tricky. I was having trouble at first myself. Even though I was pretty sure it was 24fps, I had to confirm that. I wound up putting on just the bobber, taking a sequence of 50 bobbed fields, and counting how many unique (non-blended and non-duplicate) frames in each 50 frame sequence there were. The answer was 24. There are other ways to figure it as well.
    Quote Quote  
  17. Member
    Join Date
    Oct 2008
    Location
    United States
    Search Comp PM
    well...doing that to figure it out is beyond my current ability, and I'm not really currently interesting in teaching myself how to do that process. I'm more than satisfied with the results from using srestore(24)...thanks again.
    Quote Quote  



Similar Threads

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