DivX encoding - 2 questions

Locked
zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

DivX encoding - 2 questions

Post by zapb42 » Sat Sep 11, 2004 4:42 pm

First, I'd like to say that the guides were tremendously helpful in understanding about digital video.

I am encoding from an episode of one of my DVD's. I am using the following avs script:

Code: Select all

mpeg2source("D:\EVANGELION_VOL_1_PLATINUM\ep1\ep1.d2v",ipp=true,cpu=4)
Crop(6,4,-6,-2)
ConvertToYV12()
telecide(order=1,post=2,blend=false,vthresh=30,back=1)
decimate(cycle=5,mode=2,quality=3)
deen("a3d",4,10,12)
VobSub("D:\EVANGELION_VOL_1_PLATINUM\ep1\vts_01_0")
mftoon()
ColorYUV(gain_u=15)
LanczosResize(640,480)
I have noticed in virtualdubmod that sometimes green or other color edges appear at the edges of the frame. Am I overdoing it on one of the filters or something?

My other question is that in the DivX portion of the guide, the screenshot shows encoding the first pass at 15fps or so, and there is a remark that this is slower than usual or something. I can hardly get 1fps...yep just 1, and my computer is not all that slow or anything...2.0ghz P4...not the greatest but I have encoded in the past using different techniques and it went much faster.

Any assistance would be greatly appreciated, thanks!

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sat Sep 11, 2004 4:45 pm

apparently can't edit the post...

I meant to say in there, and in the title, that I am using XviD to encode, not divx. Sorry.

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: DivX encoding - 2 questions

Post by Qyot27 » Sat Sep 11, 2004 4:53 pm

zapb42 wrote:First, I'd like to say that the guides were tremendously helpful in understanding about digital video.

I am encoding from an episode of one of my DVD's. I am using the following avs script:

Code: Select all

mpeg2source("D:\EVANGELION_VOL_1_PLATINUM\ep1\ep1.d2v",ipp=true,cpu=4)
Crop(6,4,-6,-2)
ConvertToYV12()
telecide(order=1,post=2,blend=false,vthresh=30,back=1)
decimate(cycle=5,mode=2,quality=3)
deen("a3d",4,10,12)
VobSub("D:\EVANGELION_VOL_1_PLATINUM\ep1\vts_01_0")
mftoon()
ColorYUV(gain_u=15)
LanczosResize(640,480)
I have noticed in virtualdubmod that sometimes green or other color edges appear at the edges of the frame. Am I overdoing it on one of the filters or something?

My other question is that in the DivX portion of the guide, the screenshot shows encoding the first pass at 15fps or so, and there is a remark that this is slower than usual or something. I can hardly get 1fps...yep just 1, and my computer is not all that slow or anything...2.0ghz P4...not the greatest but I have encoded in the past using different techniques and it went much faster.

Any assistance would be greatly appreciated, thanks!
Well, just by skimming over the script it looks like it's the script used to clean up the Utena footage in the beta guide. You might try to reduce the amounts or maybe eliminate a couple filters because you're working with a much higher quality source. I can't really suggest which ones to lessen the strength or drop completely, since I don't really use AVISynth to do a lot of pre-processing (or post-processing, either). Just play around the the script a little is all I can really suggest, but make sure you have an extra copy of your original script on hand just in case there's a bigger problem that arises.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sat Sep 11, 2004 5:07 pm

Not knowing exactly where to start, some of the settings in there are the same as were used in the guide. I do understand what each step does, though, having worked with avisynth before but with different filters.

That said, I'll continue to play around with settings...might even skip the mftoon filter, seeing as how the source is very good.

Thanks for the suggestions.

User avatar
Scintilla
(for EXTREME)
Joined: Mon Mar 31, 2003 8:47 pm
Status: Quo
Location: New Jersey
Contact:
Org Profile

Re: DivX encoding - 2 questions

Post by Scintilla » Sat Sep 11, 2004 5:14 pm

zapb42 wrote:

Code: Select all

mpeg2source("D:\EVANGELION_VOL_1_PLATINUM\ep1\ep1.d2v",ipp=true,cpu=4)
Crop(6,4,-6,-2)
ConvertToYV12()
telecide(order=1,post=2,blend=false,vthresh=30,back=1)
decimate(cycle=5,mode=2,quality=3)
deen("a3d",4,10,12)
VobSub("D:\EVANGELION_VOL_1_PLATINUM\ep1\vts_01_0")
mftoon()
ColorYUV(gain_u=15)
LanczosResize(640,480)
You should probably change the Crop(6,4,-6,-2) to <b>Crop(6,4,-6,-4)</b> so that both dimensions remain multiples of 4. This may be what's causing the bad edges. (I'm just guessing.)
zapb42 wrote:My other question is that in the DivX portion of the guide, the screenshot shows encoding the first pass at 15fps or so, and there is a remark that this is slower than usual or something. I can hardly get 1fps...yep just 1, and my computer is not all that slow or anything...2.0ghz P4...not the greatest but I have encoded in the past using different techniques and it went much faster.
I've never used VobSub(), but I know that mftoon() kills processing speed. You might want to try kmftoon() -- it can be found in the MaskTools .ZIP archive (it's another script). It's supposed to give the same results as mftoon(), but faster. The version I have screws up the brightness if you adjust the strength parameter, but since you're using full strength, it should work fine.
ImageImage
:pizza: :pizza: Image :pizza: :pizza:

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sat Sep 11, 2004 6:38 pm

I changed the crop values, and it seems to have fixed that issue. Thanks for noticing that.

I also found the k-mftoon.avs script and used it. Comparing the same frame using it and mftoon, I can see a difference, but nothing huge. I can't decide which looks better, actually, they just look different. As for processing time, this definitely helped out as I am up to 2fps. Nothing to write home about, but itll take like half as long, which is great.

Thanks a lot for the tip!

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sun Sep 12, 2004 2:03 pm

Ooops, sorry, actually the green borders (at left and right edges of frame) are still there. It seems to be the mftoon/kmftoon script that is doing it, after I played with the script to see which function might be doing it. Does anyone know why this is happening?

I guess I could try cropping AFTER I do all the filters, at the expense of encoding time...thats the only idea I have and it doesn't really solve the problem.

User avatar
AbsoluteDestiny
Joined: Wed Aug 15, 2001 1:56 pm
Location: Oxford, UK
Contact:
Org Profile

Post by AbsoluteDestiny » Sun Sep 12, 2004 2:07 pm

ACK

That script is SO not what you want to do on the eva platinum footage.

The green is because you are applying filters on footage with frame sizes it cannot cope with. Crop later.

Oh and 1fps is normal when using mftoon and heavy scripts like this. In short the script you are using on the eva remaster footage is TOTAL overkill.

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sun Sep 12, 2004 5:04 pm

Gotcha, yeah I am still learning... Took a real good look at my script. After reading up on it, my best conclusion is that inversetelecine() will work just fine rather than telecide and decimate, and is much faster.

I also tried it without any mftoon() filtering, just the deen filter with reduced parameters and msharpen(), and it looks fine that way. I understand much better now how nice the source is. The guide made mftoon sound too great not to try out, but I see that it is not needed for this source.

I guess I saw the 12 fps that it was shown he was getting in the guide and assumed that was with all the filters he had talked about. Now I am up to 6-7 which is a vast improvement, and will not long at all.

If you happen to have any other suggestions, I welcome them, otherwise I greatly appreciate the help I received in doing this.

zapb42
Joined: Sat Sep 11, 2004 4:29 pm
Org Profile

Post by zapb42 » Sun Sep 12, 2004 5:06 pm

sorry, not inversetelecine(). fielddeinterlace()

Locked

Return to “Video & Audio Help”