Displaying 15 results from an estimated 15 matches for "ogg_sync_state".
2001 Feb 22
1
ogg_sync_state with interleaved logical streams
Hi all,
I'm mixing logical streams at the page level. One stream has vorbis
data, the other has my own data. Do I need two ogg_sync_states or just
one?
Thanks,
Martin
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject i...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...defined(__MWERKS__)
#include <console.h> /* CodeWarrior's Mac "command-line" support */
#endif
#define dprintf(...) fprintf(stderr, __VA_ARGS__)
#define BCHUNKSIZE 8192
static long bytesConsumed = 0;
// FIXME: This is one of the places that can throw errors
int grabData(ogg_sync_state *oy) {
unsigned char* bb = ogg_sync_bufferin(oy, BCHUNKSIZE);
long bytesRead = fread(bb, 1, BCHUNKSIZE, stdin);
dprintf("Consumed: %ld bytes\n", bytesRead);
if (bytesRead == 0) {
// For now, EOF
return(-1);
}
ogg_sync_wrote(oy, bytesRead);
bytesConsumed += bytesRe...
2007 Feb 16
1
AW: How to do Theora playback efficiently ?
...is pages (only all those theora pages) you don't get any new packets and
so run out of data.
Thanks for the hint related to the liboggplay API.
But did you read it's source code? Please tell me, why there you can't find
any of these functions or states we are talking about. There is no
ogg_sync_state, no ogg_stream_state, no pagein, no pageout, no packeout,
nothing at all besides vorbis/theora decode calls. So why the developer is
working with his own functions only?
I think it's because most of the ogg sync/stream handling functions are crap
or at least not usable in efficient real world...
2007 Feb 15
1
How to do Theora playback efficiently ?
...theora streams are possible (or you get thos collissions).
I think, an ideal solution are two "pointers" in seperate threads reading
independently the physical source stream and grab their pages (and
prepare/decode them) but ignore the other ones and don't need to wait. So I
need two ogg_sync_states or something like that?
It must work in a way without all these ogg states because in the case of
Direct Show the filters (ogg demuxer, vorbis decoder, theora decoder) are
completely independent from propritary ogg states (they are not visible for
others outside a COM object).
It would be great...
2008 Apr 27
1
initialization issues
I guess I'm missing something since the following minimized test case is failing:
>>>
#include "ogg/ogg.h"
main() {
ogg_sync_state the_ogg_sync_state;
ogg_sync_init(&the_ogg_sync_state);
ogg_sync_destroy( &the_ogg_sync_state );
}
>>>
$ gcc -g -logg test.c
$ ./a.out
*** glibc detected *** ./a.out: munmap_chunk(): invalid pointer: 0x00007fffe0562330 ***
======= Backtrace: =========
/lib/libc....
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,
2010 Jan 06
1
Initializing vorbis using ov_open_callbacks fail with OV_ENOTVORBIS. But why?
Dear members,
since two weeks I am stuck, trying to demux a physical ogg stream
(theora and vorbis) and play the audio part using vorbisfile.
I hope that one of you can give me a hint or point me to additional
documentation.
I used ogg.h and vorbisfile.h.
The way so far:
- initializing an ogg_sync_state
- inserting data to sync_state using ogg_sync_buffer
- when whole page found (ogg_sync_pageseek(&sync, &page) > 0) I
initialize a ogg_stream_state and add page using ogg_stream_packetin.
(in the case the first packet is vorbis - ogg_stream_packetout and
check for first some bytes)
-...
2008 Apr 29
2
More trival questions
...printf("Magic!\n");
}
else {
printf("no Magic!\n");
}
}
else {
printf("not a header\n");
}
}
int main( int argc, char** argv) {
ogg_sync_state the_ogg_sync_state;
ogg_stream_state the_ogg_stream_state;
ogg_page the_ogg_page;
ogg_packet the_ogg_packet;
char* buffer;
size_t bytes_actually_read;
FILE* source;
if (argc < 2) {
printf("No file\n");...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...stream>
#include <ogg/ogg.h>
#include <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;...
1999 Oct 04
3
Detailed decoder pseudocode (was: Re: ETA?)
...alls. There will be a similar thing performing the same
function making libvorbis calls in the near future that looks alot like part
of the below).
OK, now I go get on an airplane. See you all tomorrow :-)
--- >8 cut here ----
/* ignoring proper error handling, signals, main(), etc :-) */
ogg_sync_state oy; /* sync and verify incoming physical bitstream */
ogg_stream_state os; /* take physical pages, weld into a logical
stream of packets */
ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */
ogg_packet op; /* one raw packet of data for deco...
2015 Nov 05
3
Opusfile seeking bug
...t;
#include <opus.h>
#include <opusfile.h>
#include <stdint.h>
int64_t FindBrokenSeekPoint(char* filename)
{
// Visual studio doesn't do C99 and I'm converting from C++
// so dump all the decelerations here to make it build as C89.
static const long BufferSize = 8192;
ogg_sync_state m_syncState;
ogg_stream_state m_streamState;
int64_t m_lastGranulePos = 0;
int64_t failingSeekPoint = -1;
int32_t serialno = -1;
int fpp, spf;
int decoding = 1;
ogg_page page;
char* buffer = NULL;
long bytesRead = 0;
uint8_t headerFLags = 0;
int pageContinuesPacket = 0;
int firstPacket...
2002 Aug 06
0
Getting a GUI to work with Vorbis code
..., m_hIcon);
}
else
{
CDialog::OnPaint();
}
}
// The system calls this to obtain the cursor to display while the user
drags
// the minimized window.
HCURSOR CGUIDlg::OnQueryDragIcon()
{
return (HCURSOR) m_hIcon;
}
void CGUIDlg::OnPlay()
{
ogg_sync_state oy; /* sync and verify incoming physical bitstream */
ogg_stream_state os; /* take physical pages, weld into a logical
stream of packets */
ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside
*/
ogg_packet op; /* one raw packet of data...
2008 Apr 04
0
speexdec 1.2.3
...{"rate", required_argument, NULL, 0},
{"mono", no_argument, NULL, 0},
{"stereo", no_argument, NULL, 0},
{"packet-loss", required_argument, NULL, 0},
{"fmt-out", required_argument, NULL, 0},
{0, 0, 0, 0}
};
ogg_sync_state oy;
ogg_page og;
ogg_packet op;
ogg_stream_state os;
int enh_enabled;
int nframes=2;
int print_bitrate=0;
int close_in=0;
int eos=0;
int forceMode=-1;
int audio_size=0;
float loss_percent=-1;
SpeexStereoState stereo = SPEEX_STEREO_STATE_INIT;
int cha...
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