Displaying 17 results from an estimated 17 matches for "ogg_page_eos".
2001 Sep 02
0
Encoding process
...dump packet into stream -- ogg_stream_packetin()
26 while not end of stream:
27 get page from stream: -- ogg_stream_pageout()
28 if no page available:
29 break
30 write page to file
31 if nothing written:
32 fatal error
33 check if end of stream -- ogg_page_eos()
34 clear stream -- ogg_stream_clear()
35 clear block -- vorbis_block_clear()
36 clear dsp -- vorbis_dsp_clear
37 clear info -- vorbis_info_clear()
---
First of all, is the above correct? If not please let me know.
Second, I want to partition the above process into multiple functions i.e., so
th...
2009 Dec 12
1
Skipping of sample in ogg writing
...;os, &op);
for (;;)
{
if (ogg_stream_pageout (&os, &og) == 0)
break;
mywrite (og.header, og.header_len);
mywrite (og.body, og.body_len);
if (ogg_page_eos (&og))
break;
}
}
}
return true;
}
//==============================================================================
Thanks and Regards,
Charan D'Souza
2009 Dec 12
1
Skipping of sample in ogg writing
...;os, &op);
for (;;)
{
if (ogg_stream_pageout (&os, &og) == 0)
break;
mywrite (og.header, og.header_len);
mywrite (og.body, og.body_len);
if (ogg_page_eos (&og))
break;
}
}
}
return true;
}
//==============================================================================
Thanks and Regards,
Charan D'Souza
2005 Sep 26
2
encoder_example.c Questions
...;
if(result==0)break;
fwrite(og.header,1,og.header_len,stdout);
fwrite(og.body,1,og.body_len,stdout);
/* this could be set above, but for illustrative purposes, I do
it here (to show that vorbis does know where the stream
ends) */
if(ogg_page_eos(&og))eos=1;
}
}
Can anyone elaborate on what is happening in these two sections of
code? Also if anyone has more / better examples for libvorbis please
let me know.
Thanks in advance.
Dan Mikusa
dan@trz.cc
-------------- next part --------------
An HTML attachment was scru...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...// EOS test has to be up front because, of course, everything in the universe
// releases the page so you have to get to it *before* it disappears
// and store it yourself in spite of the fact that the page stores it
// very nicely (until it gets freed). Grrrrrrr ...
if (ogg_page_eos(og)) {
flgEOSPage = 1;
dprintf("End of stream found\n");
}
s_rv0 = ogg_stream_pagein(os, og);
dprintf("Page in: %d %d %p %p\n", pageCount, s_rv0, os, og);
if (s_rv0 < 0) {
// FIXME: ARRRGGGGHHH!!! ogg_stream_pagein releases the page on error.
//...
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...r'
decoder_example.o(.text+0x2c0): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x30c): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0x318): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x4ac): undefined reference to `ogg_page_eos'
decoder_example.o(.text+0x4f4): undefined reference to `ogg_stream_pagein'
decoder_example.o(.text+0x508): undefined reference to `ogg_stream_packetout'
decoder_example.o(.text+0x5c4): undefined reference to `ogg_sync_clear'
../lib/.libs/libvorbis.so: undefined reference to `oggpac...
2003 Nov 08
2
Encoding in Delphi - Help
...ketin(os,op);
while (not eos) do
begin
fix;
result:=ogg_stream_pageout(os,og);
if(result=0) Then
break;
OutFile.Write(Pointer(og.header)^, og.header_len);
OutFile.Write(Pointer(og.body)^, og.body_len);
fix;
if(ogg_page_eos(og) <>0) then
eos:= true;
end;
end;
end;
end;
-----------------------------------------------------------------------------------------------
I'm not an expert, so I don't know what I should use: beg endian, or little endian.
Matthijs Laan uses: SAM...
2001 Dec 02
2
bug report for oggenc in CVS: vorbis-tools/oggenc/encode.c
...]
/* If we've gone over a page boundary, we can do actual output,
so do so (for however many pages are available) */
while(!eos)
{
[...]
if(ogg_page_eos(&og))
eos = 1;
}
}
}
Now, backtracing through vorbis/lib, it seems to me that the inner eos is
being used to stop the output when we've temporarily run out of input,
which is fine. But the SAME eos flag...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...amState,
oggPage);
return 0;
}
void VideoStreamTheora::decodeAndRenderFrameToTexture
(irr::video::ITexture* texture)
{
using namespace irr;
using namespace irr::core;
moviePositionBytes = videoStream.tellg();
// DIDN'T WORK:
//if (ogg_page_eos (&oggPage))
// DIDN'T WORK:
//if (moviePositionBytes == movieLengthBytes)
// EOF BEING DETECTED, BUT THE REWIND / EXIT+INIT DOESN'T:
if (videoStream.eof())
{
rewind();
//exitMovie();
//initMovie();
}...
2004 Jun 18
5
Patch to stop vcut from generating broken streams
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://westfish.xiph.org/pipermail/vorbis-dev/attachments/20040618/e7bee431/attachment.pgp
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...it out */
/* [ intentionally blank ] */
vorbis_synthesis_read(&vd,samples); /* tell libvorbis how
many samples we
actually consumed */
}
}
}
if(ogg_page_eos(&og))eos=1;
}
if(!eos){
buffer=ogg_sync_buffer(&oy,4096);
bytes=read(STDIN_FILENO,buffer,4096);
if(bytes==0)eos=1;
}else
ogg_sync_wrote(&oy,bytes);
}
/* clean up and exit (this example doesn't deal with the possibility
of chaining logical streams) */
o...
2006 Sep 11
4
encode, decode and encode again
(I've already posted this message month ago, but nobody answered, may be
it was not delivered to newsgroup?)
Hello, All.
I wrote an encoder-decoder based on example from OGG-Vorbis SDK.
This encoder can encode a large amount of small WAV-files with equal
parameters into one sound archive.
Then I decode this sound archive back into large amount of small
WAV-files.
Theese files are
2015 May 18
5
Writting 16-bit PCM data to Ogg.
Hi Developers,
I have a 16-bit PCM data buffer, I want to write that to ogg file. Could
you help me to understand how to write pcm data to the ogg?
Thanks in advance.
Arun balaji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/6c8c9a63/attachment.htm
2015 Nov 05
3
Opusfile seeking bug
...while(ogg_sync_pageout(&m_syncState, &page) != 1)
{
buffer = ogg_sync_buffer(&m_syncState, BufferSize);
bytesRead = fread(buffer, sizeof(char), BufferSize, fp);
ogg_sync_wrote(&m_syncState, bytesRead);
}
// If this is the last page, then don't loop again.
if(ogg_page_eos(&page) > 0)
decoding = 0;
if(serialno < 0)
{
serialno = ogg_page_serialno(&page);;
ogg_stream_init(&m_streamState, serialno);
}
headerFLags = page.header[5];
pageContinuesPacket = headerFLags & 1;
ogg_stream_pagein(&m_streamState, &page);
firs...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...stdout);
vorbis_synthesis_read(&vd,bout); /* tell libvorbis how
many samples we
actually consumed */
}
}
}
if(ogg_page_eos(&og))eos=1;
}
}
if(!eos){
buffer=ogg_sync_buffer(&oy,4096);
/* changed from stdin to myFile in next line - GK */
bytes=fread(buffer,1,4096,myFile);
ogg_sync_wrote(&oy,bytes);
if(bytes==0)eos=1;
}
}
/* clean u...
2008 Apr 04
0
speexdec 1.2.3
...&og);
if (page_granule>0 && frame_size)
{
/* FIXME: shift the granule values if --force-* is specified */
skip_samples = frame_size*(page_nb_packets*granule_frame_size*nframes - (page_granule-last_granule))/granule_frame_size;
if (ogg_page_eos(&og))
skip_samples = -skip_samples;
/*else if (!ogg_page_bos(&og))
skip_samples = 0;*/
} else
{
skip_samples = 0;
}
/*printf ("page granulepos: %d %d %d\n", skip_samples, page_nb_packets, (in...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin
<jean-marc.valin at usherbrooke.ca> wrote:
> Jahn, Ray (R.) a ?crit :
>
> > Dear Speex codec community:
> >
> > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any