<div dir="ltr">Just wanted to update the thread. The problem has been resolved. The following tools mentioned here (<a href="http://en.flossmanuals.net/ogg-theora/command-line-editing/analysing-ogg/">http://en.flossmanuals.net/ogg-theora/command-line-editing/analysing-ogg/</a>) were particularly helpful: oggz-validate and oggz-dump. <div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 5, 2015 at 1:35 PM, Tristan Matthews <span dir="ltr">&lt;<a href="mailto:tmatth@videolan.org" target="_blank">tmatth@videolan.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=""><br>
On Thu, Mar 5, 2015 at 2:18 PM, SellBuy Sammamish &lt;<a href="mailto:sellbuysam@gmail.com">sellbuysam@gmail.com</a>&gt; wrote:<br>
&gt; Friends,<br>
&gt;<br>
&gt; My name is Igor, I am new to this forum.<br>
&gt;<br>
&gt; I have a peculiar problem with my OGG/Speex implementation: I encode a short<br>
&gt; PCM stream in OGG/Speex, but the result can not be read by VLC and MediaInfo<br>
&gt; reports that the file is too short (240ms). In reality the file contains<br>
&gt; about 2.7 sec worth of audio.<br>
&gt;<br>
&gt; Another interesting thing I noticed is that the file *can* be read<br>
&gt; successfully in Audacity. Yes, that is right, Audacity reads the file<br>
&gt; perfectly fine whereas all other tools only play a short swoosh.<br>
&gt;<br>
&gt; I am going to upload the files here: <a href="http://1drv.ms/1w7OPs6" target="_blank">http://1drv.ms/1w7OPs6</a>. The first one<br>
&gt; (GoToServer-Igor.ogg) is the problematic one. The second one<br>
&gt; (GoToServer_official.ogg) was generated using speexenc and plays just fine.<br>
<br>
</span>You will want to step through your implementation and see how it<br>
behaves differently than speexenc, in this case.<br>
<span class=""><br>
&gt; The third one (GoToServer1.wav) is the original source.<br>
&gt;<br>
&gt; Questions:<br>
&gt;<br>
&gt; How do you guys typically go about debugging such issues?<br>
<br>
</span>I usually do what you did, try different players until one works, and<br>
then look at what they&#39;re doing differently.<br>
<span class=""><br>
&gt; What OGG information is relevant to measuring the content length?<br>
<br>
</span>You might want to check out <a href="https://github.com/moumar/ruby-ogginfo" target="_blank">https://github.com/moumar/ruby-ogginfo</a> or<br>
other implementations that calculate the duration (I&#39;m assuming that&#39;s<br>
what you mean by &quot;length&quot;) of ogg files.<br>
<span class=""><br>
&gt; Any clues as to how come VLC can&#39;t read the file but Audacity can?<br>
<br>
</span>VLC has a plugin that wraps libspeex (for decoding) and a plugin that<br>
wraps libogg (for demuxing). The issue might be in one or both of<br>
these plugins. You can also force VLC to demux with libavformat and<br>
decode with libavcodec (which I believe is what Audacity does in this<br>
case), by doing:<br>
<br>
vlc --demux avformat --codec avcodec GoToServer-Igor.ogg<br>
<br>
If this works (whereas the default didn&#39;t), consider filing a bug with VLC:<br>
<a href="https://wiki.videolan.org/Report_bugs" target="_blank">https://wiki.videolan.org/Report_bugs</a><br>
<br>
Best,<br>
Tristan<br>
</blockquote></div><br></div>