PDA

View Full Version : analog capture processing guide


Wilbert
14th April 2003, 11:51
I finished my analog capture processing guide. You can find it here:
http://www.avisynth.org/index.php?page=ConvertingAnalogCaptures_to_XviD%2FSVCD

Comments, reactions , corrections, additions, etc., are welcome!

vidiot
14th April 2003, 12:24
Long anticipated - now itīs there!:)

Thankyou Wilbert for having it all in one document.

One guess though: SVCD is still in YUV2 colourspace (at least with the encoders I use) I have seen the little questionmark behind SVCD -
but maybe you know an encoder that I donīt know?

Harald

Awatef
14th April 2003, 12:35
AFAIK, VCD, SVCD, DVD & DivX, all are in YV12.

Valky
14th April 2003, 12:55
well, first I have to ask about this trim..if I want to remove advertises in the middle of movie that last 3000 frames. How could I do that? I know they start at frame 15000 and end at frame 18000 but if I use trim(14999,17999) I end up with movie that last only 3000 frames, right?

Also, havent you guys have had any problems with PicVideo mjpeg since this script or even plain avi doesn't work in avisynt at least when using RealMedia. It doesn't produce 700mb file it always stops at 518mb.

I have discussed it before at this thread:
http://forum.doom9.org/showthread.php?s=&postid=295029#post295029


video=AviSource("E:\capture\capture.avi", false)
audio = wavsource("E:\capture\capture.wav")
video=audiodub(video,audio)
video=ConvertToYV12(video)
#video=trim(video,102300,102900)
#video=Levels(video,0, 1.2, 255, 0, 255)
#video=TemporalSoften(video,3,4,4,mode=2,scenechange=10)
#video=AutoCrop(video,1,wMultOf=4, hMultOf=4)
video=cnr2(video)
video=crop(video,4,2,380,572)
video=bilinearresize(video,384,288)
video=Convolution3d(video,1,10,20,10,10,0,0)
video=ConvertToYUY2(video)
return(video)


btw, in this script there is trim function but it also produce me an exmaple clip between those frames..

Wilbert
14th April 2003, 13:18
One guess though: SVCD is still in YUV2 colourspace (at least with the encoders I use) I have seen the little questionmark behind SVCD - but maybe you know an encoder that I donīt know?
Like Awatef said SVCD in YV12. The questionmark behind SVCD doesn't mean anything (Wiki stuff for making links), I removed it.

if I want to remove advertises in the middle of movie that last 3000 frames. How could I do that? I know they start at frame 15000 and end at frame 18000 but if I use trim(14999,17999) I end up with movie that last only 3000 frames, right?
clip=AviSource(...)
return trim(clip,0,14999)+trim(clip,18000,framecount(clip)-1)

Also, havent you guys have had any problems with PicVideo mjpeg since this script or even plain avi doesn't work in avisynt at least when using RealMedia.
I don't know about RealMedia. Can you open your avs script in Virtualdub?

kaitsuburi
14th April 2003, 15:29
@Wilbert

Thank you for the capture guide! It is very thorough and informative.

I had one small question though. In your resulting sample script, all noise filtering is done before letterbox & cropping. Wouldn't the 16 lines of garbage on the bottom interfere with the noise filters? I am ignorant about this, but most other guides/suggestions I have read put noise filtering after crop and before resize (with IVTC/deinterlace usually going before crop). Is there any particular reason for your choice?

-kaitsuburi

Wilbert
14th April 2003, 15:48
Wouldn't the 16 lines of garbage on the bottom interfere with the noise filters?
Yes, in general it's probably better to do it before denoising. I will change that, thx.

sh0dan
14th April 2003, 17:09
Very good work!! Let's hope we get a way to get images up there soon!

Minor stuff:

ColorYUV(off_y=-28, gain_y=64)
Tweak(sat=0.8)
Limiter()


can be compacted into:

ColorYUV(off_y=-28, gain_y=64, cont_u=-50, cont_v=-50, opt="coring")

cont_u, cont_v is calculated: - (0.2* 256.0) (compare it to "subtract 20%")
opt="coring" is the same as "Limiter()".

Personally I would convert to yv12 as soon as possible in the script - but that's a rather personal opinion.

Valky
14th April 2003, 22:32
Originally posted by Wilbert
Like Awatef said SVCD in YV12. The questionmark behind SVCD doesn't mean anything (Wiki stuff for making links), I removed it.


clip=AviSource(...)
return trim(clip,0,14999)+trim(clip,18000,framecount(clip)-1)


I don't know about RealMedia. Can you open your avs script in Virtualdub?

Yes, I can..and I can encode testclips from the same clip using trim-option. Is this PicVideo avisynth 2.5x related or RealMedia encoder?

jorel
15th April 2003, 08:31
thank you very much Wilbert

for this complete capture guide.

Richard Berg
15th April 2003, 10:33
@Wilbert, or anyone in the Avisynth community really: if you want an account on the avisynth.org server (e.g. to host images), send me email.

Wilbert
15th April 2003, 10:50
@Sh0dan,

Thanks, I will change it.

I guess the contrast is determined in the same way, ie

cont_y = - ((1-contrast)* 256.0) # contrast from the Tweak filter

I guess

off_y = brightness # brightness from the Tweak filter

What about hue? Is that related to off_u and off_v?

@Valky,
Yes, I can..and I can encode testclips from the same clip using trim-option. Is this PicVideo avisynth 2.5x related or RealMedia encoder?
Sorry I can't help you with that.

sh0dan
15th April 2003, 12:00
@Wilbert: I don' know if there is a way to translate hue - but I have yet to find a clip where it is actually useful. You have much more control over the color settings, when using off_u and off_v.

I could add the parameters from Tweak to ColorYUV, and make automatic "translation" of saturation, contrast and brightness, so that the same parameters from tweak can be used in ColorYUV. I guess that would make it much easier to use for entry users.

Wilbert
15th April 2003, 12:03
I could add the parameters from Tweak to ColorYUV, and make automatic "translation" of saturation, contrast and brightness, so that the same parameters from tweak can be used in ColorYUV. I guess that would make it much easier to use for entry users.
That would be great! (If you don't I will add the "translations" to the docs.)