View Full Version : avisynth script, anyway to decrease the encoding time yet keep good quality?
uncertainty
19th April 2007, 22:18
Recently I have started to encode my ts collection using megui and x264. 1280x720p encodes normally average around 30+ fps for the 1st pass on my E6400. It seems the 1920x1080i take forever and average around 3-4fps for the 1st pass. I know the higher resolution and the deinterlacing should increase the encoding time but I did not know it would be a factor of 10x slower compared to 720p.
Could someone look at my enclosed avisynth script and let me know what I could do to speed it up yet keep decent quality.. BTW the avisynth was created automatically by megui with analyzing the file.
thanks
DGDecode_mpeg2source("G:\Hd-mpeg\planet earth1-hd.d2v")
edeintted = AssumeTFF().SeparateFields().SelectEven().EEDI2(field=-1)
tdeintted = TDeint(edeint=edeintted,order=1)
tfm(order=1,clip2=tdeintted).tdecimate(hybrid=3)
#crop
BilinearResize(1280,720) # Bilinear (Soft)
Blue_MiSfit
20th April 2007, 00:55
Running TDeint with EEDI2 is very slow. I'm not familiar with combining TDeint, EEDI2, and TFM, but it's probably using TFM/TDecimate to perform inverse telecine, and Tdeint with EEDI2 to clean up residual interlacing.
What is the source? You said 1080i, but have you examined it manually, to look for pulldown cadence patterns?
It may be possible to simply do TFM().TDecimate() and then a YourFavoriteResize(1280,720)...
BTW, I really don't like Bilinear. I would think that Spline would be a better choice for downsizing 1080 to 720, as it would sharpen a bit, but to each his own :)
Maybe you can upload a sample of your TS?
Thanks
~MiSfit
~MiSfit
uncertainty
20th April 2007, 01:14
Running TDeint with EEDI2 is very slow. I'm not familiar with combining TDeint, EEDI2, and TFM, but it's probably using TFM/TDecimate to perform inverse telecine, and Tdeint with EEDI2 to clean up residual interlacing.
What is the source? You said 1080i, but have you examined it manually, to look for pulldown cadence patterns?
It may be possible to simply do TFM().TDecimate() and then a YourFavoriteResize(1280,720)...
BTW, I really don't like Bilinear. I would think that Spline would be a better choice for downsizing 1080 to 720, as it would sharpen a bit, but to each his own :)
Maybe you can upload a sample of your TS?
Thanks
~MiSfit
~MiSfit
I did try TFM().TDecimate() first and had decent fps (10 or so) but it caused the images to skip when being viewed. The source is part 1 of Planet Earth from Discovery HD. Megui analyzes the source as Hybrid/Film interlaced, mostly interlaced. I'll try to cut a portion of the ts and upload it to a server if you still need to check it....
thanks again
Blue_MiSfit
20th April 2007, 03:46
No problem.. Hybrid stuff is a total bitch to deinterlace properly...
Good luck :D
jolson
20th April 2007, 08:07
If you actually want what you are asking for in the thread headline - to *decrease* encoding speed - I have to say that "that's easy"... :D
uncertainty
20th April 2007, 13:59
If you actually want what you are asking for in the thread headline - to *decrease* encoding speed - I have to say that "that's easy"... :D
True, meant decrease the time...lol
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.