<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Andy <mizeraka@yahoo.com><br>Subject: Re: [mythtv-users] Fresh 12.04. Normal Audio on Desktop, Static with internal player<br>To: mythtv-users@mythtv.org<br>Date: Saturday, September 22, 2012, 11:20 PM<br><br><div id="yiv2065157368"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"><br><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;"><div id="yiv2065157368"><table border="0" cellpadding="0" cellspacing="0" height="723" width="473"><tbody><tr><td style="font:inherit;" valign="top">On Fri, Sep 21, 2012 at 9:13 AM, Andy <<a rel="nofollow" target="_blank"
href="http://us.mc319.mail.yahoo.com/mc/compose?to=mizeraka@yahoo.com">mizeraka@yahoo.com</a>> wrote:<br>><br>>
I have a fresh installation of Mythbuntu with the 12.04 LTR. I have
been unable to get audio working inside of Mythtv (Internal Player).<br>><br>>
Desktop audio works fine, speaker-test from the command line works
fine. All of my videos will play through VLC fine. My recorded TV
shows will play fine with normal outside of the internal player (I upnp
them to my PlayStation).<br>><br>> I have scanned for audio and I
have gone through every available option in the Audio configuration
screen in the Mythtv Frontend, with no luck.<br>><br>> I am
getting white/pink noise from the audio test from the Audio setup screen
within Mythtv - although that sounds similar to what I am getting while
trying to watch a video, so I didn't know that was how it was supposed
to sound. From a terminal, I can do<br>> Code:<br>><br>> speaker-test -twav -c2<br>><br>> and get the voice.<br>><br>>
When I try to play something through Mythtv's internal player I get
only static. I can't mute this static, or change its volume from within
Mythtv. Audio is going out through the HDMI cable (which works fine
from the desktop).<br>><br>> I also have a remote FE which is
connected to its TV with a VGA cable and a mini-stereo plug. It is
having the same problem.<br>><br>> I'm sure it is a setting that I
haven't set correctly from within Mythtv, but I can't figure out what
that setting is. I have tried every conceivable combination of the
advanced audio options from within Mythtv's frontend.<br>><br>> I
posted this on ubuntuforums.org as well, and someone suggested a
mythfrontend log. I will post that this evening, but I wanted to check
here as well to see if there was other information that may be useful.<br>><br>> Can someone point me in the right direction?<br>><br>> Thanks.<br>> Andy M.<br>><br><br>Might be a stretch but you could try the following as posted by JYA:<br><br> The problem is in pulse, so yes, you change it in pulse config.<br> usually in /etc/pulse/daemon.conf<br><br> add the line: default-sample-rate = 48000<br><br><br></td></tr></tbody></table></div></blockquote>Thanks
Mark. I though PulseAudio was disabled. I did not actually have a
daemon.conf file in that location. I created one and made sure it had
that line, but there was not change. <br><br>My Log initially showed: <br>
<div style="margin:20px;margin-top:5px;">
        <div class="yiv2065157368smallfont" style="margin-bottom:2px;">Quote:</div>
        <table border="0" cellpadding="6" cellspacing="0" width="100%">
        <tbody><tr>
                <td class="yiv2065157368ubuntu_quotebackground">
                        
                                2012-09-22 22:24:23.240193 I TV: Created TvPlayWindow.<br>
2012-09-22 22:24:23.277759 I TV: Attempting to change from None to WatchingLive<br>
TV<br>
2012-09-22 22:24:23.277849 I MythCoreContext: Connecting to backend server: 192.168.1.xxx:6543 (try 1 of 1)<br>
2012-09-22 22:24:23.279423 I Using protocol version 72<br>
2012-09-22 22:24:23.301115 N TV: Spawning LiveTV Recorder -- begin<br>
2012-09-22 22:24:23.535508 N TV: Spawning LiveTV Recorder -- end<br>
2012-09-22 22:24:23.553354 I TV: playbackURL(/var/lib/mythtv/livetv/1111_20120922222423.mpg) cardtype(DUMMY)<br>
2012-09-22 22:24:23.888223 N AudioPlayer: Enabling Audio<br>
2012-09-22 22:24:23.974880 I VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'<br>
2012-09-22 22:24:24.045409 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:24:24.045592 I OSD: Scaling factors: 0.5625x0.8<br>
greedyhdeint: size changed from 0 x 0 -> 720 x 576<br>
2012-09-22 22:24:24.216310 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:24:24.216415 I OSD: Scaling factors: 0.5625x0.8<br>
2012-09-22 22:24:24.247257 I Player(0): Video timing method: USleep with busy wait<br>
2012-09-22 22:24:24.248804 I TV: Created player.<br>
2012-09-22 22:24:24.249014 I TV: Changing from None to WatchingLiveTV<br>
2012-09-22 22:24:24.249064 I TV: State is LiveTV & mctx == ctx<br>
2012-09-22 22:24:24.257919 I TV: UpdateOSDInput done<br>
2012-09-22 22:24:24.258007 I TV: UpdateLCD done<br>
2012-09-22 22:24:24.260042 I TV: ITVRestart done<br>
2012-09-22 22:24:24.283321 I TV: Main UI disabled.<br>
2012-09-22 22:24:24.284799 I TV: Entering main playback loop.<br>
2012-09-22 22:24:28.472668 I VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'<br>
2012-09-22 22:24:28.705291 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:24:28.705355 I OSD: Scaling factors: 1.5x1.5<br>
2012-09-22 22:24:28.857061 I AFD: Opened codec 0x29adc40, id(MPEG2VIDEO) type(Video)<br>
2012-09-22 22:24:28.857104 I AFD: codec AC3 has 6 channels<br>
2012-09-22 22:24:28.858274 I AFD: Opened codec 0x29b2870, id(AC3) type(Audio)<br>
2012-09-22 22:24:28.858363 I AFD: codec AC3 has 1 channels<br>
2012-09-22 22:24:28.859471 I AFD: Opened codec 0x46d8cc0, id(AC3) type(Audio)<br>
2012-09-22 22:24:28.882476 I AO: Opening audio device 'hdmi:CARD=NVidia,DEV=0' ch 2(6) sr 48000 sf signed 16 bit reenc 0<br>
2012-09-22 22:24:28.888320 E ALSA: Setting hardware audio buffer size to 128<br>
2012-09-22 22:24:28.888729 E ALSA: Error opening /proc/asound/card0/pcm3p/sub0/prealloc: Permission denied. <br>
2012-09-22 22:24:28.888769 E ALSA: Try to manually increase audio buffer with: <br>
echo 128 | sudo tee /proc/asound/card0/pcm3p/sub0/prealloc<br>
2012-09-22 22:24:28.888821 E ALSA: Unable to sufficiently increase ALSA hardware buffer size - underruns are likely<br>
2012-09-22 22:24:28.924609 N AFD: Resetting byte context eof (livetv 1 was eof 0)<br>
2012-09-22 22:24:29.290810 N Player(0): Waited 103ms for video buffers AAAAAAAAAAAAAAAAAAAAAAAAAAAuULLP
                        
                </td>
        </tr>
        </tbody></table>
</div>So I ran:<br>
<div style="margin:20px;margin-top:5px;">
        <div class="yiv2065157368smallfont" style="margin-bottom:2px;">Code:</div>
        <pre class="yiv2065157368alt2" dir="ltr" style="margin:0px;padding:6px;border:1px inset;width:640px;height:34px;text-align:left;overflow:auto;">echo 128 | sudo tee /proc/asound/card0/pcm3p/sub0/prealloc</pre>
</div>and crossed my fingers, but I still had the same audio problem on the next attempt which showed:<br>
<br>
<div style="margin:20px;margin-top:5px;">
        <div class="yiv2065157368smallfont" style="margin-bottom:2px;">Quote:</div>
        <table border="0" cellpadding="6" cellspacing="0" width="100%">
        <tbody><tr>
                <td class="yiv2065157368ubuntu_quotebackground">
                        
                                2012-09-22 22:31:53.039589 I TV: Attempting to change from None to WatchingLiveTV<br>
2012-09-22 22:31:53.039679 I MythCoreContext: Connecting to backend server: 192.168.1.111:6543 (try 1 of 1)<br>
2012-09-22 22:31:53.041129 I Using protocol version 72<br>
2012-09-22 22:31:53.066712 N TV: Spawning LiveTV Recorder -- begin<br>
2012-09-22 22:31:53.219172 N TV: Spawning LiveTV Recorder -- end<br>
2012-09-22 22:31:53.239326 I TV: playbackURL(/var/lib/mythtv/livetv/1173_20120922223153.mpg) cardtype(DUMMY)<br>
2012-09-22 22:31:53.508153 N AudioPlayer: Enabling Audio<br>
2012-09-22 22:31:53.581932 I VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'<br>
2012-09-22 22:31:53.656065 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:31:53.656127 I OSD: Scaling factors: 0.5625x0.8<br>
2012-09-22 22:31:53.805185 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:31:53.805261 I OSD: Scaling factors: 0.5625x0.8<br>
greedyhdeint: size changed from 0 x 0 -> 720 x 576<br>
2012-09-22 22:31:53.823585 I Player(0): Video timing method: USleep with busy wait<br>
2012-09-22 22:31:53.824942 I TV: Created player.<br>
2012-09-22 22:31:53.825071 I TV: Changing from None to WatchingLiveTV<br>
2012-09-22 22:31:53.825095 I TV: State is LiveTV & mctx == ctx<br>
2012-09-22 22:31:53.831027 I TV: UpdateOSDInput done<br>
2012-09-22 22:31:53.831101 I TV: UpdateLCD done<br>
2012-09-22 22:31:53.832422 I TV: ITVRestart done<br>
2012-09-22 22:31:53.975043 I TV: Main UI disabled.<br>
2012-09-22 22:31:53.976654 I TV: Entering main playback loop.<br>
greedyhdeint: size changed from 0 x 0 -> 704 x 480<br>
2012-09-22 22:31:54.901555 I VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'<br>
2012-09-22 22:31:54.962781 I OSD: Base theme size: 1280x720<br>
2012-09-22 22:31:54.962847 I OSD: Scaling factors: 0.55x0.666667<br>
2012-09-22 22:31:55.118649 I AFD: Opened codec 0x40bef60, id(MPEG2VIDEO) type(Video)<br>
2012-09-22 22:31:55.118688 I AFD: codec AC3 has 2 channels<br>
2012-09-22 22:31:55.119790 I AFD: Opened codec 0x40f14e0, id(AC3) type(Audio)<br>
2012-09-22 22:31:55.184736 I AO: Opening audio device 'hdmi:CARD=NVidia,DEV=0' ch 2(2) sr 48000 sf signed 16 bit reen 0<br>
2012-09-22 22:31:55.222712 N AFD: Resetting byte context eof (livetv 1 was eof 0)<br>
2012-09-22 22:31:55.472702 N Player(0): Waited 103ms for video buffers AAAAAAAAAAAAAAAAAAAAAAAAAAAAAuLP<br>
2012-09-22 22:31:55.574549 N Player(0): Waited 205ms for video buffers UULUULAAAAAAAAAAAAAAAAAAAAAAAUUP<br>
2012-09-22 22:31:55.626901 I VideoOutput: Created YV12 OSD.<br>
2012-09-22 22:32:09.286662 I Using protocol version 72<br>
2012-09-22 22:32:09.289386 I Using protocol version 72<br>
2012-09-22 22:32:09.469588 I Using protocol version 72<br>
2012-09-22 22:32:09.474968 I Using protocol version 72<br>
2012-09-22 22:32:19.292153 I
RingBuf(/var/lib/mythtv/livetv/1173_20120922223154.mpg): Waited 0.2
seconds for data to become available... 25168 < 32768<br>
2012-09-22 22:32:20.219010 I Using protocol version 72<br>
2012-09-22 22:32:20.222892 I Using protocol version 72<br>
2012-09-22 22:32:28.045674 E decoding error<br>
eno: Input/output error (5)<br>
2012-09-22 22:32:28.050181 E decoding error<br>
eno: Input/output error (5)<br>
2012-09-22 22:32:28.055504 E decoding error<br>
eno: Input/output error (5)<br>
2012-09-22 22:32:28.061944 E decoding error<br>
eno: Input/output error (5)
                        
                </td>
        </tr>
        </tbody></table>
</div>I'm not sure what those decoding errors mean, since I didn't see
that at first, and the audio didn't work either time. Sorry for the
info dump, but I would appreciate any clues as to why the internal
player is not properly playing sound from any source.<br><br><br> <br></td></tr></tbody></table></div></blockquote>I checked the option "Force audio device output to 48kHz" and that solved it. Thanks!<br><br><br></td></tr></table>