Displaying 20 results from an estimated 24 matches for "b_o_s".
Did you mean:
e_o_s
2009 Aug 12
1
Oggz use
...p;
//unsigned char buf[1];
//buf[0] = 'A' + (int)packetno;
unsigned char buf[2];
buf[0] = 0;
buf[1] = 0;
memset(&op, 0, sizeof(ogg_packet));
op.packet = buf;
op.bytes = 2;
//op.bytes = 1;
op.granulepos = granulepos;
op.packetno = packetno;
if (packetno == 0) op.b_o_s = 1;
else op.b_o_s = 0;
if (packetno == 9) op.e_o_s = 1;
else op.e_o_s = 0;
int ret = oggz_write_feed (oggz, &op, serialno, OGGZ_FLUSH_AFTER, NULL);
switch (ret){
castatic long serialno;
static ogg_int64_t granulepos = 0;
static ogg_int64_t packetno = 0;
static int oggzHungry(...
2017 May 18
4
Strange behavior with OGG packets?
...cribed in the above document.
I'm able to write/read matrices of 4x4 and 9x9 and encode->decode first and
second order just fine, but writing larger matrices causes what seems to be
some sort of packet corruption. The OpusHead packet is never found, but in
it's place we have a packet at b_o_s=256 (which is where OpusHead usually
lives), but the byte size is reported to be 0 and e_o_s=0 as well. (This is
generated by parsing the packets via ogg's *ogg_stream_packetout* function.
It appears a matrix larger than 7x16 causes this issue. (The matrix values
are all signed short vals, so &...
2015 Oct 17
1
Why does this code not generate a valid opus file?
...;},
1, //Version
2, //Channels
0, //pre-skip
44100, //Original samplerate
0, //output gain
0}; //Mapping family
ogg_packet header;
header.packet = (unsigned char*)&headerContent;
header.bytes = sizeof(struct OggHeader);
header.b_o_s = 1; //Header must set beginning_of_stream
header.e_o_s = 0;
header.granulepos = -1; //This packet does not contain audio data, so granule-position = -1
header.packetno = 0;
ogg_stream_packetin(&os,&header);
//**************
//Create the comments header...
2002 Sep 19
2
Vorbis files merging
...this connection
some
questions:
A) Are codebooks in file headers depend only on Vorbis version and
encoding parameters and don't depend on the particular source file?
B) Are the following steps enough to do merging?:
- unset e_o_s flags in the last packet of the first file;
- unset b_o_s flags in the first packet of the second file;
- write additionally to the first file data data from the second file,
which
located after headers of the second file, at the same time changing
granuleposes
and packetnos for packets from the second file;
Thanks.
Vitaly.
--- >8 --...
2002 Aug 13
2
Feedback on Ogg Speex file format
...are stored as little-endian. The
speex_string field must contain the ``Speex `` (with 3 training
spaces), which identifies the bit-stream. The next field, speex_version
contains the version of Speex that encoded the file. For now, refer to
speex_header.[ch] for more info. The beginning of stream (b_o_s) flag is
set to 1 for the header. The header packet has packetno=0 and
granulepos=0.
The second packet contains a user-comment string, without terminating
null. The content/format of the comment string is not defined. This
packet has packetno=1 and granulepos=0.
The third and subsequant packets e...
2009 May 18
2
clearification
...ork? I call this function directly
after calling ogg_sync_pageout. It works. Then I place a guard around it
until the start of a new stream (chain mode). If this is the start of a
new stream, should it return zero after the next call. I looked in
ogg_page structure to see if there is a member named b_o_s, but I did
not see anything. What is being used to determine BOS when the
ogg_page_bos function is called?
THKS
Radmin
2009 Mar 18
1
liboggz oggz_get_bos, oggz_get_eos
...I was wondering what oggz_get_bos and oggz_get_eos are supposed to do,
specifically are they meant to be used in oggz_read mode? The
documentation says "Determine if a given logical bitstream is at
[bos/eos]". However if get_bos is given a specific serialno it
returns that stream's b_o_s flag which, in read mode, is set on
initialisation. The serialno=-1 (for all streams) instead checks
delivered_non_b_o_s. Are these functions really intended for write
mode?
Thanks
imalone
2006 Jan 01
2
Re: speexenc always crashes on amd64
...+0100
@@ -629,7 +629,9 @@
/*Write header*/
{
- op.packet = (unsigned char *)speex_header_to_packet(&header, (int*)&(op.bytes));
+ int packet_size;
+ op.packet = (unsigned char *)speex_header_to_packet(&header, &packet_size);
+ op.bytes = size;
op.b_o_s = 1;
op.e_o_s = 0;
op.granulepos = 0;
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: Digital signature
Url : http://lists.xiph.org/pipermail/speex-d...
2006 Aug 06
2
Speex + Ogg package
..._samples;
speex_bits_insert_terminator(&enc_bits);
//The time stamp
if(i==0)
((int*)packet)[0]=total_samples;
}
int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000);
tam=nbBytes+4;
//Now the ogg package
op.packet = (unsigned char *)packet;
op.bytes = nbBytes+4;
op.b_o_s = 0;
op.packetno = packet_id;
packet_id++;
ogg_stream_packetin(&os, &op);
ogg_stream_flush(&os, &audio_page);
return audio_page;
}
As for the decoder I have this.
//Incoming data from udp is on buffer
char *buffer=ogg_sync_buffer(&oy,4096);
memcpy(buffer,buff,len);
ogg_sync_...
2009 May 04
1
[PATCH] oggz: inefficient seeking
...c
+++ b/src/tools/oggz-dump.c
@@ -361,7 +361,7 @@ revert_packet (OGGZ * oggz, ogg_packet * op, long serialno, int flush)
#ifdef DEBUG
printf ("feeding packet (%010lu) %ld bytes %s, %s\n",
- current_serialno, op->bytes,
+ serialno, op->bytes,
op->b_o_s ? "bos" : "not bos",
op->e_o_s ? "eos" : "not eos");
#endif
2006 Aug 06
0
Speex + Ogg package
...t;
> //The time stamp
> if(i==0)
> ((int*)packet)[0]=total_samples;
> }
> int nbBytes = speex_bits_write(&enc_bits, packet+4, 2000);
> tam=nbBytes+4;
>
> //Now the ogg package
> op.packet = (unsigned char *)packet;
> op.bytes = nbBytes+4;
> op.b_o_s = 0;
> op.packetno = packet_id;
> packet_id++;
>
> ogg_stream_packetin(&os, &op);
> ogg_stream_flush(&os, &audio_page);
>
> return audio_page;
> }
>
> As for the decoder I have this.
>
> //Incoming data from udp is on buffer
> char *buffer...
2008 Jul 11
0
Speex issue
...++;
speex_bits_reset(&speexBits);
speex_encode_int(encoderState, inputFrame, &speexBits);
int packetBytes = speex_bits_write(&speexBits, packetBuffer,
PACKET_BUFFER_SIZE);
oggPacket.packet = (unsigned char*)packetBuffer;
oggPacket.bytes = packetBytes;
oggPacket.b_o_s = 0; //this is not the beginning of the stream
oggPacket.e_o_s = (lastFrame) ? 1 : 0;
oggPacket.granulepos = (1 + oggPacketCount) * inputFrameSize -
lookahead;
oggPacket.packetno = 2 + oggPacketCount;
ogg_stream_packetin(&oggStream, &oggPacket);
while (((lastFrame) ? o...
2005 Dec 08
1
A few questions how to use libogg
1.) after initializing a ogg_stream_state may I just keep calling
ogg_stream_packetin with valid ogg_packet's until no more ogg_packets
needs to be added? Or do I need to call ogg_stream_pageout after every
ogg_stream_packetin? Iaw may I delay calling ogg_stream_pageout until
there are no more packets to be added?
2.) I assume I have call ogg_stream_pageout until no more pages can be
2017 May 18
0
Strange behavior with OGG packets?
...ment.
>
> I'm able to write/read matrices of 4x4 and 9x9 and encode->decode first
> and second order just fine, but writing larger matrices causes what seems
> to be some sort of packet corruption. The OpusHead packet is never found,
> but in it's place we have a packet at b_o_s=256 (which is where OpusHead
> usually lives), but the byte size is reported to be 0 and e_o_s=0 as well.
> (This is generated by parsing the packets via ogg's *ogg_stream_packetout* function.
> It appears a matrix larger than 7x16 causes this issue. (The matrix values
> are all sig...
2017 May 18
0
Strange behavior with OGG packets?
...ent.
>
> I'm able to write/read matrices of 4x4 and 9x9 and encode->decode first
> and second order just fine, but writing larger matrices causes what
> seems to be some sort of packet corruption. The OpusHead packet is never
> found, but in it's place we have a packet at b_o_s=256 (which is where
> OpusHead usually lives), but the byte size is reported to be 0 and
> e_o_s=0 as well. (This is generated by parsing the packets via
> ogg's *ogg_stream_packetout* function. It appears a matrix larger than
> 7x16 causes this issue. (The matrix values are all sig...
2007 Apr 14
0
Discontinuous stream support in libogg1
...stream? */
int bos=os->lacing_vals[ptr]&0x100; /* first packet of the stream? */
+ if(op&&os->discont)op->granulepos=os->granule_vals[ptr];
while(size==255){
int val=os->lacing_vals[++ptr];
size=val&0xff;
@@ -885,7 +902,7 @@
op->b_o_s=bos;
op->packet=os->body_data+os->body_returned;
op->packetno=os->packetno;
- op->granulepos=os->granule_vals[ptr];
+ if(!os->discont)op->granulepos=os->granule_vals[ptr];
op->bytes=bytes;
}
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...typedef struct ogg_stream_state {
ogg_reference *header_head;
ogg_reference *header_tail;
ogg_reference *body_head;
ogg_reference *body_tail;
int e_o_s; /* set when we have buffered the last
packet in the logical bitstream */
int b_o_s; /* set after we've written the initial page
of a logical bitstream */
long serialno;
long pageno;
ogg_int64_t packetno; /* sequence number for decode; the framing
knows where there's a hole in the d...
2015 Feb 23
2
library for creating Opus files?
On 23/02/15 10:30 AM, Tony wrote:
> I __think__ opus-tools' opusenc has code which can be used as a
> template/sample for how to create an .Ogg file with Opus content. As
> expected, it makes use of libopus and libogg.
Sadly that's the best option currently. As you say it's a bit
complicated, although oggenc has a lot of extra support for controlling
encoder options you
2008 Mar 31
1
Problem creating ogg comment header for theatrical/stage/disco lighting stream
...nts[i],tc->comment_lengths[i]);
}else{
oggpackB_write(cpi->oggbuffer,0,32);
}
}
}
#ifndef LIBOGG2
op->packet=oggpackB_get_buffer(cpi->oggbuffer);
#else
op->packet=oggpackB_writebuffer(cpi->oggbuffer);
#endif
op->bytes=oggpackB_bytes(cpi->oggbuffer);
op->b_o_s=0;
op->e_o_s=0;
op->packetno=0;
op->granulepos=0;
return (0);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis/attachments/20080331/480d42c9/attachment.htm
2008 Oct 29
1
forcing eos on last theora packet (was Re: Theora 1.0 RC2)
2008/10/29 Romain Beauxis <toots at rastageeks.org>:
>
> I am currently implementing theora for our application.
> In our model for generating ogg streams, we may want to stop
> a stream while not providing a new YUV data buffer for encoding.
>
> Current API doesn't allow such thing, since the eos flag is set by the
> packetout function only when the last_p parameter