Hi Doug,<br><br>Glad to hear we&#39;ve resolved that issue.<br><br>I forgot to mention that a patch (below) is required for ffmpeg to make it work with the IOCOM streams. I&#39;ve looked at various other techniques to achieve the same end by they&#39;re too complex so the patch below is the simplest.<br>
<br>FYI I looked at:<br>1. It&#39;s possible to access the sps struct within H264 but the include files are designed not to be used outside ffmpeg so they seem to be impossible to include without mods.<br>2. One could create an SPS H264 NAL packet but it&#39;s not clear how often one needs to provide it to the decoder. <br>
3. One could parse the IOCOM stream for the SPS NAL packet and modify it but that is pretty complex.<br><br>Piers.<br><br>ffmpeg.patch<br>*** ffmpeg/libavcodec/h264.c    2009-03-19 17:37:37.000000000 +0000<br>--- ffmpeg/libavcodec/h264.c.orig    2009-03-19 17:36:08.000000000 +0000<br>
***************<br>*** 3371,3378 ****<br>          }<br>      }<br>  <br>!     if ((h-&gt;long_ref_count + h-&gt;short_ref_count &gt; 1) &amp;&amp; <br>!         (h-&gt;long_ref_count + h-&gt;short_ref_count &gt; h-&gt;sps.ref_frame_count)){<br>
  <br>          /* We have too many reference frames, probably due to corrupted<br>           * stream. Need to discard one frame. Prevents overrun of the<br>--- 3371,3377 ----<br>          }<br>      }<br>  <br>!     if (h-&gt;long_ref_count + h-&gt;short_ref_count &gt; h-&gt;sps.ref_frame_count){<br>
  <br>          /* We have too many reference frames, probably due to corrupted<br>           * stream. Need to discard one frame. Prevents overrun of the<br><br><div class="gmail_quote">2009/3/19 Douglas Kosovic <span dir="ltr">&lt;<a href="mailto:douglask@itee.uq.edu.au" target="_blank">douglask@itee.uq.edu.au</a>&gt;</span><br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Piers,<br>
<div><br>
&gt; I think this is probably down to differences between different<br>
&gt; versions of ffmpeg - it seems that the latest versions (which I was<br>
&gt; using) of ffmpeg from svn (r17944 - r18038) no longer contain the<br>
&gt; -enable-swscaler configure option (its isn&#39;t present in the configure<br>
&gt; file) and swscaler is now built by default. However the ffmpeg-0.5<br>
&gt; release does include the --enable-swscale configure option. Does that<br>
&gt; help to explain the problem?<br>
<br>
</div>I think that does explain it.<br>
<div><br>
&gt; I think enable-swscale should probably be put back into configure as I<br>
&gt; think the suggestion of using the 0.5 release is best as otherwise<br>
&gt; we&#39;ll keep having to fix vic whenever ffmpeg changes.<br>
<br>
</div>Sounds good to me.<br>
<div><br>
&gt; It&#39;s shame that there&#39;s a problem with Xvideo and Xineramma - is there<br>
&gt; any workaround? The performance without Xvideo on Linux is<br>
&gt; dramatically worse above CIF resolutions - my dual CPU machine could<br>
&gt; not keep up with a VGA resolution H264 stream when not using Xvideo,<br>
&gt; however with it enabled it was able to comfortably decode up to<br>
&gt; 960x720....<br>
<br>
</div>The other issue was that Xvideo VIC used to crash with onboard Intel<br>
graphics, things might have changed with newer X.org drivers. I&#39;ll look<br>
into the Xvideo issue some more, it&#39;s been a while since I enabled it.<br>
I&#39;m guessing the Xvideo detection might need to be made a bit more<br>
smarter would be the workaround.<br>
<br>
<br>
<br>
Cheers,<br>
Doug<br>
<br>
</blockquote></div><br>