Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
3rd April 2005, 19:53 | #1 | Link |
Registered User
Join Date: Feb 2002
Posts: 85
|
How to remove diagonal bars in video?
Hi,
I capture series from analog TV using a Hauppauge PVR150 (720x576, VBR max 12MBit). Only on one channel (German RTL2) I have strange diagonal "bars" on captured video. They become stronger and then weaker and so on, like "flashing". Screenshot: http://mf-the-one.netfirms.com/sg1_bars.htm Does anybody know if there's a good way to remove this??? Or better, what cause this noise and how to avoid it? Thnx, Morpheus ps: where is my attachment Last edited by Morpheus_xx; 3rd April 2005 at 20:00. |
3rd April 2005, 22:33 | #2 | Link |
Registered User
Join Date: Feb 2002
Posts: 85
|
While searching the forum I found the "defreq" plugin.
Now I try to use it. But I can't find good parameters. The sample on the website (http://www.avisynth.org/fizick/defreq/defreq.html) is quite unlike my frequency spectrum. I do not have clear hot spots And it's alternating frame by frame (see frame 9750 vs. 9751, middle region). Images and avisynth script see link in 1st post. Maybe someone can help? Last edited by Morpheus_xx; 3rd April 2005 at 22:36. |
4th April 2005, 21:10 | #3 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Morpheus_xx,
Your picture is too dark, And i do not see any diagonal lines on it. Sorry.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
4th April 2005, 21:17 | #4 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
Morpheus_xx,
Your picture is too dark, And i do not see any diagonal lines on it. Sorry.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
4th April 2005, 21:36 | #5 | Link |
Registered User
Join Date: Feb 2002
Posts: 85
|
well, you're right. was a bad sample ;-) (my display is also quite bright)
this one should show it better. please also see link above, there's the debug-output from defreq. any hints for parameters? thanks in advance morpheus Last edited by Morpheus_xx; 4th April 2005 at 21:39. |
5th April 2005, 05:17 | #6 | Link |
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,183
|
try fx=12, fy=-5
I see small bright sharp dot on spectrum there.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick I usually do not provide a technical support in private messages. |
5th April 2005, 18:53 | #7 | Link |
Registered User
Join Date: Feb 2002
Posts: 85
|
thank you for reply.
I tried your settings, but unfortunately the difference of the filtered clip was not visible. So I made some other tests like: DeFreq(fx=11,fy=98,sharp=90,fx2=96,fy2=100,fx3=61,fy3=98,fx4=64,fy4=-97) This seems to help a bit. I had to use such high values to focus some spots. Is this the right way? Or am I completly wrong? Can I adjust the "strength" of DeFreq ? I would need the effect "stronger". |
11th April 2005, 10:45 | #8 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
I have just authored a plugin FanFilter (The name is due to my assosiation with Seismic data processing for Oil and Gas). I have tested this on your two images and find that with default settings the noise is gone. I see some horizontal streaks which probably are on the original.Some smoothening and bit of edge is seen . Smoothening gave a pleasing effect.
The plugin should be shortly available on www.avisynth.org/warpenterprises page for a free down load. |
12th April 2005, 16:17 | #13 | Link |
Registered User
Join Date: Feb 2002
Posts: 85
|
I've made a first test with default values.
As I said before: amazing! For this problem it's the best filter I've tested yet! And performance is also very good. I'll do some more tests with the parameters to see the influence to the video. Thank you, great work! |
12th April 2005, 18:36 | #15 | Link |
budala
Join Date: Oct 2003
Location: U.S.
Posts: 545
|
Yeah VC,
I'd love to know more details. I've been fooling with this frequency stuff in my spare time. I loved your post because it gave me some clues. Threshold the black for example. Anyway ... so by default does 16 mean we start at 32/width and remove periodic frequencies? What's the period? Do you remove or reduce them? Is the 5% threshold based upon DC as the max? Here is my try at this..... No thresholding the black. And i did not smooth after the filter. I was really just guessing. edit: Image is only processing lines 100-476 Previous image is as http://trevlac.us/pics/sg1_61190X.jpg Last edited by trevlac; 13th April 2005 at 17:53. |
13th April 2005, 05:19 | #16 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
I am happy that you found the filter does a good job.
As for why I do not release the source: 1. I am a novice at C++ programming and am afraid they will be too many poor programming pieces. 2. I find that for many plugins hosted on the warpenterprises page source is not available. 3. If I get feedback I would love to work on my code continuously. I have retired from work in 1992 and can afford to devote time. 4. Of course may be in not too distant future the sources will be made available. Regarding Parameters: Lambda is related to wavelength of noise freq. It may be half or some other ratio. The plugin examines data over this moving window. Threshold is to limit corrections in dark areas. Amp limits in brighter areas. I examined the actual pixelvalues of the image using pixelvalues plugin and found that normal freq domain methods may not work as the actual level of interference is very low. In very bright areas it is not even seen. To avoid artifacts one need to ensure that these three parameters have the least values that can remove noise. The algorithm used is very simple, and so is quite fast. The seemingly diagonal nature is because the scanning is done in a particular order and with some padding values in TV signal. It ( the angle of diagonal) has no effect on working. I have just introduced RGB32 and RGB24 color formats also.Earlier I had some misgivings about working in these formats. But I find my algorithm works in these formats also. The defaults however left out some noise. It appears it requires higher threshold and amp parameters. This updated version I will release by end of month. Last edited by vcmohan; 13th April 2005 at 05:25. |
13th April 2005, 05:51 | #17 | Link | |||
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Quote:
I use threshold to categorise whether it is noise or signal. If deviation is more than threshold signal. Eventhough the interference would be same over the image, it occurred to me that our eyes may be playing tricks and so notice it more in darker areas. Thats the reason to introduce amp factor. Quote:
Quote:
|
|||
13th April 2005, 13:43 | #18 | Link | |
budala
Join Date: Oct 2003
Location: U.S.
Posts: 545
|
@VC
Thank you for the details. I completely misunderstood what you were doing. I thought you were working within the frequency domain. Quote:
PS: I am not trying to better your work. I am just trying to learn about an area of interest. Your filter clearly does a great job and is ready for general use. My filter is not in a usable form to do this processing. It's main purpose it to show me the fourier image. To process a video would be terribly slow. |
|
13th April 2005, 14:55 | #19 | Link | |
Moderator
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
|
Of course you are free to not release your source. If you do people might learn something from it. Anyway, some comments.
Quote:
3. What does that have to do with releasing sources? In general, people will ask the author first if they want to see something changed/added. 4. That would be very nice |
|
13th April 2005, 15:35 | #20 | Link |
Registered User
Join Date: Sep 2002
Location: Germany
Posts: 352
|
interesting filter!
but if you compare the 2 pictures of the woman (unfiltered and filtered) by switching back- and forth, you can see that in all corners of the picture some slight diagonal bars are introduced. (exactly like the ones that are removed in the middle of the picture). looks like an 'overcompensation' effect. Greetings, Malcolm |
Thread Tools | Search this Thread |
Display Modes | |
|
|