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)
+ Reply to Thread
Results 1 to 12 of 12
-
-
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? -
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. -
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?
Last edited by poisondeathray; 13th Mar 2010 at 17:29.
-
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? -
Is there a way to get tgmc to render with multiple threads? Or to use the GPU?
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?
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 tgmcLast edited by poisondeathray; 13th Mar 2010 at 17:44.
-
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
-
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? -
In VirtualDubMod just open the AVS script as if it was an AVI file. File -> Open Video File, select .AVS.
-
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.
-
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!
Similar Threads
-
Rendering to x264, Color Change
By Mator in forum EditingReplies: 4Last Post: 28th Mar 2012, 10:25 -
Deinterlacing with TempGaussMC
By Gr0mk1 in forum Newbie / General discussionsReplies: 4Last Post: 21st Nov 2010, 02:41 -
Vegas rendering to x264 - first 1-2 second missing
By shun in forum EditingReplies: 2Last Post: 22nd Jul 2010, 06:14 -
Deinterlacing and TempGaussMC
By Tahlos in forum Video ConversionReplies: 7Last Post: 21st Jun 2010, 15:07 -
Playing x264 with hardware rendering
By oshmosh in forum Newbie / General discussionsReplies: 11Last Post: 8th Jan 2010, 14:36