View Full Version : Rather sharpen in realtime?
AntiJw
7th December 2008, 17:11
Hey,
I've noticed (some time ago) that sharpening the video before encoding with x264 raises avg.quants. Does this mean that the video gets more complex, and that I should rather sharpen in realtime (when I'm watching the encoded video) to save bitrate?
poisondeathray
7th December 2008, 17:40
Does this mean that the video gets more complex, and that I should rather sharpen in realtime to save bitrate?
Wouldn't sharpening increase the bitrate (if you were using CRF mode) ? It's similar to adding noise/detail
By the same reasoning that is why we use smoothers/degrainers on movies (e.g. anime) to reduce bitrate
I'm not sure what the "realtime" component of your statement has to do with it? Or am I misunderstanding you?
LoRd_MuldeR
7th December 2008, 18:03
I'm not sure what the "realtime" component of your statement has to do with it? Or am I misunderstanding you?
He wonders whether he should shapren before encoding -or- at playback time. The latter would have to be done in real-time, of course.
And yes: Sharpening before encoding will cost additional bits. So with CRF you'd have to expect a bigger file at a given value -and- with 2-Pass you'd have to expect more artifacts at a given bitrate.
Nevertheless you have to keep in mind that details, which were lost during the encoding process, are gone forever. No sharpening filter can magically re-create detail at playback time!
Therefore I'd test various Psy RDO and Psy Trellis settings and maybe lower the Inloop Filter a bit, before actually deciding to use a sharpening filter.
The more crispiness/detail you can preserve in the encoding step, the less sharpening (pre- or post-processing) will be required...
poisondeathray
7th December 2008, 18:04
OK for playback...It makes sense now (Thx. Lord Mulder, I see that he added that...)
Just my opinion, but I think you would get better quality and control over doing the sharpening before. You are sharpening during decoding the original input source to encode, vs. sharpening on playback of a lower quality encode so some details are already lost. You are more prone to undesired artifacts. The downside is that it takes more CPU (encoding time) and uses higher bitrate to sharpen before encoding
Also if your PC is old/slow, sometimes sharpening during playback is not an option with h264 HD content.
AntiJw
7th December 2008, 18:20
Thanks, I think I'll do very light sharpening when I'm encoding (but not on 1080p), because some people don't like sharpening (instead of sharpening much in advance, I can set higher bitrate, as a result of not sharpening when encoding). I've read that Psy-trellis got some artifacts if setting too high value, so I don't want to overdo that.
I think sharpen is good to do in advance on low-res video, but I'm mostly encoding HD-video.
When wanting sharpened picture I can also use spline64resize (sharper result than spline36resize).
poisondeathray: Yeah, sry, I forgot the word "playback" :P
LoRd_MuldeR
7th December 2008, 18:29
I've read that Psy-trellis got some artifacts if setting too high value, so I don't want to overdo that.
You need to be careful, yes. Too strong Psy Trellis or too strong Psy RDO will introduce new artifacts. But the same applies if you apply too strong sharpening.
It's a trade-off and you'll need to find the combination that looks best for your eyes...
(Note: When you apply pre-sharpening to your source, you must always look at the compressed video. Not at the uncompressed filtered source!)
AntiJw
7th December 2008, 18:37
Okey, thanks again. I assume --psy-rdo 1.0:0.5 is a good general value.
Ranguvar
10th December 2008, 05:33
I did some Psy-RDO tests a while back on HD stuff, posted here... 1.0:1.0 is pretty hard to beat, except the odd source where psy-trellis fails miserably. But that's not often.
AntiJw
10th December 2008, 07:20
I did some Psy-RDO tests a while back on HD stuff, posted here... 1.0:1.0 is pretty hard to beat, except the odd source where psy-trellis fails miserably. But that's not often.Okey, thanks. Do you know what type of artifacts psy-trellis may produce (so I know what to look for, without making too many comparisons), on HD-material? And can you categorise
the "odd source" (is it anime/cartoon or grainy sources or other)?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.