PDA

View Full Version : Encoding is slow?


Aladar
18th September 2007, 13:19
Hi, I just wanted to ask - I'm totally new to video encoding (well, I did some DVD Rips with AGKnot before, but i dont think that counts..), and I wanted to try it, so I searched for some tutorials, and tried to re-encode 25 minute anime episode that I captured (and improve it) with this script:

Avisource("*my video*")
LanczosResize(848,480)
AssumeFPS("ntsc_film")
BlindPP(cpu=6, quant=10)
Undot()
LimitedSharpenFaster()

now, I want to encode it Two-pass, but the problem is that even first pass takes 9 hours (4 with huffyuv) to encode. I'm on Athlon 2000+, so I think the processor should be faster..

I'm using this tutorial: http://www.animemusicvideos.org/guides/avtechbeta/xvid.html with VirtualDubMod 1.5.10.2 (build 2540) and XviD 1.1.3, if it matters..

Thanks for all help.

microcosmos
20th September 2007, 15:49
to speed up things:
- use the turbo mode on xvid first pass
- put xvid VHQ option on 1
- decrease supersampling on limitedsharpenfaster and decrease strength... something like "limitedsharpenfaster(ss_x=1,ss_y=1,strength=40)" (or not use it at all). limitedsharpenfaster is nice on video that is clean and could use a bit of sharpening but it also increases the artifacts if they are present in the source. It's also a bit slow
- removegrain(1) is similar(same?) but faster than undot()

other comments:
I think blindpp should come before you resize(faster too) and unless the source is very very heavily compressed, use a lower quant parameter to preserve detail

J_Darnley
21st September 2007, 21:18
The BlindPP should definitely come before the resize or block edges won't be where they should be and It won't work like it should, if at all. The docs for DGDecode say this, it should be mentioned in the other MPEG 2 source filters but isn't.

The speed difference between Undot and RemoveGrain is only present for the SSE2 version. If your CPU has SSE2 extensions feel free to use for some speed boost.

Most of your speed will be lost on the LSF step. Only use it if you are doing a high bitrate encode or it will hurt the quality.

Some other tips would be to drop the VHQ option down and perhaps the motion search precision down to 5. You could also use the Turbo option of the first pass and also lose the full first pass option.

But encoding will be quite slow with that processor of yours but it doesn't have to take 9 hrs for a 25 min video.