<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> &lt;<a href="mailto:ogg-dev-request@xiph.org">ogg-dev-request@xiph.org</a>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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 &#39;help&#39; to<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <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 &quot;Re: Contents of ogg-dev digest...&quot;<br><br><br>Today&#39;s Topics:<br><br>&nbsp;&nbsp;1. How do I seek to the beginning of an ogg stream?&nbsp;&nbsp;(Vince Tagle)<br>&nbsp;&nbsp;2. Re: [PATCH] skeleton.c (Conrad Parker)<br>&nbsp;&nbsp;3. Re: [PATCH] skeleton.c (Conrad Parker)<br>
&nbsp;&nbsp;4. Common Documentation of Codec encapsulation in Ogg (<a href="mailto:j@v2v.cc">j@v2v.cc</a>)<br>&nbsp;&nbsp;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 &lt;<a href="mailto:vtagle@gmail.com">vtagle@gmail.com</a>&gt;<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: &lt;<a href="mailto:244F4406-8235-40E0-A394-9F1D1DA42C66@gmail.com">244F4406-8235-40E0-A394-9F1D1DA42C66@gmail.com</a>&gt;<br>Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed<br><br>Hello,<br>
<br>I&#39;ve been trying to figure out (without much success) how to perform<br>a seek to the beginning of an ogg stream? I&#39;ve tried examining the<br>libvorbis source code but because it&#39;s concerned with seeking to an<br>
arbitrary point in the stream, it&#39;s a little more complex than I&#39;d<br>like it to be. Really, what I&#39;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&#39;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>&nbsp;</div>
<div>File based seeking is completely implemented in the ogg library already and works fine. I&#39;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: &quot;Conrad Parker&quot; &lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt;<br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: &quot;<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>&quot; &lt;<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>&gt;<br>
Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:dba6c0830802012134v62225585u3a8178b9ba0eb290@mail.gmail.com">dba6c0830802012134v62225585u3a8178b9ba0eb290@mail.gmail.com</a>&gt;<br>
Content-Type: text/plain; charset=ISO-8859-1<br><br>On 01/02/2008, Conrad Parker &lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt; wrote:<br>&gt; On 31/01/2008, <a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a> &lt;<a href="mailto:ogg.k.ogg.k@googlemail.com">ogg.k.ogg.k@googlemail.com</a>&gt; wrote:<br>
&gt; &gt; This fixes an off by one bug in the user of snprintf, and returns<br>&gt; &gt; negative if writing the<br>&gt; &gt; header returns negative (otherwise we&#39;d just get a short write, losing<br>&gt; &gt; the error).<br>
&gt; &gt; This patch isn&#39;t tested though, but I compiled it :)<br>&gt;<br>&gt; ok, I&#39;ll test it out :-)<br><br>I&#39;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>&gt; &gt; Also, I&#39;ve not fixed this (yet ?) but I believe the filling of the ogg<br>&gt; &gt; packets is bogus as it<br>&gt; &gt; will fill it with values in whatever endianness the current host has.<br>&gt; &gt; It should be using<br>
&gt; &gt; oggpack_write and friends instead, I think. I may be missing something though.<br>&gt;<br>&gt; eww, you&#39;re right, it&#39;s broken on big-endian hosts. I&#39;ll follow up<br>&gt; with a patch unless someone else does first ...<br>
<br>I&#39;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: &quot;Conrad Parker&quot; &lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt;<br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: &quot; Ivo Emanuel Gon?alves &quot; &lt;<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>&gt;<br>Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:dba6c0830802012141i39165f28x504e0dfbe66039f@mail.gmail.com">dba6c0830802012141i39165f28x504e0dfbe66039f@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=ISO-8859-1<br><br>On 02/02/2008, Ivo Emanuel Gonçalves &lt;<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m patching oggenc with this fix.&nbsp;&nbsp;If Conrad reports success in his<br>&gt; test, I&#39;ll go ahead and patch all other implementations I can find.<br><br>I&#39;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: &lt;1201940074.15780.16.camel@BlackBook&gt;<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: &quot; Ivo Emanuel Gon?alves &quot; &lt;<a href="mailto:justivo@gmail.com">justivo@gmail.com</a>&gt;<br>
Subject: Re: [ogg-dev] [PATCH] skeleton.c<br>To: &quot;Conrad Parker&quot; &lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt;<br>Cc: <a href="mailto:ogg-dev@xiph.org">ogg-dev@xiph.org</a><br>Message-ID:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;<a href="mailto:dc107ee70802020949y59acc9bfle9ac2a171d5c8ccf@mail.gmail.com">dc107ee70802020949y59acc9bfle9ac2a171d5c8ccf@mail.gmail.com</a>&gt;<br>Content-Type: text/plain; charset=&quot;utf-8&quot;<br><br>On 2/2/08, Conrad Parker &lt;<a href="mailto:conrad@metadecks.org">conrad@metadecks.org</a>&gt; wrote:<br>
&gt; As far as I understand, that file is simply duplicated in each source<br>&gt; tree. It would be great if you could update it in each.<br><br>I don&#39;t think it is that easy.&nbsp;&nbsp;I have made a mere diff and see so<br>many differences I&#39;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).