Displaying 20 results from an estimated 25 matches for "vorbis_bitrate_addblock".
2002 Mar 27
1
What exactly is threadsafe
...&m_vorbisDsp, 4*DATA_CHUNK_SIZE );
vorbis_analysis_wrote( &m_vorbisDsp, dataLength/dataSize );
while( vorbis_analysis_blockout( &m_vorbisDsp, &m_vorbisBlock ) == 1 ) {
/* analysis, assume we want to use bitrate management */
vorbis_analysis( &m_vorbisBlock, NULL );
vorbis_bitrate_addblock( &m_vorbisBlock );
while( vorbis_bitrate_flushpacket( &m_vorbisDsp, &m_oggPacket ) ) {
/* weld the packet into the bitstream */
ogg_stream_packetin( &m_oggStream, &m_oggPacket );
writePage();
}
}
**Write Page looks like this**:
int result;
result...
2004 Aug 06
2
vorbis_encode_init() bitrate arguments - offtopic
Michael,
> See the examples. If you initialise a managed mode (which this is), you
> MUST use vorbis_bitrate_addblock() and vorbis_bitrate_flushpacket().
Thanks for the tip. I added the calls, and it works now.
> You SHOULD also give an option to set min/max, since they're now used,
> and to use a VBR mode rather than the managed modes here.
But when streaming, IMHO it is _very_ essential to be able...
2004 May 20
3
Encoding questions
...rks very well indeed (encoding from a PCM file, then playback),
except that no matter the length of the source PCM file, the last (approx) 4
seconds of audio is always missing from the Ogg file.
I am trying to find some documentation that details some of the functions
used (e.g. vorbis_analysis(), vorbis_bitrate_addblock(),
vorbis_bitrate_flushpacket(), ogg_stream_packetin() etc.) as I am sure its
just some sort of flushing problem, but I'm not having much luck.
So does anyone know the cause of my problem, or where I can find some
documentation.
<p>Thnx,
Dave
<p>The information contained in this...
2004 Aug 06
1
ices: compliation problem
Hi all,
I can't compile ices on my Linux Box
Here is the output
ices.o(.text+0xc0): undefined reference to `log_open_file'
encode.o: In function `encode_dataout':
encode.o(.text+0x223): undefined reference to
`vorbis_bitrate_addblock'
encode.o(.text+0x244): undefined reference to
`vorbis_bitrate_flushpacket'
Thank you
--
--
GNU/Linux: il y a moins bien mais plus cher
rado@linuxmg.org
http://linuxmg.org
--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To...
2009 Dec 12
1
Skipping of sample in ogg writing
...mSamples; ++j)
dst[j] = (float) src[j];
}
}
}
vorbis_analysis_wrote (&vd, numSamples);
while (vorbis_analysis_blockout (&vd, &vb) == 1)
{
vorbis_analysis (&vb, 0);
vorbis_bitrate_addblock (&vb);
while (vorbis_bitrate_flushpacket (&vd, &op))
{
ogg_stream_packetin (&os, &op);
for (;;)
{
if (ogg_stream_pageout (&os, &og) == 0)
break;...
2009 Dec 12
1
Skipping of sample in ogg writing
...mSamples; ++j)
dst[j] = (float) src[j];
}
}
}
vorbis_analysis_wrote (&vd, numSamples);
while (vorbis_analysis_blockout (&vd, &vb) == 1)
{
vorbis_analysis (&vb, 0);
vorbis_bitrate_addblock (&vb);
while (vorbis_bitrate_flushpacket (&vd, &op))
{
ogg_stream_packetin (&os, &op);
for (;;)
{
if (ogg_stream_pageout (&os, &og) == 0)
break;...
2004 Aug 06
2
vorbis_encode_init() bitrate arguments - offtopic
Hi,
It's a bit offtopic for this list, but you might be able to help. For
libvorbis rc3, what is the correct bitrate parametrization for the call
vorbis_encode_init()?
For rc2, it worked calling it the following way:
vorbis_encode_init( &vorbisInfo,
2, // two channels
44100, // 44.1kHz
2005 Sep 26
2
encoder_example.c Questions
...ysis, then divvies up blocks for
more involved (potentially parallel) processing. Get a single
block for encoding now */
while(vorbis_analysis_blockout(&vd,&vb)==1){
/* analysis, assume we want to use bitrate management */
vorbis_analysis(&vb,NULL);
vorbis_bitrate_addblock(&vb);
while(vorbis_bitrate_flushpacket(&vd,&op)){
/* weld the packet into the bitstream */
ogg_stream_packetin(&os,&op);
/* write out pages (if any) */
while(!eos){
int result=ogg_stream_pageout(&os,&og);
if(re...
2004 Aug 06
2
Darkice on Linux PPC
...ion)
VorbisLibEncoder.cpp:159: `vorbis_encode_setup_init' undeclared (first use this function)
VorbisLibEncoder.cpp:118: warning: `int ret' might be used uninitialized in this function
VorbisLibEncoder.cpp: In method `void VorbisLibEncoder::vorbisBlocksOut()':
VorbisLibEncoder.cpp:319: `vorbis_bitrate_addblock' undeclared (first use this function)
VorbisLibEncoder.cpp:321: `vorbis_bitrate_flushpacket' undeclared (first use this function)
make[2]: *** [VorbisLibEncoder.o] Error 1
make[2]: Leaving directory `/usr/darkice/darkice/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directo...
2004 Sep 03
1
Vorbis Tools installation problem
...cit declaration of function
`vorbis_encode_setup_managed'
encode.c:191: error: `OV_ECTL_RATEMANAGE_AVG' undeclared (first use in
this function)
encode.c:201: warning: implicit declaration of function
`vorbis_encode_setup_init'
encode.c:284: warning: implicit declaration of function
`vorbis_bitrate_addblock'
encode.c:286: warning: implicit declaration of function
`vorbis_bitrate_flushpacket'
make[2]: *** [encode.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
Does anyone have any advice on how to solve this problem? What exactly
is the problem? I've w...
2002 Jan 01
6
new vorbisenc behaviour
Just got around to compiling RC3 under beos and came across an
anomaly when using managed bitrates.
I haven't changed the code for the beos encoder but I now get double
the bitrates so
vorbis_encode_init(&vi,mediaFormat.u.raw_audio.channel_count,(long)mediaFormat.u.raw_audio.frame_rate , -1, 128000, -1);
now gives me vorbis files that average around 325 - 350.
Is this now the correct
2002 Jan 01
3
problem building vorbis-tools-1.0rc3
...o encode.o
platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm
/usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a
encode.o: In function `oe_encode':
encode.o(.text+0x90): undefined reference to `vorbis_encode_init_vbr'
encode.o(.text+0x342): undefined reference to `vorbis_bitrate_addblock'
encode.o(.text+0x362): undefined reference to `vorbis_bitrate_flushpacket'
collect2: ld returned 1 exit status
make[2]: *** [oggenc] Error 1
make[2]: Leaving directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/loca...
2004 Aug 06
0
vorbis_encode_init() bitrate arguments - offtopic
...circa 240 kbps Ogg Vorbis stream
>(as reported by xmms). I tried putting 96000 in place of the -1 values,
>and also putting 96 instread of 96000, but no luck.
>
>Any hints would be greatly apprieciated.
See the examples. If you initialise a managed mode (which this is), you
MUST use vorbis_bitrate_addblock() and vorbis_bitrate_flushpacket().
You SHOULD also give an option to set min/max, since they're now used,
and to use a VBR mode rather than the managed modes here.
Michael
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org...
2004 Aug 06
0
Darkice on Linux PPC
...59: `vorbis_encode_setup_init' undeclared (first
> use this function)
> VorbisLibEncoder.cpp:118: warning: `int ret' might be used uninitialized
> in this function
> VorbisLibEncoder.cpp: In method `void VorbisLibEncoder::vorbisBlocksOut()':
> VorbisLibEncoder.cpp:319: `vorbis_bitrate_addblock' undeclared (first
> use this function)
> VorbisLibEncoder.cpp:321: `vorbis_bitrate_flushpacket' undeclared (first
> use this function)
> make[2]: *** [VorbisLibEncoder.o] Error 1
> make[2]: Leaving directory `/usr/darkice/darkice/src'
> make[1]: *** [all-recursive]...
2004 Jun 25
1
Compile problems on libtheora-1.0alpha3
...t/garnome3/lib
-L/usr/X11R6/lib ../lib/.libs/libtheora.so /usr/lib/libvorbisenc.so
-L/lib /usr/lib/libvorbis.so /usr/local/lib/libogg.so -lm
/usr/lib/libogg.so -Wl,--rpath -Wl,/usr/test/garnome3/lib
encoder_example.o(.text+0x8e2): In function `fetch_and_process_audio':
: undefined reference to `vorbis_bitrate_addblock'
encoder_example.o(.text+0x8f4): In function `fetch_and_process_audio':
: undefined reference to `vorbis_bitrate_flushpacket'
encoder_example.o(.text+0x16fc): In function `main':
: undefined reference to `vorbis_encode_init_vbr'
encoder_example.o(.text+0x1c37): In function `main...
2002 Mar 17
1
vorbis-tools rc3 link trouble
...o encode.o platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a
encode.o: In function `oe_encode':
encode.o(.text+0x87): undefined reference to `vorbis_encode_init_vbr'
encode.o(.text+0x34c): undefined reference to `vorbis_bitrate_addblock'
encode.o(.text+0x3f4): undefined reference to `vorbis_bitrate_flushpacket'
collect2: ld returned 1 exit status
make[2]: *** [oggenc] Error 1
make[2]: Leaving directory `/usr/local/src/vorbis/vorbis-tools-1.0rc3/oggenc'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/u...
2004 Aug 06
2
Liveice on Linux PPC || use ices => use darkice
>
>
>>
>>
>> I can't get darkice to compile (error in 'MultiThreadedConnector.cpp')
>> and there is no darkice RPM for PPC.
>
>
> Please use the CVS version of darkice, which includes a fix for the
> problem you mentioned.
<p>OK, I got the CVS version of darkice.
Now when I run 'make' I get the following error(s):
2002 Jan 02
2
RC3 Changes needed for MacOS
...RCS file: /usr/local/cvsroot/vorbis/mac/libvorbis.mcp.exp,v
retrieving revision 1.2
diff -u -r1.2 libvorbis.mcp.exp
--- mac/libvorbis.mcp.exp 2000/11/22 06:15:19 1.2
+++ mac/libvorbis.mcp.exp 2002/01/03 07:21:48
@@ -23,6 +23,8 @@
vorbis_analysis_wrote
vorbis_analysis_blockout
vorbis_analysis
+vorbis_bitrate_addblock
+vorbis_bitrate_flushpacket
# Vorbis PRIMITIVES: synthesis layer
@@ -43,10 +45,10 @@
_vi_psy_copy
_vp_compute_mask
-_vp_apply_floor
### From "xxx.h" (for VorbisEncLib)
_time_P
_floor_P
_residue_P
_mapping_P
+residue_free_info
Index: mac/libvorbisenc.mcp.exp
===========...
2003 Nov 08
2
Encoding in Delphi - Help
...eave_little_endian(buffer,@readbuffer[0],bytes div 4);
uninterleave(buffer,@readbuffer[0],bytes div 4);
vorbis_analysis_wrote(vd, bytes div 4);
end;
fix;
while(vorbis_analysis_blockout(vd,vb)=1) do
begin
fix;
vorbis_analysis(vb,op);
fix;
vorbis_bitrate_addblock(vb);
fix;
while(vorbis_bitrate_flushpacket(vd,op)<>0) do
begin
fix;
ogg_stream_packetin(os,op);
while (not eos) do
begin
fix;
result:=ogg_stream_pageout(os,og);
if(result=0) Then
break;
OutFile...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...alysis_wrote (&info->vd, samples);
}
- while(vorbis_analysis_blockout (&info.vd, &info.vb) == 1){
+ while(vorbis_analysis_blockout (&info->vd, &info->vb) == 1){
/* analysis, assume we want to use bitrate management */
- vorbis_analysis (&info.vb, NULL);
- vorbis_bitrate_addblock (&info.vb);
+ vorbis_analysis (&info->vb, NULL);
+ vorbis_bitrate_addblock (&info->vb);
/* weld packets into the bitstream */
- while (vorbis_bitrate_flushpacket (&info.vd, &info.op)){
- ogg_stream_packetin (&info.vo, &info.op);
+ while (vorbis_bitrate...