VideoHelp Forum




+ Reply to Thread
Results 1 to 12 of 12
  1. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    I am trying to use TempGaussMC_beta1mod to deinterlace a video in MeGUI just to see how it works. The input file is a 21 second, 1080 60i Lagarith RGB avi. I'm running the deinterlace and converting to x264 (dxva-hd-balanced).

    The problem is that in the first pass the MeGUI progress bar takes about 40 min to reach 100%, then the process keeps cranking away, with vfw4x264.exe taking 50% cpu (single threaded I assume). Over 13 hours later it's still going. Is this normal? If not what can I do? How can I get it to use both cores?

    Here's my avisynth script:
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\nnedi2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RepairSSE3.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-25.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-26.dll")
    AVISource("E:\Canon\Project folder\tapes\Renders\Throwing rocks (RGB).avi", audio=true)
    ConvertToYV12(matrix="Rec709")
    tempgaussmc_beta1u(1,1,0,0,0,0,edimode="--",SVthin=0.0,pelsearch=1) # 6.1 fps

    (I got the last line from a forum post by Didee, for relatively fast processing)
    Quote Quote  
  2. Hint: when using slow filters with 2pass encodes , encode to a lossless intermediate using those filters and use that as the input to the encoder. This way you only have to endure the slow filter once, instead of twice (once for 1st pass, once for 2nd pass)

    not sure what beta1u is, but the beta1mod is partly multithreaded. Regardless, most of the filter is still single threaded so don't expect cpu usage to be much better. There is a beta2 as well, but the only significant improvement is adding a lossless mode which isn't very useful IMO (you get jaggies)

    also when you use converttoyv12() it should be interlaced=true
    ConvertToYV12(matrix="Rec709", interlaced=true)

    also did you try a normal encode (no filters) , to make sure your system, or megui ,or filters, or x264.exe version are setup correctly? ie. can you complete a normal encode?
    Quote Quote  
  3. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    I've rendered it using yadif correctly, didn't take long. I've read about making an intermediate lossless video, but I can't figure out how to output the video. Can you help me with that?

    Thanks for the tip on ConvertToTV12(). I haven't done much reading on avisynth scripting.

    beta1u is the function call in beta1mod. I'm assuming that tempgaussmc will take a while, but half a day for a 21 sec video seems a bit extreme, especially since MeGUI has report that encoding had finished, accords to the progress indicator (all 1380 frames).

    I'm trying to output the bobbed video (60p) first just to see what it looks like, and then try the 30p version. I figure I'll use tempgaussmc for videos that really matter, and yadif for everything else. I'm just trying to learn how to do it.
    Quote Quote  
  4. In a 2-pass encode both passes should take about the same amount of time. The first pass at 41 minutes was probably right. The second pass is hung up. You'll have to try again.
    Quote Quote  
  5. Originally Posted by jagabo View Post
    In a 2-pass encode both passes should take about the same amount of time. The first pass at 41 minutes was probably right. The second pass is hung up. You'll have to try again.

    In x264, the default settings are a fast analysis 1st pass (many of the options are disabled) , so 1st pass is faster than the actual encoding pass (unless you specifically specify --slow-firstpass), but it shouldn't be taking that long, and I agree it seems like 2nd pass is stalled . Perhaps you are overheating? Check your temps and do some system stability tests



    I've read about making an intermediate lossless video, but I can't figure out how to output the video. Can you help me with that?
    In vdub you would encode your input lagarith video , using the same deinterlacing script plus whatever filters , to lagarith again. The export from vdub is a deinterlaced lagarith video that you use to import into megui. That new script will just be AVISource() , because the filters have already been applied. In vdub, use video=>fast recompress to avoid additional colorspace conversion, and do all the filtering in the avs script.
    Last edited by poisondeathray; 13th Mar 2010 at 17:29.
    Quote Quote  
  6. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    Okay I feel like an idiot. I loaded my Avisynth script in VirtualDubMod, and then selected "Save As" Lagarith, Fast Recompress. It took about 2 minutes and the output is still interlaced. Am I missing something?

    By the way, the "endless render" was all in the first pass... it never got to the 2nd pass after 13 hours of pegged CPU and saying "100% completed" after 40 min. Was it probably because the ConvertToYV12() didn't have the interlaced=true setting?

    I'm re-running the tgmc render with selecteven() and the interlaced=true. As well as a yadif pass just to have something to compare it to. Is there a way to get tgmc to render with multiple threads? Or to use the GPU?
    Quote Quote  
  7. Is there a way to get tgmc to render with multiple threads? Or to use the GPU?
    This is what I was trying to explain earlier. Only portions of it are multithreaded. beta1mod has MT=true by default, I'm not sure about the version you are using - you may have to specify it manually.

    Didee has explained extensively why in a doom9 thread if you want to know the nitty gritty as to why parts of it can't be multithreaded.

    No GPU support.

    loaded my Avisynth script in VirtualDubMod, and then selected "Save As" Lagarith, Fast Recompress. It took about 2 minutes and the output is still interlaced. Am I missing something?
    What script ? It should be the same one as your 1st post, with interlaced=true

    Your new script , for import into megui would be
    AVISource("export_from_vdub.avi")

    and it should already have all the filters, converted to yv12, deinterlaced with tgmc
    Last edited by poisondeathray; 13th Mar 2010 at 17:44.
    Quote Quote  
  8. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    Yes, I loaded the same script in the vdubmod script editor and hit Save and Refresh. Then I go back to the vdubmod window and hit Save... as Lagarith YV12, Fast Recompress. It takes 2 minutes to save the file and it's still interlaced. Do I need to add something to my avisynth script to make it output the processed (deinterlaced) video? I've tried Googling this issue and can't seem to find a relevant article. Sorry for basically asking for spoonfeeding.

    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\nnedi2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mvtools2.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RemoveGrainSSE3.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\RepairSSE3.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-25.dll")
    LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\mt_masktools-26.dll")
    AVISource("E:\Canon\Project folder\tapes\Renders\Throwing rocks (RGB).avi", audio=true)
    ConvertToYV12(matrix="Rec709", interlaced=true)
    tempgaussmc_beta1u(1,1,0,0,0,0,edimode="--",SVthin=0.0,pelsearch=1).SelectEven()

    As for the 2nd tgmc try in MeGUI, it hit 100% complete at about 25 min and it's still working on the first pass. I'm using the script above.
    Last edited by crooper; 13th Mar 2010 at 18:15. Reason: fixed "not interlaced" typo
    Quote Quote  
  9. Originally Posted by crooper View Post
    Yes, I loaded the same script in the vdubmod script editor and hit Save and Refresh. Then I go back to the vdubmod window and hit Save... as Lagarith YV12, Fast Recompress. It takes 2 minutes to save the file and it's not interlaced.
    NOT interlaced? Isn't that the whole point? That's what the script is doing i.e deinterlacing

    Do I need to add something to my avisynth script to make it output the interlaced video?
    You completely lost me. I though you wanted to DEinterlace it? Why are you using TGMC? What are you trying to do?
    Quote Quote  
  10. In VirtualDubMod just open the AVS script as if it was an AVI file. File -> Open Video File, select .AVS.
    Quote Quote  
  11. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    Sorry, typo, it was not DEinterlaced.

    Thanks jagabo, I didn't know that avs was considered an input video. It appears to be working.
    Last edited by crooper; 13th Mar 2010 at 18:25.
    Quote Quote  
  12. Member
    Join Date
    Mar 2010
    Location
    Seattle
    Search Comp PM
    Okay I got the video to deinterlace with TempGaussMC in VirtualDubMod, took about 25 minutes, and then converted to x264 in MeGUI. Looks great! Thanks for your help!
    Quote Quote  



Similar Threads

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