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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#61 | Link |
|
Registered User
Join Date: Nov 2003
Posts: 324
|
I must thank you for your filter, ie "fanfilter."
I used it after applying DeFreq and it performed well. I'm not disparaging Fizick's filter. I simply found that your filter AFTER Fizick's filter gave me the result for which I searched. |
|
|
|
|
|
#62 | Link |
|
Registered User
Join Date: Apr 2005
Posts: 7
|
Sorry if I'm asking a question in a wrong place, but how to interpret this spectrum surface?
I know that FFT computes sin (or cos) components (amplitude, frequency, phase) of a continuous signal, but cannot interpret the spectrum image that DeFreq shows. In this case what is the signal: separate lines, or the whole datastream (luma, chroma?), what is the x-axiys and y-axis, and the intensity value of the spectrum? I tried to play with this filter, but cannot get any result. I cannot use what I cannot understand Ok, I could live without the math of this FFT thing if I would know what to look for. I know that I should look for peaks in the spectrum, but I have several, are there "good" and "bad" peaks? I also see that I could just use the stripes showing on the right, but should I align the white or the black bars to the noise? I cannot seem to control the width of these bars differently (I have a clip where there are thin vertical noise bars).Please, provide some hints for a less educated one. Thanks in advance. |
|
|
|
|
|
#63 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
I am not a teacher, but plugin writer
![]() So, please use some book or article. Shortly, defreq use not 1D, but 2D transform. X and Y are dimension (frequency). Only spectrum amplitide is shown as image intensity.
__________________
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. |
|
|
|
|
|
#64 | Link |
|
budala
Join Date: Oct 2003
Location: U.S.
Posts: 545
|
@loba,
I've never used Fizick's wonderful filter. I really only use digital source. However, I felt compelled to respond. This stuff has been a topic of interest for me.Unfortunately ... the interference pattern is not self evident to the filter. So Fizick has provided 3 ways to help identify the place in the frequency spectrum that contains the noise. A quick guide to frequency analysis: It's just like the audio spectrum you see on an audio equalizer. Audio breaks up the highs and lows. Video breaks up the sharp details and the smooth planes. Way #1: Frequency image Audio is shown in 2D as frequency of bar and height of bar. Video is in 3D. X & Y show the orientation and wave length of the frequency (Think of an X,Y graph. If Y is zero and you move across the X's, you are covering the horizontal frequencies where the vertical ones are zero. If you go to a spot where X and Y are not zero, you are talking about a frequency that runs at a diagional angle.) Unfortunately .... the the frequency image is hard to read, especially if you want to know the exact frequency in question (like 3MHz). The 'zero points' are the top left and bottom left. I believe the top half of the image may represent frequencies (stripes) that go from bottom left to top right. The bottom half represents stripes that go from top left to bottom right (like Fizick's example). Way #2: Bright spots in the image The 3D part of the image spectrum analysis is that the brightness of the spots represent the amount of the given frequency in the image. Picture the image 'from the side'. I would look like a 3D mountain range. The bright spots are the highest peaks and a good candidate for a repeating pattern in the regular image. Trial and error on blocking out the spots is a good way to narrow down. You can also try some big windows to see if you are even looking in the right area. Way #3: Sample stripes The angle (orientation) and thickness of the stripes matter. What is black and what is white do not. These are a great way to see if you are close. The stripes are not a 'frequency image', but a regular image of the chosen frequencies. Their black/white starting point doesn't matter because that is actually not a factor of their frequency, but a factor of their phase. Hope I got it at least reasonably correct ....
|
|
|
|
|
|
#65 | Link |
|
Registered User
Join Date: Nov 2003
Posts: 324
|
My silly take on this filter.
There are infinite numbers that represent 45 degrees. What is the width of 45 degrees? That is the problem. If the interference is 45 degrees the "width" is generally unknown. That is where "ratios" take effect, and that is what is the difficulty in applying this filter. If I can see that the the interference is at a particular "angle" but I don't know the "thickness" then I must do trial and error. It would help if there was some way to determine the "thickness." Sounds silly, but that's my experience. |
|
|
|
|
|
#66 | Link |
|
budala
Join Date: Oct 2003
Location: U.S.
Posts: 545
|
hartford
If you know the interference is 45% and which way it runs ... bottom left to top right for example ... there are actually not too many spots to look. If the 'width' of the interference is a 1 pixel wide line, this coresponds to some frequency at the right edge of the image. If the 'width' is so wide that it covers the entire image, the frequency is at the left edge. The width of the interference bars is related to the spot in the frequency image by imgWidth/2 - barWidth. Count over that many pixels and that is where your frequency is. Um ... at the angel you are looking for. ------- Anyway ... I've been playing with this stuff a little, and I made a virtualdub filter that might help. Might not. Load your video and the filter. Click the db (log) radio button, and the 'All' button options. Then click show preview. This will show a frequency image much like Fizick's. You can draw little squares (with your mouse) on the right half of the preview window. This will mask out little bits of frequency. Toggle back and forth between the "Filtered Image" and "Frequency Image" radio buttons to see if you have the right spot. BUT there are a number of differences in my image vs Fizicks. Mine is twice as wide and duplicated across the center. So ignore the left side of mine. Mine is also oriented where the upper left and lower left corners of Fizick's image are flipped to the center. This may help find the right spots. I hope it does not cause more confusion. My 'experimental' filter can be had here. http://www.trevlac.us/FilterDocs/Filters.htm |
|
|
|
|
|
#67 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
Trevlac,
good guide! Hartford, There are infinite numbers that represent ANY angle (not only 45 degrees). Yes, if you found approriate fx,fy values to represent right angle (as shown), then you must change BOTH fx, fy (with constant ratio) to set approroate "width" (step). I do not want change this. But you can use some script variables. It is not very advanced math, similar to: frx=30 ratio=-1.5 fry=frx*ratio defreq(clip, fx=frx,fy=fry)
__________________
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. |
|
|
|
|
|
#68 | Link | |
|
Registered User
Join Date: Apr 2005
Posts: 7
|
Quote:
trevlac, Great work! I almost understood this whole thing from your webpage. But what's more important, I was able to get some interesting result with your Virtualdub filter (removing vertical bars) using the horizontal lowpass option. Now I wonder if such an option exists in Fizick's DeFreq plugin (for using Avisynth only) or should I remove those bars in Virtualdub and make other filtering in Avisynth... I see that there are cutx and cuty parameters, but there is no option for slope (this parameter did the trick in trevlac's filter, using low freq and a moderate slope). Maybe next version?
|
|
|
|
|
|
|
#69 | Link |
|
Registered User
Join Date: Dec 2004
Location: Minsk,Belarus
Posts: 23
|
help file seems to be a bit complicated for niewb
![]() I played with the parametres , but never got proper results ![]() Here is a screenshot from avi-source I want to process see attachment (80kb) What parameters should I try ? I wonder if you can give advice using screen... Last edited by bdfy; 12th July 2005 at 22:09. |
|
|
|
|
|
#71 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
bdfy,
Please re-read all this thread.
__________________
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. |
|
|
|
|
|
#72 | Link | |||
|
Registered User
Join Date: Dec 2004
Location: Minsk,Belarus
Posts: 23
|
Fizick
Still lots of quastions... I need to estimate angle,width of stripes and "strengh" of processing. Right ? Angle: Quote:
Quote:
Or the only way to find out the right value is to look at upper right window ( compating with lower one ) using info,show parameters. It's hard enough, but it's accomplishable. But I still have no idea what plugin shows with Defreq(show=true,info=true) parameters How to use this info ?Quote:
It would be great if you answer in russian here ![]() http://forum.ixbt.com/0029/009331-31.html |
|||
|
|
|
|
|
#73 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
1. А читал ли ты русскую документацию?
(do you read the russian documentation?) 2. Prease read Trevlac's description. 2. Make some attempts, and you got the right answer yourself.
__________________
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. Last edited by Fizick; 13th July 2005 at 20:38. |
|
|
|
|
|
#74 | Link |
|
Registered User
Join Date: Dec 2004
Location: Minsk,Belarus
Posts: 23
|
I know, RTFM is always suitable answer
- Yes, I read all the docs provided with the archieve and this topic from the very beginning. And I still have a lot of questions ![]() I believe, you made a great filter , but its help IMO is awfull - there's no easy to understand instruction how to use it. I'm not the first and seems to be not the last man asking simple questions about filter's usage I suppose it would be great to provide a good tutorial for users in order to avoid oft-recurring questions. Just a quick tute with common example. Just any screenshot and explain how to choose suitable parameters for such a source. PS : no sense ( i.e fonts ) to post here in russian
|
|
|
|
|
|
#75 | Link | |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
Quote:
When you learned to use Defreq, please write a tutorial and post here.
__________________
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. Last edited by Fizick; 13th July 2005 at 23:54. |
|
|
|
|
|
|
#77 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
Here is the good tutorial:
http://forum.doom9.org/showthread.ph...006#post679006
__________________
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. |
|
|
|
|
|
#78 | Link |
|
Registered User
Join Date: Jul 2005
Posts: 5
|
Idea for Fizick: how to automate interference frequency detection
Hello Fizick,
I am really impressed with your great filter, it works very well for a lot of my (Hauppauge PVR-150 based) broadcast captures . I do a lot of captures and I have noticed that the intereference frequencies change enough in between captures that I have to figure out new input parameters for defreq every time. Now you have given us an easy, graphical way to figure these parameters out (defeqs output for show=true) , though I guess that many people might not fully understand how to use it right (took me some time to get used to ...). E.g. I see people at the beginning of the thread share their input parameters for defreq. This only makes limited sense, because the parameters they give work only for their specific broadcast signal (e.g. the show they recorded) and the noise it contains. As I wrote above I find that for my own captures (TV cable) the interference frequencies (and therefore defreq input parameters) shift dramatically with time and channel! In this way, defreq works very differently from many other AviSynth filters (e.g. needing very different parameters with every source). Because of this difference, I guess that quite a number of inexperienced users might not understand how to use defreq well. Automating defreq could strongly improve this, making your filter more "newbie" friendly and thus - I am sure - even more popular. Here is my idea how to do the automation: A) Have defreq run twice in two different modes. The first pass is used to determine the input parameters we currently pass to defreq "by hand" and to output these parameters to a file. The 2nd pass then reads the file and applies these parameters to the source material. B) In order to determine the parameters: Use your defreq show output display (the grayish display showing the input picture transformed to frequency space) and sum the pixel value for each individual pixel in this display over time (e.g. all frames). Now we compare this sum value for each pixel with the sum value for pixels who are close to it. For a pixel that represents an interference frequency (e.g. defreqs needed input parameters would be a window around that pixel), we should find (Sum Pixel)/(Sum Pixel_close) >> 1. We could define a cutoff parameter so that when (Sum Pixel)/(Sum Pixel_close) >= parameter defeq assumes the pixel represents an interference frequency. In other words: we recognize the interference frequencies via their time behavior - interference frequencies are "always on" and the integral over their amplitude over time must be much higher than surrounding amplitudes. I am curios what you think ... |
|
|
|
|
|
#79 | Link |
|
AviSynth plugger
Join Date: Nov 2003
Location: Russia
Posts: 2,182
|
lumier,
Your idea is great! I say about temporal averering of frequency spectrum. I am not shure, that fully authomatic parameters estimation will be possible, but at lat we will see very sharp peak at interference frequency. Probably we do not need in full clip first pass, but in some range only, about 20 frames. But these frames must be dynamic (not static) scene. By the way, we can try this method right now, by temporal averaging with TemporalSmooth (with very high thresholds). I will try implement your suggestions in new version later, after some discussion.
__________________
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. |
|
|
|
|
|
#80 | Link | ||||
|
Registered User
Join Date: Jul 2005
Posts: 5
|
automation of interference frequency detection
Quote:
![]() Quote:
Tests should help us out a lot here ... Quote:
Also, I noticed that I often find 3+ interference frequencies for my captures. Some of them are not so obvious in absolut amplitude strength (white dot sticking out very strongly in defreqs frequency space display), but when you compare these less obvious ones with their surroundig (pixels close by), they can be easily identified. For these cases we might need to define what we want to consider "close by". Quote:
Lumier Last edited by lumier; 31st July 2005 at 19:01. |
||||
|
|
|
![]() |
|
|