<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi all,<br><br><br>I'm wondering if someone can shed some light on some timing issues I'm having with my spu decoder.&nbsp; The decoder is a teletext decoder which displays the closed captions broadcast here in Australia via DVB-T (mpeg2).&nbsp; I have two variants, the first being non-threaded which works fine for all streams except high definition (1080i/50) which frequently stutters when captions are displayed (this appears to be independent of the nvidia driver version).&nbsp; The second is threaded and does not stutter but sometimes misses displaying the captions (on both SD and HD material).&nbsp; The threaded one is the one I'm trying to fix as it appears to work fine with drivers other than vdpau.&nbsp; I suspect it's somehow related to how vdpau is sequencing/blending the osd frames but I'm not sure.<br><br>The main decoder thread copies the packet into a buffer, flags a condition variable and returns.&nbsp; The second thread decodes the buffer, generates the bitmap and displays it by making a xine_osd_show call using the vpts returned from metronom-&gt;got_spu_packet (which is done immediately before the show).&nbsp; The threads are both wrapped around a mutex so only one thread can access the buffer and execute at a time.&nbsp; The idea is that the stuttering was due to holding up the main decoder thread for too long whilst the bitmap was being generated so I moved this into its own thread.&nbsp; The machine is only running with a cpu load of around 10% and it is a dual core cpu so it should be able to cope.<br><br>I've tried using a vpts of 0 to show things immediately but it still skips some of the captions (although this may be due to an "erase" being sequenced more quickly than needed).&nbsp; It is also unfortunately intermittent as I can rewind a bit and replay and the missing captions will then be displayed.&nbsp; Does anybody have any idea what might be going on and any suggestions on how perhaps to fix it? Is it possible that between the call to got_spu_packet and xine_osd_show that the vpts has increased beyond the time for the caption to be displayed and hence is not being displayed?&nbsp; Alternatively would increasing the video buffers be likely to help with the stuttering for the non-threaded version?<br><br>Any help appreciated,<br>Roger.<br>                                               <br /><hr />Click Here <a href='http://dating.ninemsn.com.au/search/search.aspx?exec=go&tp=q&gc=2&tr=1&lage=18&uage=55&cl=14&sl=0&dist=50&po=1&do=2&trackingid=1046138&r2s=1&_t=773166090&_r=WLM_EndText' target='_new'>View photos of singles in your area</a></body>
</html>