[mythtv-users] Audio with 0.24

Kevin Ruml k_ruml at yahoo.com
Sat Dec 4 05:56:31 UTC 2010


Hello,

I just upgraded to 0.24 on Debian Squeeze from the debian-multimedia.org packages since they released today after having seen fairly good reports on the user list about the upgrade, but I am having a problem with audio.  I'm using straight ALSA, not Pulse.  I did the "scan for audio devices" setup step as recommended, but my audio and video are choppy - recordings, videos, live TV, music.  I'm running a SB Live with coax spdif output to my receiver.  Audio was working fine with 0.23 including AC3 and DTS pass-through to 5.1 surround, and no kernel change with the upgrade to 0.24 that might affect ALSA.  It was pretty much only the 0.24 Myth packages installed from a working 0.23 setup.  I had an .asoundrc in place previously to handle Mythmusic outputting to 48KHz to the SB Live card since it doesn't do 44100.  I've tried without it and with it after the upgrade and no difference - still choppy audio/video.  I found this:

http://ubuntuforums.org/showthread.php?t=1632963

which seems to be the exact problem I'm having, but there's no solution in that thread.

Details:

aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Live [SB Live! 5.1], device 0: emu10k1 [ADC Capture/Standard PCM Playback]
  Subdevices: 32/32
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
  Subdevice #8: subdevice #8
  Subdevice #9: subdevice #9
  Subdevice #10: subdevice #10
  Subdevice #11: subdevice #11
  Subdevice #12: subdevice #12
  Subdevice #13: subdevice #13
  Subdevice #14: subdevice #14
  Subdevice #15: subdevice #15
  Subdevice #16: subdevice #16
  Subdevice #17: subdevice #17
  Subdevice #18: subdevice #18
  Subdevice #19: subdevice #19
  Subdevice #20: subdevice #20
  Subdevice #21: subdevice #21
  Subdevice #22: subdevice #22
  Subdevice #23: subdevice #23
  Subdevice #24: subdevice #24
  Subdevice #25: subdevice #25
  Subdevice #26: subdevice #26
  Subdevice #27: subdevice #27
  Subdevice #28: subdevice #28
  Subdevice #29: subdevice #29
  Subdevice #30: subdevice #30
  Subdevice #31: subdevice #31
card 0: Live [SB Live! 5.1], device 2: emu10k1 efx [Multichannel Capture/PT Playback]
  Subdevices: 8/8
  Subdevice #0: subdevice #0
  Subdevice #1: subdevice #1
  Subdevice #2: subdevice #2
  Subdevice #3: subdevice #3
  Subdevice #4: subdevice #4
  Subdevice #5: subdevice #5
  Subdevice #6: subdevice #6
  Subdevice #7: subdevice #7
card 0: Live [SB Live! 5.1], device 3: emu10k1 [Multichannel Playback]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
front:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    Front speakers
rear:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    Rear speakers
center_lfe:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    Center and Subwoofer speakers
surround40:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Live,DEV=0
    SB Live! 5.1, ADC Capture/Standard PCM Playback
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
iec958:CARD=Live,DEV=0
    SB Live! 5.1, Multichannel Capture/PT Playback
    IEC958 (S/PDIF) Digital Audio Output


Frontend logs with -v audio without the asoundrc and with scanned settings, watching a recording:

2010-12-03 23:40:17.916 mythfrontend version: tags/release-0-24 [exporté] www.mythtv.org
2010-12-03 23:40:17.916 Using runtime prefix = /usr
2010-12-03 23:40:17.916 Using configuration directory = /home/mythtv/.mythtv
2010-12-03 23:40:17.917 Configuration::Load - Error parsing: /home/mythtv/.mythtv/config.xml at line: 1  column: 1
2010-12-03 23:40:17.917 Configuration::Load - Error Msg: unexpected end of file
2010-12-03 23:40:17.917 ThreadPool:HTTP: Initial 1, Max 25, Timeout 60000
2010-12-03 23:40:18.667 Empty LocalHostName.
2010-12-03 23:40:18.667 Using localhost value of rumlmyth2
2010-12-03 23:40:18.668 Configuration::Load - Error parsing: /home/mythtv/.mythtv/config.xml at line: 1  column: 1
2010-12-03 23:40:18.668 Configuration::Load - Error Msg: unexpected end of file
2010-12-03 23:40:18.691 New DB connection, total: 1
2010-12-03 23:40:18.708 Connected to database 'mythconverg' at host: 10.69.69.10
2010-12-03 23:40:18.727 Closing DB connection named 'DBManager0'
2010-12-03 23:40:18.741 Connected to database 'mythconverg' at host: 10.69.69.10
2010-12-03 23:40:18.745 Current locale EN_US
2010-12-03 23:40:18.745 Reading locale defaults from /usr/share/mythtv//locales/en_us.xml
2010-12-03 23:40:18.980 DPMS is disabled.
2010-12-03 23:40:19.017 Desktop video mode: 800x600 60.317 Hz
2010-12-03 23:40:19.062 Enabled verbose msgs:  important general audio
2010-12-03 23:40:19.073 Loading en_us translation for module mythfrontend
2010-12-03 23:40:19.092 LIRC: Successfully initialized '/dev/lircd' using '/home/mythtv/.mythtv/lircrc' config
2010-12-03 23:40:19.093 JoystickMenuThread Error: Joystick disabled - Failed to open device /dev/input/js0
2010-12-03 23:40:19.169 Using Frameless Window
2010-12-03 23:40:19.169 Using Full Screen Window
2010-12-03 23:40:19.350 Using the OpenGL painter
2010-12-03 23:40:19.405 OpenGL: OpenGL vendor  : NVIDIA Corporation
2010-12-03 23:40:19.405 OpenGL: OpenGL renderer: GeForce FX 5200/PCI/SSE2/3DNOW!
2010-12-03 23:40:19.405 OpenGL: OpenGL version : 2.1.2 NVIDIA 173.14.27
2010-12-03 23:40:19.405 OpenGL: Max texture size: 4096 x 4096
2010-12-03 23:40:19.405 OpenGL: Max texture units: 4
2010-12-03 23:40:19.405 OpenGL: Direct rendering: Yes
2010-12-03 23:40:19.406 OpenGL: Initialised MythRenderOpenGL
2010-12-03 23:40:19.699 Current MythTV Schema Version (DBSchemaVer): 1264
2010-12-03 23:40:19.920 ThemeInfo, Warning: Unable to open themeinfo.xml for /usr/share/mythtv/themes/BlackCurves-OSD/themeinfo.xml
2010-12-03 23:40:19.920 ThemeInfo, Error: The theme (/usr/share/mythtv/themes/BlackCurves-OSD) is missing a themeinfo.xml file.
2010-12-03 23:40:19.920 ThemeInfo, Warning: Unable to open themeinfo.xml for /usr/share/mythtv/themes/blootube-osd/themeinfo.xml
2010-12-03 23:40:19.920 ThemeInfo, Error: The theme (/usr/share/mythtv/themes/blootube-osd) is missing a themeinfo.xml file.
2010-12-03 23:40:19.923 ThemeInfo, Warning: Unable to open themeinfo.xml for /usr/share/mythtv/themes/Gray-OSD/themeinfo.xml
2010-12-03 23:40:19.923 ThemeInfo, Error: The theme (/usr/share/mythtv/themes/Gray-OSD) is missing a themeinfo.xml file.
2010-12-03 23:40:19.926 ThemeInfo, Warning: Unable to open themeinfo.xml for /usr/share/mythtv/themes/ProjectGrayhem-OSD/themeinfo.xml
2010-12-03 23:40:19.926 ThemeInfo, Error: The theme (/usr/share/mythtv/themes/ProjectGrayhem-OSD) is missing a themeinfo.xml file.
2010-12-03 23:40:19.926 ThemeInfo, Warning: Unable to open themeinfo.xml for /usr/share/mythtv/themes/Retro-OSD/themeinfo.xml
2010-12-03 23:40:19.926 ThemeInfo, Error: The theme (/usr/share/mythtv/themes/Retro-OSD) is missing a themeinfo.xml file.
2010-12-03 23:40:20.079 Pulse: PulseAudio not running
2010-12-03 23:40:20.100 AO: Sample rate 48000 is supported
2010-12-03 23:40:20.101 AO: 2 channel(s) are supported
2010-12-03 23:40:20.119 AO: AC3 or DTS capable
2010-12-03 23:40:20.119 AO: 6 channel(s) are supported
2010-12-03 23:40:20.124 AO: Killing AudioOutputDSP
2010-12-03 23:40:20.124 Found ALSA:iec958:CARD=Live,DEV=0 (ALSA:iec958:CARD=Live,DEV=0
Device supports up to 5.1 (digital output, AC3,DTS,))
2010-12-03 23:40:20.448 Registering Internal as a media playback plugin.
2010-12-03 23:40:20.517 MMUnix::AddDevice() Error: failed to stat /dev/bdi,
                        eno: No such file or directory (2)
2010-12-03 23:40:20.520 MMUnix::AddDevice() Error: failed to stat /dev/power,
                        eno: No such file or directory (2)
2010-12-03 23:40:20.525 MMUnix::AddDevice() Error: failed to stat /dev/trace,
                        eno: No such file or directory (2)
2010-12-03 23:40:20.532 MonitorRegisterExtensions(0x100, gif,jpg,png)
2010-12-03 23:40:20.532 Loading en_us translation for module mythgallery
2010-12-03 23:40:20.551 Loading en_us translation for module mythgame
2010-12-03 23:40:20.602 Current MythMusic Schema Version (MusicDBSchemaVer): 1017
2010-12-03 23:40:20.717 MonitorRegisterExtensions(0x40, mp3,mp2,ogg,oga,flac,wma,wav,ac3,oma,omg,atp,ra,dts,aac,m4a,aa3,tta,mka,aiff,swa,wv)
2010-12-03 23:40:20.733 Loading en_us translation for module mythmusic
2010-12-03 23:40:20.744 Loading en_us translation for module mythnews
2010-12-03 23:40:20.761 Current MythVideo Schema Version (mythvideo.DBSchemaVer): 1038
2010-12-03 23:40:20.811 Loading en_us translation for module mythvideo
2010-12-03 23:40:20.829 SourceManager: NeedSourceFor: Unable to find source for 15, http://images.weather.com/looper/archive/s_central_sat_720x486/, 1
2010-12-03 23:40:20.830 Starting update of NWS-XML
2010-12-03 23:40:20.831 NWS-XML recently updated, skipping.
2010-12-03 23:40:20.832 Starting update of NDFD-18_Hour
2010-12-03 23:40:20.838 Starting update of NDFD-6_day
2010-12-03 23:40:20.839 NDFD-6_day recently updated, skipping.
2010-12-03 23:40:20.840 Loading en_us translation for module mythweather
2010-12-03 23:40:20.933 Found mainmenu.xml for theme 'Arclight'
2010-12-03 23:40:21.290 MythCoreContext: Connecting to backend server: 10.69.69.10:6543 (try 1 of 1)
2010-12-03 23:40:21.292 Using protocol version 63
2010-12-03 23:40:22.980 New DB connection, total: 2
2010-12-03 23:40:22.995 Connected to database 'mythconverg' at host: 10.69.69.10
2010-12-03 23:40:24.294 TV: Attempting to change from None to WatchingPreRecorded
2010-12-03 23:40:24.364 AudioPlayer: Disabling Audio, params(0,2,44100)
2010-12-03 23:40:24.784 Pulse: PulseAudio not running
2010-12-03 23:40:24.796 AO: Sample rate 48000 is supported
2010-12-03 23:40:24.796 AO: 2 channel(s) are supported
2010-12-03 23:40:24.816 AO: AC3 or DTS capable
2010-12-03 23:40:24.816 AO: 6 channel(s) are supported
2010-12-03 23:40:24.824 AO: Killing AudioOutputDSP
2010-12-03 23:40:24.824 AO: Original codec was NONE, unknown, 44 kHz, 2 channels
2010-12-03 23:40:24.824 AudioOutput Error: Aborting Audio Reconfigure. Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-12-03 23:40:24.824 AudioPlayer: Disabling Audio, reason is: Aborting Audio Reconfigure. Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-12-03 23:40:24.824 playCtx, Error: Aborting Audio Reconfigure. Invalid audio parameters ch 2 fmt 0 @ 44100Hz
2010-12-03 23:40:24.939 AFD Warning: ScanATSCCaptionStreams() called with no PMT
2010-12-03 23:40:24.939 AFD: Opened codec 0x9e06000, id(MPEG2VIDEO) type(Video)
2010-12-03 23:40:24.939 AFD: codec MP2 has 2 channels
2010-12-03 23:40:24.939 AFD: Opened codec 0xa38e910, id(MP2) type(Audio)
2010-12-03 23:40:24.939 AFD: Audio Track #1 is A/V stream #1 and has 2 channels in the Undetermined language(7695972).
2010-12-03 23:40:24.939 AFD: Selected track 1: Undetermined MP2 2ch (A/V Stream #1)
2010-12-03 23:40:24.939 AFD: Initializing audio parms from audio track #1
2010-12-03 23:40:24.940 AFD: Audio format changed
                        from id(NONE)     -1Hz -1ch -1bps     to id( MP2)  48000Hz  2ch 16bps
2010-12-03 23:40:24.940 AO: Killing AudioOutputDSP
2010-12-03 23:40:24.984 Pulse: PulseAudio not running
2010-12-03 23:40:24.994 AO: Sample rate 48000 is supported
2010-12-03 23:40:24.994 AO: 2 channel(s) are supported
2010-12-03 23:40:25.013 AO: AC3 or DTS capable
2010-12-03 23:40:25.013 AO: 6 channel(s) are supported
2010-12-03 23:40:25.014 AO: Killing AudioOutputDSP
2010-12-03 23:40:25.014 AO: Original codec was MP2, signed 16 bit, 48 kHz, 2 channels
2010-12-03 23:40:25.014 AO: enc(0), passthru(0), canAC3(1), canDTS(1), canLPCM(0), configured_channels(2), 2 channels supported(1)
2010-12-03 23:40:25.014 AO: Opening audio device 'iec958:CARD=Live,DEV=0' ch 2(2) sr 48000 sf signed 16 bit reenc 0
2010-12-03 23:40:25.014 Opening ALSA audio device 'iec958:CARD=Live,DEV=0'.
2010-12-03 23:40:25.015 ALSA: SetParameters(format=2, channels=2, rate=48000, buffer_time=200000, period_time=50000)
2010-12-03 23:40:25.015 ALSA: Buffer time = 200000 us
2010-12-03 23:40:25.016 ALSA: Period time = 50000 us
2010-12-03 23:40:25.016 ALSA: Buffer size = 9600 | Period size = 2400
2010-12-03 23:40:25.016 AO: Audio fragment size: 4800
2010-12-03 23:40:25.016 AO: Audio Stretch Factor: 1
2010-12-03 23:40:25.016 AO: Ending Reconfigure()
2010-12-03 23:40:25.016 AudioPlayer: Enabling Audio
2010-12-03 23:40:25.016 AO: Reconfigure(): No change -> exiting
2010-12-03 23:40:25.017 AO: kickoffOutputAudioLoop: pid = 3067
2010-12-03 23:40:25.017 AO: OutputAudioLoop: Play Event
2010-12-03 23:40:25.106 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'
2010-12-03 23:40:25.159 OSD: Base theme size: 1920x1080
2010-12-03 23:40:25.159 OSD: Scaling factors: 0.375x0.444444
2010-12-03 23:40:25.173 [mpeg2video @ 0xb4bdc080]warning: first frame is no keyframe
2010-12-03 23:40:25.188 [mpeg2video @ 0xb4bdc080]warning: first frame is no keyframe
2010-12-03 23:40:25.428 OSD: Base theme size: 1920x1080
2010-12-03 23:40:25.428 OSD: Scaling factors: 0.375x0.444444
2010-12-03 23:40:25.428 OSD: Base theme size: 1920x1080
2010-12-03 23:40:25.428 OSD: Scaling factors: 0.375x0.444444
2010-12-03 23:40:25.435 Player(0): Video timing method: USleep with busy wait
2010-12-03 23:40:25.436 TV: Changing from None to WatchingPreRecorded
2010-12-03 23:40:25.470 AO: OutputAudioLoop: Play Event
2010-12-03 23:40:25.482 VideoOutput: Created YV12 OSD.
2010-12-03 23:40:27.819 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:28.220 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:28.622 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:29.023 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:29.424 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:29.826 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:30.627 ALSA, Error: WriteAudio: buffer underrun
2010-12-03 23:40:30.877 TV: Attempting to change from WatchingPreRecorded to None
2010-12-03 23:40:30.892 AO: Killing AudioOutputDSP
2010-12-03 23:40:30.928 AO: OutputAudioLoop: Stop Event
2010-12-03 23:40:30.928 AO: kickoffOutputAudioLoop exiting
2010-12-03 23:40:30.979 TV: Changing from WatchingPreRecorded to None
2010-12-03 23:41:05.001 OpenGL: Deleting OpenGL Resources
2010-12-03 23:41:05.011 Deleting UPnP client...


I've searched on-line about the "ALSA, Error: WriteAudio: buffer underrun" and didn't come up with much other than the one thread I referenced above.  I've tried some manual settings as well, like using "ALSA:hw:0,3" for the sound, along with "ALSA:default" with the old asoundrc file in place and couldn't get any working.  Any help is greatly appreciated.

Thanks,
Kevin




      


More information about the mythtv-users mailing list