HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: Pixar on 2015-08-27 19:20:23

Title: DC-rejection
Post by: Pixar on 2015-08-27 19:20:23
Hi all! 

does anyone know how to disable the DC Rejection filter in opusenc? it is necessary to chiptune music
Title: DC-rejection
Post by: pdq on 2015-08-27 19:28:37
I would be surprised if any lossy codec preserved DC, seeing as how it is not audible.
Title: DC-rejection
Post by: [JAZ] on 2015-08-27 19:32:00
When you say "necessary", do you mean audibly necessary?

I ask because I tend to apply a highpass filter in that kind of content (as a simple way to correct DC), and I don't think it changes the sound.
Title: DC-rejection
Post by: greynol on 2015-08-27 19:32:33
it is not audible

it is necessary to chiptune music

As someone who knows a little something about audio but had to wiki "chiptune music" I would really like to have these two things reconciled.

Pixar, why do you need to preserve DC?
Title: DC-rejection
Post by: Pixar on 2015-08-27 19:46:22
greynol, DC Rejection increasing peak level and may be clipping

(http://i.imgur.com/ffixKgN.png)
Title: DC-rejection
Post by: saratoga on 2015-08-27 19:54:33
greynol, DC Rejection increasing peak level and may be clipping


I'd say the Vorbis one looks like its clipping more, but if this is a problem, just use replaygain so it won't clip.  Its not a good idea to rely on DC anyway, since your DAC probably won't produce it, so you may get clipping anyway on playback. 
Title: DC-rejection
Post by: pdq on 2015-08-27 20:46:26
The good news is that a LOSSLESS encoder will preserve DC.
Title: DC-rejection
Post by: greynol on 2015-08-28 00:50:45
greynol, DC Rejection increasing peak level and may be clipping
(emphasis mine)

I'm sorry, but I remain extremely doubtful that concerning yourself with DC is the right direction in fixing whatever might be wrong with your encoding.  In terms of whether you have an audible problem with your encodes, these waveform plots are useless.  DBT is the only proper means of gauging quality of sound.

Also, you're aware that you're no longer locked into a specific bit-depth once you encode to lossy, right?  With this in mind, do take note of saratoga's advice.
Title: DC-rejection
Post by: Pixar on 2015-08-28 11:05:11
Who knows setting off in --set-ctrl-int ?
Title: DC-rejection
Post by: jmvalin on 2015-08-28 21:23:17
does anyone know how to disable the DC Rejection filter in opusenc? it is necessary to chiptune music


The DC rejection filter is always on. The reason for this is that DC messes with the psycho-acoustic model, causing the CELT encoder to significantly increase the amount of noise up to about 100 Hz.
Title: DC-rejection
Post by: Pixar on 2015-08-29 09:45:23
jmvalin, Thanks, i did not know that so important