Hi, There seem to be two ways of applying a denoise filter if one is using lavc: one in the video filter chain, with hqdn3d; the other with the nr option in lavcopts. Now, how do these compare exactly, and which one is recommended for a high quality encoding? (And with which settings?) I didn't even know about nr until I saw it in this list. The manual only mentions hqdn3d -- any reason? Thanks for your help! Regards, Jean __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
Hi, On 11/3/05, Jean Hoderd <jhoderd@yahoo.com> wrote:
Hi,
There seem to be two ways of applying a denoise filter if one is using lavc: one in the video filter chain, with hqdn3d; the other with the nr option in lavcopts.
Now, how do these compare exactly, and which one is recommended for a high quality encoding? (And with which settings?)
The HTML doc gives an example of settings for hqdn3d Please refer to that doc. As far as I'm concerned, I think the default values of hqdn3d are a bit too high. If I remember correctly, the "temporal" value is 6 when I prefer 4. I also decreased the chroma and luma values a bit. I have not used nr other than on small tests as I don't use lavc anymore and only use x264. I did not like the picture quality obtained with nr, but that's just me. To my mind, nr's main advantage is to be quite fast. That's all.
I didn't even know about nr until I saw it in this list. The manual only mentions hqdn3d -- any reason?
Nope, the manual (at least, the one on the CVS version) does mention it. Guillaume -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
Jean Hoderd wrote:
Hi,
There seem to be two ways of applying a denoise filter if one is using lavc: one in the video filter chain, with hqdn3d; the other with the nr option in lavcopts.
Now, how do these compare exactly, and which one is recommended for a high quality encoding? (And with which settings?)
hqdn3d is a traditional temporal denoiser. nr is what is commonly referred to in signal processing as decimation (understood to mean, more specifically, decimation with filtering). I am basing this analysis on the observed effect on bitrate. I have not been interested enough to look at the code. Maybe my analysis is inaccurate. I use hqdn3d for denoising. The default values are good for animation, but for live action I prefer something like 3:2:3:3. File size decreases quite a bit when hqdn3d is used, and if it is used judiciously it can really improve the appearance of material intended to be burned to dvd for playing on commercial players. Using excessive values produces noticeable softening of the picture (hair and textured clothing lose their detail). The noisier the source (up to a point!) the better it will respond to hqdn3d. There has to be sufficient signal to noise ratio in the source or you just get gumbo. I use nr for file size adjustment. values around 600 can be used to reduce file size 10-20 percent. Increasing the value of nr tends to produce a washed-out appearance. nr reduces the average bitrate and peak bitrate proportionately. If you encode something and the average bitrate seems excessive, you can tweak it down with nr (to reduce file size). Animation is much more forgiving to large nr values than live action is!! hqdn3d and nr can be successfully used in combination. Animation ripped from VHS can benefit from using them together.
On Thu, 3 Nov 2005 03:21:05 -0800 (PST) Jean Hoderd <jhoderd@yahoo.com> wrote:
Now, how do these compare exactly, and which one is recommended for a high quality encoding? (And with which settings?)
I would certainly recomend nr, not because it's vastly faster, but because the quality is much better than hqdn3d. For one thing, hqdn3d makes the video rather blocky even at fairly low values. At values higher than 0/1 for temporal, you get 'worms' (trails) across the screen as objects move. Using anything above the default value (3) for chroma makes the picture look unacceptably washed-out to me. With hqdn3d even at 1:1:0, it still wipes-out fine details in the video, and makes it somewhat blocky. But hqdn3d doesn't reduce much noise at such low values anyhow. Even before nr was introduced, I would almost never use hqdn3d (except for very noisy animation). I don't know how anyone can say that nr is lower quality. It does an extremely good job of removing actual noise, without any of the negative side-effects of hqdn3d. Which values you should use depend on the source... not the noise, so much as the bitrate. If you've got a very high bitrate DVD that is quite noisy (eg. Gettysberg), values as high as 600 will work well, and only cause slight blockiness. On very low bitrate video (cheap DVDs, internet files, etc) much lower values (100, 200) are needed to prevent blockiness, but will still get rid of most noise. I would never suggest anything higher than 600 in any case, as nr does start to act badly around that level. On the low end, as low as 10 may be useful for cleaning-up very low bitrate material. I've used nr extensively... dozens of DVDs, hundreds of (analog) TV captures, digitized VHS tapes, hundreds of short videoclips off the internet, etc. For the most part, I find 400 to be a very good balance. It cleans-up most noise, and doesn't cause blockiness except on video that was very low bitrate, noisy, and already somewhat blocky to begin with. nr's other (minor) drawback is that it really pushes down the bitrate on the first pass. Options like naq don't help at all. On the second-pass, though, the bitrate will be back up to what you've specified. If you need to do one-pass encoding with nr, use constant quantitizer instead of bitrate (good advice for 1pass encoding even if not using nr).
I didn't even know about nr until I saw it in this list. The manual only mentions hqdn3d -- any reason?
nr is fairly new, and you're using an old version of the man page.
Hi, And thanks for your help -- you guys are great! I think I do understand hqdn3d and nr a lot better now. I reckon I'll have to do some experimenting to find parameters well-tuned to my preferences. Anyway, when I said that the manual didn't mention nr at all, I meant the User Manual, not the man page. (The latter does mention it, but very briefly). Perhaps it would be worth including nr also in Chapter 7 ("Encoding with Mencoder") of the User Manual, no? Thanks again! Regards, Jean __________________________________ Yahoo! FareChase: Search multiple travel sites in one click. http://farechase.yahoo.com
Hi, On 11/4/05, Jean Hoderd <jhoderd@yahoo.com> wrote:
Hi,
And thanks for your help -- you guys are great! I think I do understand hqdn3d and nr a lot better now. I reckon I'll have to do some experimenting to find parameters well-tuned to my preferences.
Anyway, when I said that the manual didn't mention nr at all, I meant the User Manual, not the man page. (The latter does mention it, but very briefly). Perhaps it would be worth including nr also in Chapter 7 ("Encoding with Mencoder") of the User Manual, no?
Yes, that is true that it's not mentioned in the HTML doc. I'd happily accept a patch against the English XML source to add some more information about it. The main problem as of now being that it doesn't seem like too many ppl besides RC have given feedback about "nr", therefore I'm quite reluctant to grave it in stone on the XML docs... Guillaume -- Reading doesn't hurt, really! -- Dominik 'Rathann' Mierzejewski
participants (4)
-
Guillaume POIRIER -
Jean Hoderd -
Phil Ehrens -
RC