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.

 

Go Back   Doom9's Forum > General > Audio encoding

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th July 2017, 21:16   #141  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
Are you using zeranoe's ffmpeg builds? He's already using 1.2.1. He lists the library versions at the bottom of his download site.
sneaker_ger is offline   Reply With Quote
Old 9th July 2017, 21:22   #142  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
I'll just scrap what I've worked the last 2 hours... :-(
stax76 is offline   Reply With Quote
Old 4th December 2017, 23:23   #143  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Opus-Tools v0.1.10-9, using libOpus v1.2.1-35 (2017-11-16):
https://sourceforge.net/projects/mul...4.zip/download
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊
LoRd_MuldeR is offline   Reply With Quote
Old 5th December 2017, 11:39   #144  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 173
Quote:
Originally Posted by LoRd_MuldeR View Post
Opus-Tools v0.1.10-9, using libOpus v1.2.1-35 (2017-11-16):
https://sourceforge.net/projects/mul...4.zip/download


Did you found a mentioned opus 1.3 release already?

https://public.etherpad-mozilla.org/...weekly-meeting
VincAlastor is offline   Reply With Quote
Old 5th December 2017, 14:48   #145  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by VincAlastor View Post
Did you found a mentioned opus 1.3 release already?
Built straight from latest Git "master" branch. Probably that will be tagged as "v1.2.2" or maybe "v1.3" at some point...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 5th December 2017 at 14:54.
LoRd_MuldeR is offline   Reply With Quote
Old 10th December 2017, 11:25   #146  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 173
What's better for quality preserving encodes, in eac3to if requiered downmix to stereo and down sampling to 16 bit 48 KHz or let opusenc do this while encoding?

examples
eac3to stdout.wav -downstereo -down16 -resampleTo48000 | opusenc --ignorelength --bitrate 200 - %_.opus
or
eac3to stdout.wav | opusenc --downmix-stereo --ignorelength --bitrate 200 - %_.opus
VincAlastor is offline   Reply With Quote
Old 10th December 2017, 13:32   #147  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by VincAlastor View Post
What's better for quality preserving encodes, in eac3to if requiered downmix to stereo and down sampling to 16 bit 48 KHz or let opusenc do this while encoding?
- Down sampling to 16 bit is not recommended at all.
- Resample to 48 KHz is only recommended if source have a greater samplerate. If not let the original samplerate.
- About the downmix method:

a) Seems than opusenc --downmix-stereo make this downmix:

FL' = 0.26xFL + 0.19xFC + 0.19xLFE + 0.23xSL + 0.13xSR
FR' = 0.26xFR + 0.19xFC + 0.19xLFE + 0.13xSL + 0.23xSR

- The mix uses normalized coeficients to avoid clip, but the output can be at low volume.
- Mix the LFE channel, not recommended always.
- Mix the surround channels like -downdpl (Dolby ProLogic)

b) With eac3to you can select your downmix method (-downdpl or -downstereo), add LFE (-mixlfe) or not, and -normalize to avoid clip and obtain the best volume.

My recommendation:

eac3to INPUT stdout.wav -downstereo -normalize | opusenc --ignorelength --bitrate 200 - OUTPUT.opus

(or COMMAND LINE in UsEac3to:
stdout.wav -downstereo -normalize | opusenc --ignorelength --bitrate 200 - %_.opus)
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 10th December 2017 at 13:47.
tebasuna51 is offline   Reply With Quote
Old 10th December 2017, 15:31   #148  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by tebasuna51 View Post
- Down sampling to 16 bit is not recommended at all.
Generally agree. But he is going to compress it with Opus anyway.

While compressed audio doesn't really have a "bits per sample", as compressed audio doesn't store individual samples (it stores "frames", in frequency-domain), the average "bits per sample" in an Opus stream will probably be around ~2.

So, down-sampling to 16-Bit (from 24-Bit or 32-Bit FP) probably doesn't make a noticeable difference in this scenario, as the real "loss" happens in the Opus compression stage anyway.

Quote:
Originally Posted by tebasuna51 View Post
- Resample to 48 KHz is only recommended if source have a greater samplerate. If not let the original samplerate.
Opus is a "48 KHz only" format, so anything not already 48 KHz will be up- or down-sampled to 48 KHz, by OpusEnc, before sending it to the actual Opus encoder library. OpusEnc uses its built-in Speex re-sampler for that job.

So, only reason to re-sample manually to 48 KHz before sending your audio to OpusEnc, IMO, would be if you want to use a different re-sampler than Speex...
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 10th December 2017 at 15:41.
LoRd_MuldeR is offline   Reply With Quote
Old 10th December 2017, 17:08   #149  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by LoRd_MuldeR View Post
Opus is a "48 KHz only" format...
I didn't know.

By default eac3to uses SSRC (Shibatch) resampler, or r8brain resampler if you include the parameter -r8brain
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 11th December 2017, 11:35   #150  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 173
Thanks guys!
Without initiating a religious war, I would like to ask what is the better resampler. Speex or SSRC?
Can opus really receive and decode pro logic II information correctly?
And if I understand that correctly, it is better to let opus do a bit-down-sampling automatically if necessary, right?

edit:
ok, i've got the answer for what's the better resampler: it doesn't matter, you can't hear the better SOX/SSRC. Speex has no GPL conflict and that's ok.
https://hydrogenaud.io/index.php/topic,113655.0.html

Last edited by VincAlastor; 11th December 2017 at 12:52.
VincAlastor is offline   Reply With Quote
Old 11th December 2017, 12:54   #151  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by VincAlastor View Post
Thanks guys!
Without initiating a religious war, I would like to ask what is the better resampler. Speex or SSRC?
See here:
https://hydrogenaud.io/index.php/topic,113655.0.html

tl;dr: The "artifacts" introduced by Speex re-sampler probably are way too low (silent) to bother, considering the lossy compression that follows and that does far worse things



Quote:
Originally Posted by VincAlastor View Post
Can opus really receive and decode pro logic II information correctly?
I don't think OpusEnc handles Pro Logic II in any kind of way.

For OpusEnc your Pro Logic II input would simply be a Stereo source. So, you'd get a Stereo Opus file and it would still be up to the Pro Logic decoder to "split" the channels.

Quote:
Originally Posted by VincAlastor View Post
And if I understand that correctly, it is better to let opus do a bit-down-sampling automatically if necessary, right?
As said before, there is no real "bits per sample" in (lossy) compressed audio. Also, most loss, by far, is going to happen in the lossy compression stage.

So, down-sampling the source to 16-Bit before passing it to OpusEnc probably doesn't make an audible difference.

But I also see no reason why you should need to down-sample, as OpusEnc should be able to handle 16-Bit, 24-Bit and 32-Bit IEEE sources just fine...

(The data passed into the actual Opus encoder library is a sequence of opus_int16 values, i.e. 16-Bit per sample, in any case!)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 11th December 2017 at 13:52.
LoRd_MuldeR is offline   Reply With Quote
Old 11th December 2017, 13:23   #152  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 173
ok, i understand, thanks.
Then tebasuna51's cmd recommendation is the right one for me. But for which input i should set -mixlfe?
VincAlastor is offline   Reply With Quote
Old 11th December 2017, 15:52   #153  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
Quote:
Originally Posted by VincAlastor View Post
But for which input i should set -mixlfe?
From Mixing_Information_for_Dolby_Pro_Logic_II.pdf

"There are other concerns when adding an LFE signal to the mix. If the LFE is simply redistributed within the other channels of the mix, they will usually be subject to some low-frequency bandpass filtering. This filtering causes phase shifts of the LFE signal.
When they are acoustically added within a room, these phase shifts are fairly subtle and often go unnoticed.
However, when they are electronically added together with the five main channels in the encoder, they may produce less than desirable results at certain frequencies."

Dolby never recommend use the LFE channel in downmix, but of course is your choice.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 11th December 2017, 19:10   #154  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 173
Quote:
Originally Posted by tebasuna51 View Post
From Mixing_Information_for_Dolby_Pro_Logic_II.pdf

"There are other concerns when adding an LFE signal to the mix. If the LFE is simply redistributed within the other channels of the mix, they will usually be subject to some low-frequency bandpass filtering. This filtering causes phase shifts of the LFE signal.
When they are acoustically added within a room, these phase shifts are fairly subtle and often go unnoticed.
However, when they are electronically added together with the five main channels in the encoder, they may produce less than desirable results at certain frequencies."

Dolby never recommend use the LFE channel in downmix, but of course is your choice.
so less is more sometimes ^^ and i will use simply your recommendation cmd for stereo encoding with eac3to and opus.

For 5.1 encodes you wouldn't add eac3to --normalize to keep dynamic sound, right? Or keeps --normalize dynamic anyway?
VincAlastor is offline   Reply With Quote
Old 11th December 2017, 20:59   #155  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,914
The normalize in eac3to is a Peak normalization, the dynamics are preserved.

But I recommend preserve the original volume when encode to 5.1.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 22nd December 2017, 13:50   #156  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,125
Opus 1.3 beta is out now: https://www.opus-codec.org/release/d...-1_3_beta.html
hajj_3 is offline   Reply With Quote
Old 28th December 2017, 19:54   #157  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 292
С наступающим
Defect/rustling at a frequency of 16 kHz > OPUS v1.3b-0.1.1.7z
Gravitator is offline   Reply With Quote
Old 31st December 2017, 20:18   #158  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,315
Quote:
Originally Posted by LoRd_MuldeR View Post
Generally agree. But he is going to compress it with Opus anyway.

While compressed audio doesn't really have a "bits per sample", as compressed audio doesn't store individual samples (it stores "frames", in frequency-domain), the average "bits per sample" in an Opus stream will probably be around ~2.
Lossy encoders don't affect dynamic range. Some CD files (44.1/16) can even have 18-21 effective bits during 24-bits playbasck thanks to noise-shaping and Opus doesn't lower dynamic range (still 18-21 effective bits. Crazy thing, right?

Quote:
Originally Posted by Gravitator View Post
С наступающим
Defect/rustling at a frequency of 16 kHz > OPUS v1.3b-0.1.1.7z
while it's my mother tongue. Please, English m English.

And this sample is useless as is. Nobody tests lossy audio codecs on tonal sweeps or video codec on a fancy square areas of different primary colors.

Provide a real content like music, speech, mix of both, ambiental, even some awkward art/noise stuff is acceptable.
IgorC is offline   Reply With Quote
Old 31st December 2017, 22:48   #159  |  Link
Motenai Yoda
Registered User
 
Motenai Yoda's Avatar
 
Join Date: Jan 2010
Posts: 709
Quote:
Originally Posted by IgorC View Post
Lossy encoders don't affect dynamic range. Some CD files (44.1/16) can even have 18-21 effective bits during 24-bits playbasck thanks to noise-shaping and Opus doesn't lower dynamic range (still 18-21 effective bits. Crazy thing, right?
bit per sample and bitdepth are different things, as LoRd_MuldeR said bitpersample is ambigue as it should be derived from bitperframe aka framesize.
anyway bitdepth is a physical thing, 16 bit still is 16bit, sure it's able to handle < -96dB signals using noise shaping as Christopher Montgomery showed us, but it goes over 16bit only if you're taking quantization noise as a dynamic range limit for a given bitdepth.
__________________
powered by Google Translator

Last edited by Motenai Yoda; 31st December 2017 at 22:52.
Motenai Yoda is offline   Reply With Quote
Old 1st January 2018, 12:19   #160  |  Link
Gravitator
Registered User
 
Join Date: May 2014
Posts: 292
See how in the problem area the bitrate drops sharply and then rises in tonal test.
Problems can be in the chain of work algorithm combination:
1. Quality of lowering or increasing the sampling rate of frequency resampling;
2. Thin or thick slices of framesize;
3. Thin or thick proportions of trimming high frequencies to the quality of the selected bitrate;
4. Algorithm of signal restoration;
5. Algorithm smoothing (tail signal);
6. Bitrate distribution.
-------------------------
Download with augmented audio file > OPUS v1.3b-0.1.1 (01.01.2018)

Last edited by Gravitator; 2nd January 2018 at 11:38.
Gravitator is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:26.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.