similar to: padding in comment header

Displaying 20 results from an estimated 4000 matches similar to: "padding in comment header"

2004 Sep 22
3
copying an ogg stream
dear list, i am trying to write a small program which reads an ogg file and writes it to another ogg file (and changes serial number, granulepos etc on the fly). reading the ogg file is ok (ogg_sync_pageout, ogg_stream_pagein, ogg_stream_packetout). but writing the file doesn't work - the granulepos and page structures don't match with the original file. here's what i am doing.
2004 Oct 18
3
ogg_packet -> ogg_page
hi, in my quest to grok ogg i tried to write a small program which extracts ogg_packets, and stuffs them back into ogg pages (which are then written to a file). extracting the packets works fine, but i have problems stuffing them into a new ogg stream. pseudo code: ogg_stream_init(os, serialno) foreach p in packets: ogg_stream_packetin(os, p) // try to extract a page
2006 Feb 21
3
ogg_stream_flush
Hi, While building an ogg-vorbis stream encoder, I encountered some problems with silence in the audiostream. The bitrate drops to almost zero, and pages going out less then ones a minute what makes the stream to stop / buffer. In earlier postings I read that I shout use ogg_stream_flush as an alternative to ogg_stream_pageout, in case of silence. My question is this; Is there any
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
2001 Feb 04
2
Am I missing something?
Hey all, If my understanding is right, there's a serious big in vorbisfile.c, in the routine _fetch_headers(), which will only show up when comment packet spans multiple pages. The code to read the first 3 Vorbis packets ogg_stream_pagein() once, then calls ogg_stream_packetout(). The problem is that ogg_stream_pagein() only adds a single page to the ogg stream state, whereas
2001 Dec 06
1
packet over several pages
Hello everyone, I'm programming something using ogg vorbis and i was wondering how I could get a packet from a logical bitstream when this packet is over several pages. let's say I made a call to ogg_stream_pagein, then ogg_stream_packetout, but the packet is incomplete and continued in the next page(s). If I get the following page and I call ogg_stream_pagein again, how can i get
2008 Nov 30
1
ogg_stream_pageout function...
I write this small piece of code, that get pixels and encode them: ogg_page page; ogg_packet packet; m_frameSource.getYUVBits(m_buffer.y, m_buffer.u, m_buffer.v); theora_encode_YUVin(&m_encoder, &m_buffer); while(theora_encode_packetout(&m_encoder, isLastFrame, &packet)) ogg_stream_packetin(&m_oggStream, &packet); while
2005 Feb 09
1
Trying to do windows encoding dll
Hi everybody, me again. I'm trying to write my own VFW-like dll... It doesn't need to do much. 1.) compress a single frame and give it back to the host application 2.) host applications 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
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
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
2009 May 12
2
compile error of libtheora example
hi all: i downloaded libtheora1.0.tar.gz from xiph.org, and when i compile it, such error message popped. i tried to run player_example.c under /libtheora_1.0/examples/. error message: ivysummer at ivysummer-desktop:~/??/libtheora-1.0/examples$ gcc -o player player_example.c /tmp/ccpyle3c.o: In function `buffer_data': player_example.c:(.text+0x15): undefined reference to
2001 Feb 11
2
ogg_stream_packetout() and stream mixing
Just to make sure, if I'm mixing 2 streams at the page level, and using ogg_stream_pagein() and ogg_stream_packetout() to extract them, I need two ogg_stream_states, one for each logical stream, and I need to ensure that each ogg_stream_state only sees pages of it's own type, is that right? - Martin --- >8 ---- List archives: http://www.xiph.org/archives/ Ogg project homepage:
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
--- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote: > Erik de Castro Lopo wrote: > > > Josh et al, > > > > I've been tracking down a problem with generating OggFlac files. > > <snip> > > > I have looked into this and suspect that the > FLAC__stream_encoder_finish() > > function needs to finish off the stream using a call to
2007 Feb 16
1
AW: How to do Theora playback efficiently ?
Hi Ralph, thanks for your posting. Yes, the standard example player in the theora distribution could also do it when theora would not need so much time. I removed the frame dropping from the example because it's based on some audio stuff under Linux that isn't available on Windows. Currently I've no frame dropping handling build in because the first goal is a good raw performance of
2006 Nov 03
2
Strangeness with OggFlac files
Josh et al, I've been tracking down a problem with generating OggFlac files. While investigatint this issue I hacked one of the test files from the test_libFLAC directory of the flac-1.1.3-beta2. The result of this hacking is this standalone C file: http://www.mega-nerd.com/tmp/erikd_test.c Directions for compiling this is in the comments at the top of the file. When the program is
2008 Jun 11
1
Page breaks when encoding ogg/theora
Hi everyone, I'm trying to build theora encoding into my game engine. Essentially, I'd like to do something similar to png2theora.c, where I take individual screen shots of my game and encode them into a video. Because png2theora.c uses the legacy C API, I used encoder_example.c as a template instead. encoder_example.c seems to be the only code out there that actually uses the th_* API.
2002 Dec 27
1
ogg_stream_pageout(): Weird Documentation (libogg-1.0).
Hello! Can someone tell me, what the return value of ogg_stream_pageout() _really_ means? Documentation (libogg-1.0 - 20000615) says: ... Return Values 0 means that there is not enough data yet to form a page. 0 means that the page was successfully submitted to the bitstream. ... Thank You very much! Petr Tomasek -- Petr Tomasek, http://www.etf.cuni.cz/~tomasek/ <p>---
2002 Jun 24
1
packetno, granulepos, streaming and framing
Hi While implementing OSS Ogg/Vorbis encoding and streaming using RTP/RTCP for both unicast and multicast, I have come across a few issues I need to clear out regarding the numbering of ogg_packets and their granulepos value. Below are the result for two different scenarios. <p>In the first scenario, ogg_packets are generated using a) vorbis_analysis_headerout() b) while
2001 Sep 22
3
retrieving &quot;instant&quot; bitrate without vo_open?
ok, I'm aware that vo_open cant be used at the same time as other functions such as ogg_sync_wrote, ogg_sync_pageout, ogg_stream_pagein, ogg_stream_packetout and vorbis_synthesis_headerin. In order to get information from the bitstream i've been using this method because it's fast and doesn't require decoding of the stream. But, i can only retrieve the average bitrate of
2002 Mar 18
1
Bug in ogglib leads to incomplete packets
There seems to be a bug in ogg lib: The error occurs in the following situation: - You have called ogg_stream_reset - You deliver a page to the stream which contains only the "middle of packet. I.e. not the beginning and not the end. (packets = 0 continued = 1) - You deliver the next page which contains the end of the page before and some more (packets >= 1 ) Now