search for: opus_auto

Displaying 12 results from an estimated 12 matches for "opus_auto".

2018 Oct 18
1
Is OPUS_AUTO the default for an encoder's bitrate?
I had expected that the default bitrate for the encoder would be the same as setting it to OPUS_AUTO, but I'm getting difference results: >opusenc --comp 4 sample.wav sample.opus Encoding using libopus 1.3-rc2 (audio) ----------------------------------------------------- Input: 8 kHz, 1 channel Output: 1 channel (1 uncoupled) 20ms packets, 25 kbit/s VBR Preskip: 312 Encodi...
2016 Sep 07
2
[PATCH] Fix ambisonics bitrate when bitrate_bps is OPUS_AUTO
...nsertions(+), 1 deletion(-) diff --git a/src/opus_multistream_encoder.c b/src/opus_multistream_encoder.c index 30cafe1..c07132f 100644 --- a/src/opus_multistream_encoder.c +++ b/src/opus_multistream_encoder.c @@ -747,7 +747,8 @@ static void ambisonics_rate_allocation( if (st->bitrate_bps==OPUS_AUTO) { - total_rate = num_channels * (20000 + st->layout.nb_streams*(Fs+60*Fs/frame_size)); + total_rate = (st->layout.nb_coupled_streams + st->layout.nb_streams) * + (Fs+60*Fs/frame_size) + st->layout.nb_streams * 15000; } else if (st->bitrate_bps==OPUS_BITRATE...
2015 Feb 23
1
[PATCH] opus_demo: remove unused but set values
...c index 72506b5..5a75679 100644 --- a/src/opus_demo.c +++ b/src/opus_demo.c @@ -245,14 +245,14 @@ int main(int argc, char *argv[]) double bits=0.0, bits_max=0.0, bits_act=0.0, bits2=0.0, nrg; double tot_samples=0; opus_uint64 tot_in, tot_out; - int bandwidth=-1; + int bandwidth=OPUS_AUTO; const char *bandwidth_string; int lost = 0, lost_prev = 1; int toggle = 0; opus_uint32 enc_final_range[2]; opus_uint32 dec_final_range; int encode_only=0, decode_only=0; - int max_frame_size = 960*6; + int max_frame_size = 48000*2; int curr_read=0; int...
2015 Apr 02
1
Opus multi-stream/surround: Audio corruption on decoded content
..._OK) return; m_SurroundInfo.s.streams = (unsigned char)streams; m_SurroundInfo.s.coupled_streams = (unsigned char)coupled_streams; opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BITRATE(bitRate)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR(0)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR_CONSTRAINT(0)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_COMPLEXITY(10)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_INBAND_FEC(0)); opus_m...
2018 Jan 15
1
Ask for suggestions about optimizing opus on STM32F407
...TI: opus 1.1.2) B. KEIL 5.23 (TI: ARM compiler tool chain 5.2.7) C. setup the encoder as the below (fs is the sampling frequency) enc = opus_encoder_create(fs, chans, OPUS_APPLICATION_AUDIO, &opus_err); opus_encoder_ctl(enc, OPUS_SET_BITRATE(fs * 2)); opus_encoder_ctl(enc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); opus_encoder_ctl(enc, OPUS_SET_VBR(1)); opus_encoder_ctl(enc, OPUS_SET_VBR_CONSTRAINT(0)); opus_encoder_ctl(enc, OPUS_SET_COMPLEXITY(0)); opus_encoder_ctl(enc, OPUS_SET_INBAND_FEC(0)); opus_encoder_ctl(enc, OPUS_SET_FORCE_CHANNELS(OPUS_AUTO)); opus_encoder_ctl(enc, OPUS_SET_DTX(0)); opus_...
2017 Oct 17
1
Fix DTX is always unavailable when DISABLE_FLOAT_API is not defined
Hi. I found that DTX is always unavailable when DISABLE_FLAOT_API is not defined in OPUS_AUTO mode. As you know analysis_info.valid is alway true except NaN case and is_silence is alway true except digital zero signal case. In general, following condition will be alway true except exceptional case. (analysis_info.valid || is_silence) But in a code, there is a NOT expression in front of...
2020 Jun 11
1
OPUS encoded data size and bandwidth of encoder
Hey, I am having trouble with the size of the encoded bytes by Opus. I am also having issue with the Bandwidth ctl. Here is the scenario. If I encode 16khz sampled audio: opus_encoder_ctl(enc,OPUS_SET_MAX_BANDWIDTH(OPUS_BANDWIDTH_WIDEBAND)) opus_encoder_ctl(enc, OPUS_GET_BANDWIDTH(&x)) = 1102 opus_encoder_ctl(enc, OPUS_GET_MAX_BANDWIDTH(&x)) = 1103 average encoded size = 120 bytes if I
2015 Apr 02
0
Opus multi-stream/surround: Audio corruption on decoded content
..._OK) return; m_SurroundInfo.s.streams = (unsigned char)streams; m_SurroundInfo.s.coupled_streams = (unsigned char)coupled_streams; opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BITRATE(bitRate)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_BANDWIDTH(OPUS_AUTO)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR(0)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_VBR_CONSTRAINT(0)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_COMPLEXITY(10)); opus_multistream_encoder_ctl(m_MSEnc, OPUS_SET_INBAND_FEC(0)); opus_m...
2017 Feb 08
1
OPUS_APPLICATION_AUDIO v. OPUS_SIGNAL_MUSIC
I'm using opus to encode some music (classical lute, if it makes a difference). How do I use these encoder ctl's ? They seem to be doing the same thing. How are they different ? Are they different ? Should they both be set ? What happens if just one or the other is set ? Thanks for any help. sean -------------- next part -------------- An HTML attachment was scrubbed... URL:
2018 Aug 30
0
[PATCH] Apply equal bit allocation to ambisonic channels
...directional ambisonics and non-diegetic stereo channels */ - const int nb_nondirectional_channels = st->layout.nb_coupled_streams * 2 + 1; - /* The remaining ambisonics channels */ - const int nb_directional_channels = nb_channels - nb_nondirectional_channels; if (st->bitrate_bps==OPUS_AUTO) { @@ -769,46 +758,12 @@ static void ambisonics_rate_allocation( total_rate = st->bitrate_bps; } - /* Let y be the directional rate, m be the num of nondirectional channels - * m = (s + 1) - * and let p, q be integers such that the nondirectional rate is - * m_rat...
2018 Jan 06
3
Ask for suggestions about optimizing opus on STM32F407
<style>table.customTableClassName {margin-bottom: 10px;border-collapse: collapse;display: table;}.customTableClassName td, .customTableClassName th {border: 1px solid #ddd;}</style><div id="write-custom-write" tabindex="0" style="font-size: 12px; font-family: 宋体; outline: medium none currentcolor;"><p style="margin:0px;">Dear
2015 Apr 02
0
One question about Opus encoder
...be problem I'm not sure) that perplexes me, please give me some comments. The result be described as below: First(all init which are needed I have done), I used opus_encode() to get the encoded data successfully. The encoder control parameters are set: VBR=0, CVBR=0, INBAND_FEC=0, and mode is OPUS_AUTO(means I will use CBR), then I can get the individual frames in form of code0 or code3CBR(with padding part). Then, I used opus_repacketizer_cat() to cat 3 of the individual frames(2 code3CBR frame and 1 code0 frame) to become a multiframe successfully. Last, I used opus_repacketizer_out() to get...