Displaying 20 results from an estimated 62 matches for "ogg_pag".
Did you mean:
ogg_page
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...in() {
int rv0 = 0;
int dr0 = 0;
// These abbreviations use the ogg internal conventions
// Caution: libogg uses NULL as a sentinel in places. If you feed non-NULL,
// on initial calls you can get into trouble
ogg_sync_state *oy = NULL;
// FIXME: Why is this magic required to make ogg_page work?
// FIXME: Why is there no ogg_page_create?
ogg_page og_allocated = {0, 0, 0, 0};
ogg_page *og = &og_allocated;
oy = ogg_sync_create();
int flgBail = 0;
int pageCount = -1;
while(!flgBail) {
dprintf("Page: %d\n", pageCount);
rv0 = 0;
while(rv0 != 1 &...
2004 Oct 18
3
ogg_packet -> ogg_page
...// try to extract a page
ogg_stream_pageout(os, og)
ogg_stream_pageout() always seems to return a valid ogg page - however,
it does "return" the page, but it does not "extract" the page from the
stream - if i call ogg_stream_pageout() more then once, i always get the
same ogg_page.
replacing ogg_stream_pageout() with ogg_stream_flush() got the same results.
what is the proper way of creating an ogg_page?
Thank you very much,
Chris
2004 Aug 02
1
cheap way of getting number of frames in an ogg_page?
Hi,
i just wonder if there's a cheap way of getting the number of oggVorbis
pcm frames in an ogg_page, without actually decoding it?
Can i use the granulepos of the page, substract the granulepos of the
previous page? is this always guaranteed to work?
thanks,
Chris
2005 Jun 22
2
ogg_sync_pageout
It seems to me that running ogg_sync_pageout doesn't automatically advance
the page. This is good if you haven't worked with the given page, makes
coding somewhat easier. However, when does a page advance. Is it after a
call to ogg_stream_pagein?
On a side note, I need to do seeking on top of libvorbis, I'd love to use
vorbisfile but sadly I can't. Is there a reasonable way to
2005 Feb 09
1
Trying to do windows encoding dll
...ions sends the frame
3.) client application receives frame
4.) client application tells the dll to decompress the data
So if I try to do this, something is going wrong...
Perhaps someone could have a look at my source code and tell me what?
After encoded the frame, the body_length attribute of the ogg_page op
from encode has some reasonable value. But sizeof(*op->body) returns 1...
The output I get is a big black screen...
Any suggestions?
Thanks and best regards,
Florian
(Stuttgart, GERMANY)
#include <windows.h>
#include "theora/theora.h"
theora_state enc_state;
int enc_...
2006 Jan 13
2
libogg2 issue in revision 10730
...initialize your b before calling the function
though (like oggpack_buffer * b = NULL;), but you wouldn't have to
reveal the structure itself (enabling the definition of such a struct).
[I see, I can't make a short speech...]
While we're at it: I found that the function
extern int ogg_page_getbuffer(ogg_page *og, unsigned char **buffer);
is declared in ogg.h but not defined. (I am glad however to find such a
function; earlier it did not exist. This should be possible for packets
too for reading and writing because it's faster if you don't write
single bits.)
Yet another th...
2008 Oct 29
1
forcing eos on last theora packet (was Re: Theora 1.0 RC2)
...gt; encoders, like speex).
Hi,
I think a simpler approach might be for you to directly set the eos
flag on the last ogg page, after you have retrieved it from
ogg_stream_pageout(). You can use a function like this (copied from
oggz-chop.c, where it similarly cuts the end of a file):
static void
_ogg_page_set_eos (const ogg_page * og)
{
if (og == NULL) return;
og->header[5] |= 0x04;
ogg_page_checksum_set (og);
}
> Furthermore, since API claims that the 1-1 correspondance with YUV encoded
> buffer and ogg packet might not remain in the futur, I believe such function
> may be usef...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...e <theora/theora.h>
#include "VideoStreamable.h"
namespace camilla
{
class VideoStreamTheora : public VideoStreamable
{
int movieLengthBytes;
int moviePositionBytes;
ogg_sync_state oggSyncState;
ogg_page oggPage;
ogg_packet oggPacket;
ogg_stream_state vorbisStreamState;
ogg_stream_state theoraStreamState;
theora_info theoraInfo;
theora_comment theoraComment;
theora_state theoraState;...
2005 Oct 05
1
Simple encodig sample...
...352;
int frame_y = 288;
int frame_x_offset = 0;
int frame_y_offset = 0;
int video_hzn = 25;
int video_hzd = 1;
int video_an = 1;
int video_ad = 1;
int video_r = 320000;
int video_q = 16;
int frame_counter = 250;
signed char *yuvframe;
int fetch_video_page( ogg_page *videopage, ogg_stream_state *to,
theora_state *td )
{
yuv_buffer yuv;
ogg_packet op;
yuv.y_width = video_x;
yuv.y_height = video_y;
yuv.y_stride = video_x;
yuv.uv_width = video_x / 2;
yuv.uv_height = video_y / 2;
yuv.uv_stride = video_x / 2;
yuv.y = yuv...
2009 May 18
2
clearification
Greetings,
How does the ogg_page_bos function work? 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...
2012 May 21
1
Problems seeking with liboggz
...// TestaOgg.cpp : Defines the entry point for the console application.
#include "stdafx.h"
#include <exception>
#include <oggz/oggz.h>
int myReadPacketCallback (OGGZ* oggz, oggz_packet* packet, long serialno, void* user_data);
int myReadPageCallback (OGGZ* oggz, const ogg_page* og, long serialno, void* user_data);
int _tmain(int argc, _TCHAR* argv[])
{
OGGZ* pOGGZ;
int ret;
oggz_off_t ofs;
pOGGZ = oggz_open("MyAudio.spx", OGGZ_READ | OGGZ_AUTO);
ret = oggz_set_read_callback (pOGGZ, -1, myReadPacketCallback, (void*)0);
ret = oggz_s...
2005 Jul 19
2
problem compiling with linux
...function it appears in.)
speexenc.c:71: error: `fp' undeclared (first use in this function)
speexenc.c: In function `main':
speexenc.c:267: error: `ogg_stream_state' undeclared (first use in
this function)
speexenc.c:267: error: parse error before "os"
speexenc.c:268: error: `ogg_page' undeclared (first use in this function)
speexenc.c:269: error: `ogg_packet' undeclared (first use in this function)
speexenc.c:438: error: `os' undeclared (first use in this function)
speexenc.c:632: error: `op' undeclared (first use in this function)
speexenc.c:648: error: `og...
2008 Mar 28
2
speex - cross compil for ARM - problem ogg headers
...function it appears in.)
speexenc.c:76: error: `fp' undeclared (first use in this function)
speexenc.c: In function `main':
speexenc.c:272: error: `ogg_stream_state' undeclared (first use in this function)
speexenc.c:272: error: parse error before "os"
speexenc.c:273: error: `ogg_page' undeclared (first use in this function)
speexenc.c:274: error: `ogg_packet' undeclared (first use in this function)
speexenc.c:443: error: `os' undeclared (first use in this function)
speexenc.c:641: error: `op' undeclared (first use in this function)
speexenc.c:657: error: `og...
2007 Jul 12
1
unable to compile speex-1.1.10
...function it appears in.)
speexenc.c:71: error: `fp' undeclared (first use in this function)
speexenc.c: In function `main':
speexenc.c:267: error: `ogg_stream_state' undeclared (first use in this
function )
speexenc.c:267: error: parse error before "os"
speexenc.c:268: error: `ogg_page' undeclared (first use in this function)
speexenc.c:269: error: `ogg_packet' undeclared (first use in this function)
speexenc.c:438: error: `os' undeclared (first use in this function)
speexenc.c:632: error: `op' undeclared (first use in this function)
speexenc.c:648: error: `og...
2004 Jun 29
3
Struct Fields Description
Hello all
Can anyone point me to some form of description for the fields in the
following structures :
1/ vorbis_dsp_state
2/ vorbis_block
Thank you.
regards
~previr
_____________________________________________________________
Previr Rangroo STMicroelectronics
Associate Systems Lab Engineer Plot No. 2 & 3,
Audio Competence Center Sector 16A,
2004 Jun 29
3
Struct Fields Description
Hello all
Can anyone point me to some form of description for the fields in the
following structures :
1/ vorbis_dsp_state
2/ vorbis_block
Thank you.
regards
~previr
_____________________________________________________________
Previr Rangroo STMicroelectronics
Associate Systems Lab Engineer Plot No. 2 & 3,
Audio Competence Center Sector 16A,
2002 Mar 10
3
Finding length (time) of encoded birstream
I'm adding some final features to my CD Ripper and Encoder before the full,
version 1 release. As part of that release, the program will offer the
ability to play (for review purposes) both WAV and OGG files. I have both
the decoder and playback code working but I have one final issue to resolve:
finding the play time for the Vorbis bitstream that is being played back. I
used the
2002 Oct 02
2
Audio from fifo
My first guess about the problem would be that the programs want
to process the stuff in a different order, e.g. mplayer wants to
output some sound before anymore video and encoder_example wants
to receive some video before anymore sound. This could easily
depend on the order of stuff in the file mplayer is reading.
I guess something similar could happen for opening the pipes as
well.
The
2015 Oct 17
1
Why does this code not generate a valid opus file?
...8];
unsigned int vendorStringLength; //Must be set to 0
//In-between here we would place out vendor string, if we had one.
unsigned int userCommentListLength; //Must be set to 0
//And after here we would place our comments, if we had any.
};
int main(){
ogg_stream_state os;
ogg_page og;
FILE* fout = fopen("/tmp/trivial.opus", "wb");
if ( fout == 0 ) {
printf( "Error opening output file.\n" );
return -1;
}
//**************
//Initialize the stream
srand(0);
ogg_stream_init(&os,rand()...
2008 Apr 01
2
cross compilation for ARM - ogg headers problem
...speexenc.c:71: error: `fp' undeclared (first use in this function)
> speexenc.c: In function `main':
> speexenc.c:267: error: `ogg_stream_state' undeclared (first use in this function)
> speexenc.c:267: error: parse error before "os"
> speexenc.c:268: error: `ogg_page' undeclared (first use in this function)
> speexenc.c:269: error: `ogg_packet' undeclared (first use in this function)
> speexenc.c:438: error: `os' undeclared (first use in this function)
> speexenc.c:632: error: `op' undeclared (first use in this function)
> speex...