<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Arial">But I'm using a quite fast machine (P4 3,2GHz in a
Pundit-R case with 1GB Ram) and don't have another system running
here... Don't want to use X machines to have a great VCR ;) Can I do
the change to the sql part myself? How? ;)<br>
<br>
And why is it poosible that sql takes away CPU power from playback
while playback has realtime priority? I thought that this is the point
to give a proccess realtime priority...<br>
<br>
Thanks!<br>
</font><br>
Mark Buechler schrieb:
<blockquote
 cite="mid3e9048940609100703h69ec1b0dmb769acd3241a6db4@mail.gmail.com"
 type="cite">What's happening is mysql is taking more CPU/IO during the
scheduling process which takes CPU/IO away from playback/recording.
I've had trouble with this from time to time due to another issue but a
temporary solution would be to put your database on another (maybe
faster) system. Another might be to change the sql in the scheduling
thread to use a loop and the LIMIT clause to attemt to tone it down a
bit.
  <br>
  <br>
- Mark.<br>
  <br>
  <div><span class="gmail_quote">On 9/9/06, <b class="gmail_sendername">Brian
C. Huffman</b> &lt;<a href="mailto:bhuffman@graze.net">bhuffman@graze.net</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I'm
getting similar problems during playback.&nbsp;&nbsp;I don't think it's caused<br>
by the scheduler though...I'm seeing it on playing videos that have been<br>
ripped from DVD.&nbsp;&nbsp;I'm about to open a ticket.<br>
    <br>
-b<br>
    <br>
On Sat, 2006-09-09 at 17:21 +0200, Jan Kleinig wrote:
    <br>
&gt; Hi,<br>
&gt;<br>
&gt; I'm still having those problems :(<br>
&gt;<br>
&gt; I am using Knoppmyth R5C7 with mythtv svn 11084 and the ac3-patch
0.20<br>
&gt; written by Mark Spieth.<br>
&gt;<br>
&gt; I'm using the EIT Scanner because tvtoday doesn't support that
many
    <br>
&gt; channels and I hate hunting for a new script when they change the<br>
&gt; layout of there homepage...<br>
&gt;<br>
&gt; The problem is, that every time when the scheduler 'reschedules', I<br>
&gt; get audio problems in the recording or LiveTV I watch.
    <br>
&gt;<br>
&gt; The backend log says:<br>
&gt;<br>
&gt; 2006-09-09 17:11:26.371 EITScanner: Added 10 EIT Events<br>
&gt; 2006-09-09 17:11:26.375 Reschedule requested for id -1.<br>
&gt; 2006-09-09 17:11:28.878 Scheduled 36 items in 2.5 = 1.19 match +
1.31<br>
&gt; place<br>
&gt;<br>
&gt; At the same time, the playback stumbles and the audio is gone in
most<br>
&gt; of the cases. Sometimes, the audio comes back to live again after<br>
&gt; about 3 seconds... The frontend tells me this:
    <br>
&gt;<br>
&gt; 2006-09-09 17:10:48.608 TV: Attempting to change from None to<br>
&gt; WatchingPreRecorded<br>
&gt; 2006-09-09 17:10:48.627 libavformat type mpegts<br>
&gt; 0: start_time: 2615.887 duration: 539.622<br>
&gt; 1: start_time: 2615.963 duration: 539.611<br>
&gt; 2: start_time: 2615.896 duration: 539.616<br>
&gt; stream: start_time: 29065.414 duration: 5996.522 bitrate=2668 kb/s<br>
&gt; 2006-09-09 17:10:48.635 AFD: Opened codec 0x8bc9330,
id(MPEG2VIDEO)
    <br>
&gt; type(Video)<br>
&gt; 2006-09-09 17:10:48.635 AFD: Setting maxchannels to 6, -1<br>
&gt; 2006-09-09 17:10:48.635 AVFD: codec MP3 has 2 channels<br>
&gt; 2006-09-09 17:10:48.635 AFD: Opened codec 0x8b52c10, id(MP3)<br>
&gt; type(Audio)<br>
&gt; 2006-09-09 17:10:48.826 Opening audio device 'default'. ch 2 sr
48000<br>
&gt; 2006-09-09 17:10:48.826 Opening ALSA audio device 'default'.<br>
&gt; 2006-09-09 17:10:49.005 VideoOutputXv: XvMCTex: Init failed
    <br>
&gt; 2006-09-09 17:10:49.005 VideoOutputXv: XVideo Adaptor Name: 'ATI<br>
&gt; Radeon Video Overlay'<br>
&gt; 2006-09-09 17:10:49.398 TV: Changing from None to
WatchingPreRecorded<br>
&gt; 2006-09-09 17:10:49.399 Using realtime priority.
    <br>
&gt; 2006-09-09 17:10:49.430 Video timing method: USleep with busy wait<br>
&gt; 2006-09-09 17:11:26.752 WriteAudio: buffer underrun<br>
&gt; 2006-09-09 17:11:27.247 WriteAudio: buffer underrun<br>
&gt; 2006-09-09 17:11:
27.521 WriteAudio: buffer underrun<br>
&gt; 2006-09-09 17:11:27.776 WriteAudio: buffer underrun<br>
&gt; 2006-09-09 17:11:28.339 WriteAudio: buffer underrun<br>
&gt;<br>
&gt; You see, at 17:11:26.375 the rescheduling is getting startet and
at
    <br>
&gt; that time, the error occures...<br>
&gt;<br>
&gt; Does anybody have an idea what to do?<br>
&gt;<br>
&gt; Thanks!<br>
&gt; _______________________________________________<br>
&gt; mythtv-dev mailing list<br>
&gt; <a href="mailto:mythtv-dev@mythtv.org">
mythtv-dev@mythtv.org</a><br>
&gt; <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a><br>
    <br>
_______________________________________________<br>
mythtv-dev mailing list
    <br>
    <a href="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</a><br>
    <a href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a><br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mythtv-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-dev@mythtv.org">mythtv-dev@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev">http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev</a>
  </pre>
</blockquote>
</body>
</html>