search for: ogg_page_serialno

Displaying 20 results from an estimated 20 matches for "ogg_page_serialno".

2004 Nov 01
1
compile libvorbis using mingw?
...le.dll.a gcc -shared .libs/vorbisfile.o -L/mingw/lib ./.libs/libvorbis.dll.a -o .libs/libvorbisfile-3.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/libvorbisfile.dll.a Creating library file: .libs/libvorbisfile.dll.a .libs/vorbisfile.o(.text+0xcd):vorbisfile.c: undefined reference to `ogg_page_serialno' .libs/vorbisfile.o(.text+0x16b):vorbisfile.c: undefined reference to `ogg_page_serialno' .libs/vorbisfile.o(.text+0x23e):vorbisfile.c: undefined reference to `ogg_sync_reset' .libs/vorbisfile.o(.text+0x29b):vorbisfile.c: undefined reference to `ogg_sync_reset' .libs/vorbisfile.o...
2006 Aug 06
2
Speex + Ogg package
..._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_wrote(&oy,len); while(ogg_sync_pageout(&oy,&audio_page)>0) { if (stream_init == 0) { ogg_stream_init(&os, ogg_page_serialno(&audio_page)); stream_init = 1; } queue_page(&audio_page); while(ogg_stream_packetout(&os,&op)>0) { int b; ogg_stream_pagein(&os, &audio_page); int len=(audio_page.body_len-4)/FRAMES_PACKET; char *datos=(char*)op.p...
2009 May 15
0
[PATCH] oggz: limit seeking to specified range
..., &serialno) >= 0) { unit_end = oggz_get_unit (oggz, serialno, granulepos); } } + if (unit_begin == -1 && oggz_seek_raw (oggz, offset_begin, SEEK_SET) >= 0) { + ogg_int64_t granulepos; + if (oggz_get_next_start_page (oggz, og) >= 0) { + serialno = ogg_page_serialno (og); + granulepos = ogg_page_granulepos (og); + unit_begin = oggz_get_unit (oggz, serialno, granulepos); + } + } + + /* Fail if target isn't in specified range. */ + if (unit_target < unit_begin || unit_target > unit_end) + return -1; + + /* Reduce the search range if...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...te serial number change // because ogg_stream_pagein does braindead release on error and // ogg_page_bos() doesn't seem to work for a concatenated stream. dprintf("Beginning of stream found\n"); // Use hex to match ogginfo return dprintf("Setting serial number: %x\n", ogg_page_serialno(og)); ogg_stream_reset_serialno(os, ogg_page_serialno(og)); } // 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 stor...
2009 May 12
2
compile error of libtheora example
..._init' player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init' player_example.c:(.text+0xe47): undefined reference to `theora_info_init' player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos' player_example.c:(.text+0xeb1): undefined reference to `ogg_page_serialno' player_example.c:(.text+0xec3): undefined reference to `ogg_stream_init' player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein' player_example.c:(.text+0xef1): undefined reference to `ogg_stream_packetout' player_example.c:(.text+0xf18): undefined reference to `...
2006 Aug 06
0
Speex + Ogg package
...; //Incoming data from udp is on buffer > char *buffer=ogg_sync_buffer(&oy,4096); > memcpy(buffer,buff,len); > ogg_sync_wrote(&oy,len); > while(ogg_sync_pageout(&oy,&audio_page)>0) > { > if (stream_init == 0) > { > ogg_stream_init(&os, ogg_page_serialno(&audio_page)); > stream_init = 1; > } > queue_page(&audio_page); > > while(ogg_stream_packetout(&os,&op)>0) > { > int b; > ogg_stream_pagein(&os, &audio_page); > int len=(audio_page.body_len-4)/F...
2007 Apr 12
0
Seek problem 1 - can't find frame number
...nd a new page, and fill the buffers again int result; ogg_sync_reset(&sync); while ((result = ogg_sync_pageseek(&sync, &page)) <= 0) if (result == 0) bufferData(); // Find the next theora page while ((result = ogg_sync_pageout(&sync, &page)) == 0) bufferData(); while (ogg_page_serialno(&page) != tstream.serialno) if (ogg_sync_pageout(&sync, &page) <= 0) bufferData(); const ogg_int64_t actualFrame = theora_granule_frame(&decoder, ogg_page_granulepos(&page)); With some files, this code works fine. But with others, the framenumbers I get at the end ha...
2003 Mar 21
1
chaining serial number
...tml tates that "Each chained logical bitstream must have a unique serial number within the scope of the physical bitstream" Doesn't this mean that the sequential multiplexed streams have same serial number? I am confused looking at the following code segment in vorbisfile.c if(ogg_page_serialno(&og)!=serialno){ /* Chained bitstream. Bisect-search each logical bitstream section. Do so based on serial number only */ Please clarify. Regards, Patrick. _______________________________________________________________________ Odomos - the only mosquito protection outside 4 w...
2006 May 09
0
libvorbis build errors when using configure
...undefined reference to `ogg_sync_pageseek' .libs/vorbisfile.o(.text+0xb8):vorbisfile.c: undefined reference to `ogg_sync_buffer' .libs/vorbisfile.o(.text+0xec):vorbisfile.c: undefined reference to `ogg_sync_wrote' .libs/vorbisfile.o(.text+0x237):vorbisfile.c: undefined reference to `ogg_page_serialno' and this goes on for some time. Again it is not finding the libogg file for linking. Any idea as to why it is not working?
2007 Apr 12
1
Seek problem 2 - reinitialization of the decoder
...file. At this point, I have to reinitialize the decoder so the viewing can continue. Again, I have code that works most of the time, but, well... Just after the last file position seek, this code is run: while ((result = ogg_sync_pageout(&sync, &page)) == 0) bufferData(); while (ogg_page_serialno(&page) != tstream.serialno) if (ogg_sync_pageout(&sync, &page) <= 0) // Find a Theora page, not Vorbis. bufferData(); (Same code as pasted in the the seek problem 1 mail) Now, I need to get back into the decoding loop. I do this exactly the same way as when the decoder...
2008 Apr 04
0
speexdec 1.2.3
...data, sizeof(char), 200, fin); ogg_sync_wrote(&oy, nb_read); /*Loop for all complete pages we got (most likely only one)*/ while (ogg_sync_pageout(&oy, &og)==1) { int packet_no; if (stream_init == 0) { ogg_stream_init(&os, ogg_page_serialno(&og)); stream_init = 1; } if (ogg_page_serialno(&og) != os.serialno) { /* so all streams are read. */ ogg_stream_reset_serialno(&os, ogg_page_serialno(&og)); } /*Add page to the bitstream*/ ogg_stream_pagein(&os, &og);...
2008 Apr 29
2
More trival questions
Hopefullly this is once again something trivial I'm missing. I'm still trying to figure out how to pull a part a stream. I get two out the three theora headers I can see in the file (http://v2v.cc/~j/theora_testsuite/320x240.ogg) if I use the buffer in the page struct and nothing usable if I try to use the packet structs. Hopefully this is once again something something trivial I've
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
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...g_sync_init' decoder_example.o(.text+0x3c): undefined reference to `ogg_sync_buffer' decoder_example.o(.text+0x64): undefined reference to `ogg_sync_wrote' decoder_example.o(.text+0x70): undefined reference to `ogg_sync_pageout' decoder_example.o(.text+0x8c): undefined reference to `ogg_page_serialno' decoder_example.o(.text+0xa8): undefined reference to `ogg_stream_init' decoder_example.o(.text+0xc8): undefined reference to `ogg_stream_pagein' decoder_example.o(.text+0xe0): undefined reference to `ogg_stream_packetout' decoder_example.o(.text+0x114): undefined reference to `ogg...
2006 Aug 06
2
Speex + Ogg package
...> > char *buffer=ogg_sync_buffer(&oy,4096); > > memcpy(buffer,buff,len); > > ogg_sync_wrote(&oy,len); > > while(ogg_sync_pageout(&oy,&audio_page)>0) > > { > > if (stream_init == 0) > > { > > ogg_stream_init(&os, ogg_page_serialno(&audio_page)); > > stream_init = 1; > > } > > queue_page(&audio_page); > > > > while(ogg_stream_packetout(&os,&op)>0) > > { > > int b; > > ogg_stream_pagein(&os, &audio_page); > &gt...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...ogg_stream_state testStreamState; if (! ogg_page_bos (&oggPage)) { queue_page (&oggPage); doneScanningHeaders = true; break; } ogg_stream_init (&testStreamState, ogg_page_serialno (&oggPage)); ogg_stream_pagein (&testStreamState, &oggPage); ogg_stream_packetout (&testStreamState, &oggPacket); if(theoraPageCount==0 && theora_decode_header (&theoraInfo,&theoraComment, &oggPacket) >= 0...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...sync_buffer(&oy,4096); bytes=read(STDIN_FILENO,buffer,4096); ogg_sync_wrote(&oy,bytes); /* Get the first page. */ if(ogg_sync_pageout(&oy,&og)!=1){ /* error case. Must not be Vorbis data */} /* Get the serial number and use it to set up a logical stream */ ogg_stream_init(&os,ogg_page_serialno(&og)); /* extract the initial header from the first page and verify that the Ogg bitstream is in fact Vorbis data */ /* I handle the initial header first instead of just having the code read all three Vorbis headers at once because reading the initial header is an easy way to identif...
2015 Nov 05
3
Opusfile seeking bug
...er(&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); firstPacketInPage = 1; packetsToFetch = 1; while(packetsToFetch) { ogg_packet packet; p...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...ror case. Must not be Vorbis data */ fprintf(outputFile,"Input does not appear to be an Ogg bitstream.\n"); exit(1); } /* Get the serial number and set up the rest of decode. */ /* serialno first; use it to set up a logical stream */ ogg_stream_init(&os,ogg_page_serialno(&og)); /* extract the initial header from the first page and verify that the Ogg bitstream is in fact Vorbis data */ /* I handle the initial header first instead of just having the code read all three Vorbis headers at once because reading the initial head...
2007 Oct 17
1
Fwd: Re: FLAC for "ARM little endian for glibc"
...#39; undeclared (first use in this function) ogg_decoder_aspect.c:156: warning: implicit declaration of function `ogg_stream_packetout' ogg_decoder_aspect.c:194: warning: implicit declaration of function `ogg_sync_pageout' ogg_decoder_aspect.c:198: warning: implicit declaration of function `ogg_page_serialno' ogg_decoder_aspect.c:201: warning: implicit declaration of function `ogg_stream_pagein' ogg_decoder_aspect.c:210: warning: implicit declaration of function `ogg_sync_buffer' ogg_decoder_aspect.c:210: warning: initialization makes pointer from integer without a cast ogg_decoder_aspect.c...