|
|
| Slabak |
| Posted: Sep 21 2002, 09:22 PM |
 |
|
Unregistered

|
Hi,
TV broadcast has good signal, but there are always possibilities to enhance it's captured recordings.
Let's say I need to capture TV broadcast in 720*756 @ 25 fps (PAL) using PICVideo MJPEG codec with these settings: quality 19, subsampling 4/2/2, two fields if more than 288 lines of course and let's say I have a satisfying TV signal. I suppose this type of capture doesn't need so heavy optimizations as VHS but I just want to ask you guys (and girls?) who have more experience with applying suitable filters.
So, any recommendations? |
 |
| fccHandler |
| Posted: Sep 21 2002, 10:42 PM |
 |
|
Administrator n00b
  
Group: Moderators
Posts: 3961
Member No.: 280
Joined: 13-September 02

|
I try to avoid using any filters if I've captured a live broadcast (if it ain't broke, don't fix it). But if I was going to use a filter, I'd use Jim Casaburi's Temporal Cleaner. Another great filter is Donald Graft's Hue/Saturation/Intensity. Everyone should get those filters.
-------------------- May the FOURCC be with you... |
 |
| Fredd |
| Posted: Sep 23 2002, 09:18 AM |
 |
|
Unregistered

|
First of all, your eyes will judge, but I think noise removal is more suitable when capturing in low res.
When I have time, I use flaXen's VHS filter. To my eyes, its stabilizer produces less artifacts than other temporal cleaners (I sometimes have a kind of motion blur). But it's slooow.
On a noisy VHS (red and blue spots), I began by lowering the colours while capturing, or lower saturation with Donald Graft's Hue/Saturation/ Intensity. Then I used a cleaning filter.
Another combination is a temporal cleaner with a 2D cleaner. But it tends to remove too much details, and character skin may look unnatural.
I essentially do VCD files so I sometimes rely on the MPEG encoder own filter, which can also produces good results. Many test are required to find the better solution... |
 |
| Ingolf |
| Posted: Oct 24 2002, 12:20 AM |
 |
|
Unregistered

|
I have tried tons of noise removal filters, and IMHO i think that Jim Casaburi's Temporal Cleaner is the best. It does require more processing time, but the end result is well worth it. And then again, you only have to do it once.
I have constructed a filter chain, which you can reproduce, by opening notepad, and paste the following text into it:
| CODE | VirtualDub.audio.SetSource(1); VirtualDub.audio.SetMode(0); VirtualDub.audio.SetInterleave(1,500,1,0,0); VirtualDub.audio.SetClipMode(1,1); VirtualDub.audio.SetConversion(0,0,0,0,0); VirtualDub.audio.SetVolume(); VirtualDub.audio.SetCompression(); VirtualDub.video.SetDepth(24,24); VirtualDub.video.SetMode(3); VirtualDub.video.SetFrameRate(0,1); VirtualDub.video.SetIVTC(0,0,-1,0); VirtualDub.video.SetRange(0,0); VirtualDub.video.SetCompression(); VirtualDub.video.filters.Clear(); VirtualDub.video.filters.Add("null transform"); VirtualDub.video.filters.instance[0].SetClipping(2,2,2,14); VirtualDub.video.filters.Add("rmPal"); VirtualDub.video.filters.Add("chroma noise reduction (1.1)"); VirtualDub.video.filters.instance[2].Config(1, 192, 35, 0, 256, 47, 0, 256, 47, 0); VirtualDub.video.filters.Add("temporal cleaner"); VirtualDub.video.filters.instance[3].Config(8, 4, 8, 4, 30, 1, 1); VirtualDub.video.filters.Add("smart deinterlace (2.7 beta 2)"); VirtualDub.video.filters.instance[4].Config(0, 0, 15, 100, 0, 0, 0, 0, 1, 2, 0, 1); VirtualDub.video.filters.Add("resize"); VirtualDub.video.filters.instance[5].Config(640,480,2); VirtualDub.subset.Delete();
|
Save the file, as an .VCF file, and open it in vdub, using "File"->"Load Processing settings" I'll briefly explain how i get the best result.
For the grab, i never use filters. I use the software called IuVcr, but you can use your favorite program to capture the video.
For the grab, i use the picvideo codec, set to compression 18 or better, and the usual "2 fields if more than 288 lines" set. The capture resultion is set to 768x576 25 fps. The maximum resulution i can get from my ATI tv wonder card.
Ok.. now i got a video clip that needs to be cleaned. There is no need to keep the video in the huge resolution 768x576, but rather 640x480. The extra capture was done to have more original data to work with, which in the end gives a better result. So i resize the video in the end, which you can see in the above code.
Ok.. The filters, explained in the order they should appear in vdub:
Null Transform I receive my tvsignal from cable, and on most channels the first 2 lines are partial black, or shows tracks of the broadcasting station internal counters. These are removed using the null transform filter. Always remove lines in both x and y axis maintaining aspect ratio. That means if you remove 2 lines in the Y axis, you should also remove 3 lines from the X axis. This will ensure a correct aspect ratio, when later resizing the video.
RmPal Accrding to the site: http://homepages.fh-giessen.de/~hg6423/rmP...to-english.html Corrects errors in line color caused by PAL technology's phase shifts. I have made a few tests, and it seems that the outputting video is exactly the same, but requires less bits to encode. Great
Chroma Noise Reducton This will remove small color changes, Site: http://freevcr.ifrance.com/freevcr/virtual...dub/cnr-en.html I simply use the default settings in this filter. Read about it at their site. This will like the RmPal filter produce much the same video, but requires less bits.
Temporal Cleaner Site: http://home.earthlink.net/~casaburi/download/
Removes noise on parts of the video that is not moving. I have set it to the following settings: (Those not mentioned, use default) Luminance thresold - thresold for blending: 8 Luminance thresold - thresold for pixel lock: 4 Chrominance thresold - thresold for blending: 8 Chrominance thresold - thresold for pixel lock: 4
Check the Process in YUV colorspace and check Enable luminance locking mode. DivX just loves these 100% non moving parts.
This will produce very sharp still images, and leave motion intact. There will be a very small ghosting artifact, but this will almost disappear when the final video is resized.
Smart De-Interlace v2.7 beta 2 Site: http://home.earthlink.net/~casaburi/download/
High quality deinterlacer and very fast. Just compare it with Deinterlace area based v1.3. It produces about the same results, but this is much faster. If you are in a hurry. you could use the Field Bob filter, set to (smooth/smooth). But it throws alot of data away so use this faster smart deinterlacer. Offcourse if you never grab video with more than 288 lines in the Y axis, you dont need this filter at all.
Resize Finally, resize the video to the size you want. I generally go for 640x480, which any 600mhz commputer can show smoothly in best divx setting. My computer have problems showing divx vide in 768x576 smoothly, and its total overkill, when the resulting size should be around 700mb. AFAIK 384x288 is VHS quality. The resizing will in the best case remove any small artifacts from the temporal cleaner, if any.
I always use 3 passes for compressing the movies.
The first pass is only for cleaning and prepare the video for the final divx 2-pass encoding. Otherwise vdub have to go thru the same filter chain twice when making 2-pass encodings. Please correct me if im wrong. I have take time on this, and it appears that the 3-pass way is the fastest,
This first pass i save in a quick superhigh quality again, like divx(cbr; 15000 kbit/s setting or picvideo(setting 18).
When this pass is done i do the standard 2 pass operation to make the movie fit on 1 cd, without any filters.
|
 |
| muf |
| Posted: Oct 27 2002, 10:14 AM |
 |
|
MCF team member
  
Group: Moderators
Posts: 179
Member No.: 46
Joined: 21-July 02

|
Your threepass is nice and quick, but try encoding lossless. The way you do it now decreases quality.
http://math.berkeley.edu/~benrg/huffyuv.html
Probably faster too, since huffyuv takes a lot less CPU than DivX.
Another hint, try XviD instead of DivX for your last two passes.
--------------------
 |
 |
| Ingolf |
| Posted: Oct 27 2002, 04:58 PM |
 |
|
Unregistered

|
| QUOTE | | Your threepass is nice and quick, but try encoding lossless. The way you do it now decreases quality. |
You are right. Generally i use picvideo setting 18.
I have tried using xvid, but i am having trouble with playing some files. It appears that some of the screen is 'greenish'. Hope it makes sense. And i just downloaded the latest version, but its still 'grennish'. If i open the file in vdub, and watch it here, then it does not have the greenish trouble.
I use bsplayer v0.85 for videoplayback.
Btw.. i also tried the huffyuv you suggested, but it seems to me its the same as picvideo codec setting 20? Anyways.. i cant play the files i've capture in bsplayer, withy the huffyuv codec. .. but they show up ok, in vdub. Maybe i should change to another player.. but which?
Winxp sp1. Using iuvcr v4.0.0.227 for capture.
|
 |
| Morsa |
| Posted: Oct 27 2002, 06:51 PM |
 |
|
Moderator of the Vdub support board
  
Group: Moderators
Posts: 640
Member No.: 246
Joined: 9-September 02

|
Try using ffdshow!! It is a directshow filter that lets you play Xvid ,Divx with subtitles under WinMediaPlayer. By the way Huffyuv is really lossless if you use it in RGB mode, compress ratio 2:1. If you use YUV mode, sometimes may be 3:1.
|
 |
| Stefan |
| Posted: Oct 28 2002, 03:07 PM |
 |
|
Advanced Member
  
Group: Vdubmod Alpha Testing Team
Posts: 215
Member No.: 142
Joined: 27-August 02

|
Cool thread with many helpful tips. Just one addition: Correct download URL: Smart Deinterlacer version 2.7 beta 2 (Donald Graft)
Stefan |
 |
| Ingolf |
| Posted: Oct 29 2002, 01:34 AM |
 |
|
Unregistered

|
| QUOTE | Cool thread with many helpful tips. Just one addition: Correct download URL: Smart Deinterlacer version 2.7 beta 2 (Donald Graft)
|
Whoops.. to much copy/paste there... thanks Stefan!
And i'll try out ffdshow
|
 |
|