<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"><<a href="mailto:tmatth@videolan.org" target="_blank">tmatth@videolan.org</a>></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 <<a href="mailto:sellbuysam@gmail.com">sellbuysam@gmail.com</a>> wrote:<br>
> Friends,<br>
><br>
> My name is Igor, I am new to this forum.<br>
><br>
> I have a peculiar problem with my OGG/Speex implementation: I encode a short<br>
> PCM stream in OGG/Speex, but the result can not be read by VLC and MediaInfo<br>
> reports that the file is too short (240ms). In reality the file contains<br>
> about 2.7 sec worth of audio.<br>
><br>
> Another interesting thing I noticed is that the file *can* be read<br>
> successfully in Audacity. Yes, that is right, Audacity reads the file<br>
> perfectly fine whereas all other tools only play a short swoosh.<br>
><br>
> 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>
> (GoToServer-Igor.ogg) is the problematic one. The second one<br>
> (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>
> The third one (GoToServer1.wav) is the original source.<br>
><br>
> Questions:<br>
><br>
> 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're doing differently.<br>
<span class=""><br>
> 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'm assuming that's<br>
what you mean by "length") of ogg files.<br>
<span class=""><br>
> Any clues as to how come VLC can'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'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>