<br><br>
<div><span class="gmail_quote">On 2/2/08, <b class="gmail_sendername"><a href="mailto:ogg-dev-request@xiph.org">ogg-dev-request@xiph.org</a></b> <<a href="mailto:ogg-dev-request@xiph.org">ogg-dev-request@xiph.org</a>> wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Send ogg-dev mailing list submissions to<br> <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>
<br>To subscribe or unsubscribe via the World Wide Web, visit<br> <a href="http://lists.xiph.org/mailman/listinfo/ogg-dev">http://lists.xiph.org/mailman/listinfo/ogg-dev</a><br>or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:ogg-dev-request@xiph.org">ogg-dev-request@xiph.org</a><br><br>You can reach the person managing the list at<br> <a href="mailto:ogg-dev-owner@xiph.org">ogg-dev-owner@xiph.org</a><br><br>When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of ogg-dev digest..."<br><br><br>Today's Topics:<br><br> 1. How do I seek to the beginning of an ogg stream? (Vince Tagle)<br> 2. Re: [PATCH] skeleton.c (Conrad Parker)<br> 3. Re: [PATCH] skeleton.c (Conrad Parker)<br>
4. Common Documentation of Codec encapsulation in Ogg (<a href="mailto:j@v2v.cc">j@v2v.cc</a>)<br> 5. Re: [PATCH] skeleton.c ( Ivo Emanuel Gon?alves )<br><br><br>----------------------------------------------------------------------<br>
<br>Message: 1<br>Date: Fri, 1 Feb 2008 15:39:02 -0800<br>From: Vince Tagle <<a href="mailto:vtagle@gmail.com">vtagle@gmail.com</a>><br>Subject: [ogg-dev] How do I seek to the beginning of an ogg stream?<br>To: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>
Message-ID: <<a href="mailto:244F4406-8235-40E0-A394-9F1D1DA42C66@gmail.com">244F4406-8235-40E0-A394-9F1D1DA42C66@gmail.com</a>><br>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed<br><br>Hello,<br>
<br>I've been trying to figure out (without much success) how to perform<br>a seek to the beginning of an ogg stream? I've tried examining the<br>libvorbis source code but because it's concerned with seeking to an<br>
arbitrary point in the stream, it's a little more complex than I'd<br>like it to be. Really, what I'm trying to figure out is how to reset<br>all of the ogg data structures so that I can replay an audio file<br>
from it's beginning. Does anyone have any pointers or can offer some<br>insight into this task?<br><br>Vince<br><br>Hello Vince,</blockquote>
<div> </div>
<div>File based seeking is completely implemented in the ogg library already and works fine. I've tried this using DShow filters.</div>
<div>But if you want that to be buffer based, then you might have to do some minor modification where ever file read operations are done you need to maintain the buffer pointers at this places and update the pointers where ever file seek is done.</div>
<div>It should just work fine.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">------------------------------<br><br>Message: 2<br>Date: Sat, 2 Feb 2008 16:34:00 +1100<br>From: "Conrad Parker" <<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>><br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: "<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>" <<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>><br>
Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br> <<a href="mailto:dba6c0830802012134v62225585u3a8178b9ba0eb290@mail.gmail.com">dba6c0830802012134v62225585u3a8178b9ba0eb290@mail.gmail.com</a>><br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On 01/02/2008, Conrad Parker <<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>> wrote:<br>> On 31/01/2008, <a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a> <<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>> wrote:<br>
> > This fixes an off by one bug in the user of snprintf, and returns<br>> > negative if writing the<br>> > header returns negative (otherwise we'd just get a short write, losing<br>> > the error).<br>
> > This patch isn't tested though, but I compiled it :)<br>><br>> ok, I'll test it out :-)<br><br>I've checked the patch. The check for fwrite returning negative is ok,<br>but i think the off-by-one check for snprintf is not necessary -- the<br>
intention is not to write a trailing NUL as this function is used to<br>incrementally add lines of text to a buffer.<br><br>Adapted in changeset 3396: <a href="http://trac.annodex.net/changeset/3396">http://trac.annodex.net/changeset/3396</a><br>
<br>> > Also, I've not fixed this (yet ?) but I believe the filling of the ogg<br>> > packets is bogus as it<br>> > will fill it with values in whatever endianness the current host has.<br>> > It should be using<br>
> > oggpack_write and friends instead, I think. I may be missing something though.<br>><br>> eww, you're right, it's broken on big-endian hosts. I'll follow up<br>> with a patch unless someone else does first ...<br>
<br>I've written up a patch for this, applied to liboggz/src/tools/skeleton.c:<br><br><a href="http://trac.annodex.net/changeset/3395">http://trac.annodex.net/changeset/3395</a><br><br>Thank you very much for noticing the problems :-)<br>
<br>Conrad.<br><br><br>------------------------------<br><br>Message: 3<br>Date: Sat, 2 Feb 2008 16:41:59 +1100<br>From: "Conrad Parker" <<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>><br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: " Ivo Emanuel Gon?alves " <<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>><br>Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br>
<<a href="mailto:dba6c0830802012141i39165f28x504e0dfbe66039f@mail.gmail.com">dba6c0830802012141i39165f28x504e0dfbe66039f@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-1<br><br>On 02/02/2008, Ivo Emanuel Gonçalves <<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>> wrote:<br>
> I'm patching oggenc with this fix. If Conrad reports success in his<br>> test, I'll go ahead and patch all other implementations I can find.<br><br>I've merged this patch and fixed the other problems that were reported<br>
in the liboggz source tree:<br><a href="http://svn.annodex.net/liboggz/trunk/src/tools/skeleton.c">http://svn.annodex.net/liboggz/trunk/src/tools/skeleton.c</a><br><br>It includes the fixes for handling skeleton on big-endian hosts. I<br>
think it would be a good idea to use this version everywhere else that<br>that skeleton.c file is used, ie. in vorbisfile, ffmpeg2theora,<br>oggenc, speexenc/speexdec as listed at:<br><br><a href="http://trac.annodex.net/wiki/OggSkeleton">http://trac.annodex.net/wiki/OggSkeleton</a><br>
<br>As far as I understand, that file is simply duplicated in each source<br>tree. It would be great if you could update it in each.<br><br>cheers,<br><br>Conrad.<br><br><br>------------------------------<br><br>Message: 4<br>
Date: Sat, 02 Feb 2008 13:44:34 +0530<br>From: <a href="mailto:j@v2v.cc">j@v2v.cc</a><br>Subject: [ogg-dev] Common Documentation of Codec encapsulation in Ogg<br>To: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>
Message-ID: <1201940074.15780.16.camel@BlackBook><br>Content-Type: text/plain<br><br>what about creating some consistent pages about codec encapsulation in<br>ogg, some of those pages already exist, what about creating the others?<br>
<a href="http://wiki.xiph.org/index.php/OggDirac">http://wiki.xiph.org/index.php/OggDirac</a> (exists)<br><a href="http://wiki.xiph.org/index.php/OggFLAC">http://wiki.xiph.org/index.php/OggFLAC</a><br><a href="http://wiki.xiph.org/index.php/OggSkeleton">http://wiki.xiph.org/index.php/OggSkeleton</a> (exists)<br>
<a href="http://wiki.xiph.org/index.php/OggSpeex">http://wiki.xiph.org/index.php/OggSpeex</a><br><a href="http://wiki.xiph.org/index.php/OggTheora">http://wiki.xiph.org/index.php/OggTheora</a><br><a href="http://wiki.xiph.org/index.php/OggVorbis">http://wiki.xiph.org/index.php/OggVorbis</a><br>
<br>j<br><br><br><br>------------------------------<br><br>Message: 5<br>Date: Sat, 2 Feb 2008 17:49:48 +0000<br>From: " Ivo Emanuel Gon?alves " <<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>><br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: "Conrad Parker" <<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>><br>Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br>
<<a href="mailto:dc107ee70802020949y59acc9bfle9ac2a171d5c8ccf@mail.gmail.com">dc107ee70802020949y59acc9bfle9ac2a171d5c8ccf@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>On 2/2/08, Conrad Parker <<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>> wrote:<br>
> As far as I understand, that file is simply duplicated in each source<br>> tree. It would be great if you could update it in each.<br><br>I don't think it is that easy. I have made a mere diff and see so<br>many differences I'm not sure we can just blindly replace every<br>
skeleton.c with the one used in liboggz.<br><br>Diff attached.<br><br>-Ivo<br>-------------- next part --------------<br>A non-text attachment was scrubbed...<br>Name: diff<br>Type: application/octet-stream<br>Size: 9477 bytes<br>
Desc: not available<br>Url : <a href="http://lists.xiph.org/pipermail/ogg-dev/attachments/20080202/658a037e/diff.obj">http://lists.xiph.org/pipermail/ogg-dev/attachments/20080202/658a037e/diff.obj</a><br><br>------------------------------<br>
<br>_______________________________________________<br>ogg-dev mailing list<br><a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br><a href="http://lists.xiph.org/mailman/listinfo/ogg-dev">http://lists.xiph.org/mailman/listinfo/ogg-dev</a><br>
<br><br>End of ogg-dev Digest, Vol 39, Issue 2<br>**************************************<br></blockquote></div><br><br clear="all"><br>-- <br>Vishweshwar Hiremath.<br>Sr. Software Engineer.<br>NVIDIA Graphics Pvt. Ltd<br>
Pune. (India).