I have a problem in HD playback that I need help to solve.<br><br>My basic problem is that the audio frequently stutters. My log is filled with messages that say "WriteAudio: buffer underrun".<br><br>Searching the mailing list archive, I find references to this problem. In each case these messages are linked to prebuffering pauses - and the recommended solutions seem to be focused on fixing the prebuffering pauses and the audio stutter will be fixed as well.
<br><br>My audio buffer underruns are not linked to prebuffering pauses. Here is a pertinent snippet from my frontend log.<br><br>2007-02-18 23:41:20.612 TV: Changing from None to WatchingPreRecorded<br>2007-02-18 23:41:20.669
Realtime priority would require SUID as root.<br>[mpeg2video @ 0x364d4db050]ac-tex damaged at 92 20<br>[mpeg2video @ 0x364d4db050]Warning MVs not available<br>2007-02-18 23:41:20.810 Video timing method: SGI OpenGL<br>[mpeg2video @ 0x364d4db050]invalid mb type in B Frame at 114 49
<br>[mpeg2video @ 0x364d4db050]Warning MVs not available<br>2007-02-18 23:41:23.507 WriteAudio: buffer underrun<br>2007-02-18 23:41:27.305 WriteAudio: buffer underrun<br>2007-02-18 23:41:29.270 WriteAudio: buffer underrun
<br>2007-02-18 23:41:31.301 WriteAudio: buffer underrun<br>2007-02-18 23:41:34.594 WriteAudio: buffer underrun<br>2007-02-18 23:41:36.323 WriteAudio: buffer underrun<br>[mpeg2video @ 0x364d4db050]ac-tex damaged at 39 10<br>
2007-02-18 23:41:39.777 WriteAudio: buffer underrun<br>2007-02-18 23:41:41.373 WriteAudio: buffer underrun<br>[mpeg2video @ 0x364d4db050]00 motion_type at 66 14<br>2007-02-18 23:41:44.370 WriteAudio: buffer underrun<br>2007-02-18 23:41:
45.487 WriteAudio: buffer underrun<br>2007-02-18 23:41:48.358 WriteAudio: buffer underrun<br>2007-02-18 23:41:50.817 WriteAudio: buffer underrun<br>2007-02-18 23:41:53.534 WriteAudio: buffer underrun<br>2007-02-18 23:41:56.175
WriteAudio: buffer underrun<br>[mpeg2video @ 0x364d4db050]00 motion_type at 28 45<br>2007-02-18 23:41:57.114 WriteAudio: buffer underrun<br>[mpeg2video @ 0x364d4db050]ac-tex damaged at 56 37<br>[mpeg2video @ 0x364d4db050]Warning MVs not available
<br>2007-02-18 23:41:59.323 WriteAudio: buffer underrun<br>2007-02-18 23:42:01.180 WriteAudio: buffer underrun<br>2007-02-18 23:42:03.520 WriteAudio: buffer underrun<br>2007-02-18 23:42:05.108 WriteAudio: buffer underrun<br>
2007-02-18 23:42:06.466 WriteAudio: buffer underrun<br>2007-02-18 23:42:09.106 WriteAudio: buffer underrun<br>2007-02-18 23:42:11.261 WriteAudio: buffer underrun<br>2007-02-18 23:42:12.479 TV: Attempting to change from WatchingPreRecorded to None
<br><br>Here is a brief description of my setup.<br><br>My frontend runs on a AMD64 Sempron 2800+ with 1 gb of RAM and an NVIDIA FX-5200 video card.<br>My backend runs on a similar machine AMD64 Sempron 2800+ with 1 gb of RAM and an NVIDIA FX-5200 video card.
<br>My recordings are stored on an Ubuntu LAMP server in the closet.<br><br>My frontend is configured with Standard MPEG decoder and the BOB deinterlace algorithm. For HD playback, my CPU utilization runs about 90%.<br><br>
I have tried XVMC. My CPU utilization drops to 20-30%; but the audio stutter does not go away.<br><br>Turning off deinterlacing yield no improvement either. I have also tried all of the other deinterlace algorithms. No difference.
<br><br>Here are the important sections of my xorg.conf:<br><br>Section "Module"<br> Load "dbe"<br> Load "extmod"<br> Load "fbdevhw"<br> Load "glx"<br> Load "record"
<br> Load "freetype"<br> Load "type1"<br>EndSection<br><br>Section "Monitor"<br> Identifier "Monitor0"<br> VendorName "Panasonic"<br> ModelName "42in EDTV"
<br> ModeLine "ATSC-1080-60i" 74.2 1920 1960 2016 2200 1080 1082 1088 1125 interlace<br> Option "dpms"<br> Option "UseEdidDpi" "False"<br> Option "DPI" "100 x 100"
<br>EndSection<br> <br>Section "Device"<br> Identifier "Videocard0"<br> Driver "nvidia"<br> Option "UseDisplayDevice" "DFP"<br> Option "NVAGP" "2"
<br> Option "XvmcUsesTextures" "True"<br> Option "UseEvents" "True"<br> Option "ConnectedMonitor" "DFP"<br>EndSection<br><br>Section "Screen"
<br> Identifier "Screen0"<br> Device "Videocard0"<br> Monitor "Monitor0"<br> DefaultDepth 24<br> SubSection "Display"<br> Viewport 0 0<br> Depth 24
<br> Modes "ATSC-1080-60i"<br> EndSubSection<br>EndSection<br><br>Any help is appreciated.<br><br>Tom<br><font color="black" face="Verdana,Arial,Helvetica" size="2"><font color="black" face="Verdana,Arial,Helvetica" size="2">
</font></font>