digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: DCTFilter? (http://www.digitalfaq.com/archives/encode/11712-kvcd-dctfilter.html)

nicksteel 08-23-2004 12:04 PM

DCTFilter?
 
I'm trying to make a 528x480 MPEG2 of a PVR-250 TV capture (720x480).

Using KVCDx3-MPEG-2-NTSCFilm.mcf
Trimming the bottom of the screen by 100 pixels to cut logo trash.
Sizing to 720x380 with use of clip in TMPGEnc.
Entering the 720x380 into Moviestacker with 3/4 DVD small and using output avs lines.
Will center the screen with TMPGEnc.

:?: DCTFilter does not seem to be working. Which version should I be using for 2.5 avisynth?

mpeg2source("h:\scary\scary.d2v")

Telecide(order=1,guide=1,post=2,vthresh=25)
decimate()

BlindPP(cpu=4)
Deen("a2d",1,5,8) # giving a touch of spatial filtering
MergeChroma(Blur(1.5))
MergeLuma(Blur(0.1)) # also very good to give Tempsoften afterwards less to handle!

##GripCrop(528, 480,overscan=1,source_anamorphic=false)
##GripSize(resizer="BicubicResize") # In case of DVD as the Source is sharp and detailed enough and this will also rise the CQ

BicubicResize(528, 382, 0, 0.6, 12, 2, 696, 376)

TemporalSoften(1,5,8,3,2) # Light Temporal Soften in case of less noisy source
Undot() # Undot behind TempSoften to kill a bit the "static" dots in surfaces produced during the temporal soften process
#Blockbuster(method="noise",detail_min=1,detail_ma x=3,variance=0.1,seed=1) # also activate on DVD source encodings when encoding movies containing big fading surfaces like underwatermovies etc. to avoid edges & blocks in surfaces as known from Jellygoose's experience last week

DCTFilter(1,1,1,1,1,1,0.5,0)

##GripBorders()

AddBorders(0, 49, 0, 49)
LetterBox(16, 16, 16, 16)

Boulder 08-24-2004 01:36 AM

How can you tell it doesn't work, does it give an error message?

incredible 08-24-2004 05:34 AM

Re: DCTFilter?
 
Quote:

Originally Posted by nicksteel
I'm trying to make a 528x480 MPEG2 of a PVR-250 TV capture (720x480).

Using KVCDx3-MPEG-2-NTSCFilm.mcf
Trimming the bottom of the screen by 100 pixels to cut logo trash.
Sizing to 720x380 with use of clip in TMPGEnc.

??? Resizing/cutting in TmpgEnc?? I do aussume you mean DVD2AVI, but anyway do your COMPLETE resizing in Avisynth as you finally use avisynth to do the image postprocessing! So open the Vob/mpeg in VirtualdubMpeg2 and determine the croppings which will be overtaken to Moviestacker settings.

Related to your script.....
Better you use this one:

Code:

mpeg2source("h:\scary\scary.d2v",CPU=6,iPP=true)
Telecide(order=1,guide=1,post=2,vthresh=25)
decimate()
undot()
Deen("a2d",1,5,8) 
BicubicResize(528, 382, 0, 0.6, 12, 2, 696, 376)
TemporalSoften(1,5,8,3,2) # Light Temporal Soften in case of less noisy source
DCTFilter(1,1,1,1,1,1,0.5,0)
AddBorders(0, 49, 0, 49)
LetterBox(16, 16, 16, 16)

You do go in with an mpeg2source command and that one INCLUDES postprocessing! Means the internal Postprocessors source Quantizer Q detection in THIS case is better done via CPU=4 and as you deal with a telecined source you do add iPP=true. In the sample above I did choose CPU=6 as you used as blurrer anyway a MergeLuma/Chroma Blur. These one do just blur but CPU=6 besides a bit blurring does eliminate rings - depending of IF its really needed, if not then stuck with CPU=4.

DONT put postprocessors (BlindPP) after IVTC as the stream is encoded in telecined state and you EVERYtime should let postprocessors do thier job on the untouched original Stream.
It has been tested that the combination of Undot() before Deen gives better results as undot() neets an unfiltered source to catch the dots/rings in the source.

I dont know your source quality, but in most cases a simple configured RemoveDirt(...) from Kassandro at Doom9 does the job on nice DVD source qualities VERY well and its fast. Because a spatial Softener like Deen in a2d Mode does treat the detailed Image significantly so that one should be better used for captures.

Related to DCTFilter, .... do as said by Boulder: We need the actual error message!

incredible 08-24-2004 05:52 AM

Im not shure but Haupauge Devices in combo with their drivers are known not to produce 720 ITU compilant streams (IMHO), so do check if that 720px width capture DOES include black borders on the sides, if not then at least dont check in FitCD/Moviestacker the ITU box!!

IF the PVR250 gots a CX23881 chip then the active capt window/area is 51.56µs. So you should at least capture at 704x480 wich results in a minimal error (as CX23881 chips do got a 696px act. pix area.)

So do check that!

nicksteel 08-24-2004 06:30 AM

There is no error message when loading into TMPGEnc, but the the TMPGEnc message at bottom of screen is:

MPEG-2 576x56 24fps CQ 60

and, of course, no screen is present in TMPGEnc preview.

When I # only the DCTFilter line, the avs loads correctly.

This is a NTSC PVR-250 TV capture at 720x480 MPEG2 12.0MBit/sec (CBR). I use TMPGEnc clip only to determine the desired trimmed size values for entering into Moviestacker.

Incredible, I'll try with your above script today.

Thanks, Guys. :D

jorel 08-24-2004 06:33 AM

nicksteel,
maybe it's not your case but deserve more atention...i had problems using DCTFilter in dvd sources..never used with tv captures but if with clean sources (dvds) had problems,then with captures will have too,...take a look:
http://www.kvcd.net/forum/viewtopic.php?t=10030

Boulder 08-24-2004 06:34 AM

Open the script in VDub or WMP, there should be an error message.

Dialhot 08-25-2004 03:57 AM

Quote:

Originally Posted by nicksteel
There is no error message when loading into TMPGEnc, but the the TMPGEnc message at bottom of screen is:

MPEG-2 576x56 24fps CQ 60

Any time you see a reso with ...x56 then you HAVE an error !

56 is the height of the font used by avisynth to display the error message :-)


All times are GMT -5. The time now is 08:19 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2026 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2026 Jelsoft Enterprises Ltd.