Author |
Message |
knappster
|
Posted: Thu Jul 17, 2008 11:37 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
R5.5 auto-install.
Using on-board audio on ASUS M2NPV-VM with the spdif optical output to my surround sound I am getting intermittent scratchy audio on Live TV / Recordings. I am using a PVR-500 for recording but it doesn't seem related to that card because it's even intermittent if I play the same recording multiple times. Sometimes the scratchy audio is quite loud, other time quite soft.
It does not appear to matter which tuner I am using, but the audio frequently screws up when switching tuners while watching live tv. I can fix the audio (until the scratchiness happens changing a channel, tuner, livetv, etc.) by opening alsamixer and muting/unmuting the master audio or the digital (IEC958) audio. Or when I change the channel if it's scratchy it will sometimes clear up. It has me baffled...
I would say it happens about 1/4 of the time, which is just enough to drive a person insane. I still have the config files of when I was running R5F27, is there anything there that might be able to help me out?
|
|
Top |
|
|
mihanson
|
Posted: Fri Jul 18, 2008 11:40 am |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
You know, I swear Asus is driving HTPC users insane on purpose. I have not taken a poll, but it seems that 3/4 of all the digital audio complaints I see have to do with Asus mobos...
Anyway....
What audio settings are you using (down in the utilities/setup > general, I think) and what other options does MythTV give you other than the ones you're using?
_________________ Mike
My Hardware Profile
|
|
Top |
|
|
knappster
|
Posted: Fri Jul 18, 2008 12:04 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I have tried a couple different setups, I will have to post the actual values when I get home... I know it behaved the same whether the first setting was /dev/adsp or ALSA:spdif.
I had the two pass throughs checked, and I tried it with the internal adjustment option checked or unchecked. I think that tonight I will boot up my R5F27 drive and get screenshots of some of the settings that I need to setup in 5.5 and I will maybe post a comparison here.
I have only just switched to digital audio a couple of weeks ago, but I had no trouble with R5F27 using it. Perhaps an interim solution would be to play analog audio for TV and digital audio for pass through from DVDs.
edit: And (I think) I am using Internal player for everything. I haven't noticed any problems with passthrough on DVDs (both optical and ISOs) but I haven't tested them nearly as much as TV.
|
|
Top |
|
|
knappster
|
Posted: Fri Jul 18, 2008 7:08 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
My mythfrontend is not logging for some reason since I set up mythwelcome on 5.5. Anyway, I ran Code: mythwelcome -v all > mythwelcome.log and pressed watched live tv a few times until the audio went bad. Here is a piece of the log that concerns me Code: 2008-07-18 19:41:51.530 TV: Attempting to change from None to WatchingLiveTV 2008-07-18 19:41:51.530 Using protocol version 40 2008-07-18 19:41:52.684 MythSocket(8272be8:13): socket is readable 2008-07-18 19:41:52.684 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:41:52.684 read <- 13 53 BACKEND_MESSAGE[]:[]QUERY_NEXT_LIVETV_DIR 2[]:[]empty 2008-07-18 19:41:52.684 MythEvent: QUERY_NEXT_LIVETV_DIR 2 2008-07-18 19:41:52.685 read <- 13 51 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty 2008-07-18 19:41:52.685 MythEvent: RECORDING_LIST_CHANGE 2008-07-18 19:41:52.685 read <- 13 81 BACKEND_MESSAGE[]:[]LIVETV_CHAIN UPDATE live-mythtv-2008-07-18T19:41:51[]:[]empty 2008-07-18 19:41:52.685 MythEvent: LIVETV_CHAIN UPDATE live-mythtv-2008-07-18T19:41:51 2008-07-18 19:41:53.351 MythSocket(8272be8:13): socket is readable 2008-07-18 19:41:53.351 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:41:53.351 read <- 13 51 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty 2008-07-18 19:41:53.351 MythEvent: RECORDING_LIST_CHANGE 2008-07-18 19:41:54.148 AFD: Opened codec 0x83217d0, id(MPEG2VIDEO) type(Video) 2008-07-18 19:41:54.148 AFD: codec MP2 has 2 channels 2008-07-18 19:41:54.148 AFD: Opened codec 0x831aad0, id(MP2) type(Audio) 2008-07-18 19:41:54.203 Opening audio device 'spdif'. ch 2(2) sr 48000 2008-07-18 19:41:54.203 Opening ALSA audio device 'spdif'. 2008-07-18 19:41:54.237 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture' 2008-07-18 19:41:54.270 OSD Theme Dimensions W: 640 H: 480 2008-07-18 19:41:54.333 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:54.334 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:54.824 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:54.888 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:54.952 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.021 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.024 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.051 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.066 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.129 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.160 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.161 OSDImgCache, Error: Creating osdcache file failed. 2008-07-18 19:41:55.164 TV: Changing from None to WatchingLiveTV 2008-07-18 19:41:55.171 Realtime priority would require SUID as root. 2008-07-18 19:41:55.270 Video timing method: USleep with busy wait 2008-07-18 19:41:55.273 WriteAudio: buffer underrun 2008-07-18 19:41:55.274 WriteAudio: buffer underrun 2008-07-18 19:41:55.276 WriteAudio: buffer underrun 2008-07-18 19:42:28.145 MythSocket(8272be8:13): socket is readable 2008-07-18 19:42:28.145 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:42:28.145 read <- 13 83 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE DELETE 5009 2008-07-18T19:39:31[]:[]empty 2008-07-18 19:42:28.145 MythEvent: RECORDING_LIST_CHANGE DELETE 5009 2008-07-18T19:39:31 2008-07-18 19:42:34.162 MythSocket(8272be8:13): socket is readable 2008-07-18 19:42:34.163 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:42:34.163 read <- 13 83 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE DELETE 5009 2008-07-18T19:39:31[]:[]empty 2008-07-18 19:42:34.163 MythEvent: RECORDING_LIST_CHANGE DELETE 5009 2008-07-18T19:39:31 2008-07-18 19:43:34.590 TV: Attempting to change from WatchingLiveTV to None 2008-07-18 19:43:34.601 MythSocket(8272be8:13): socket is readable 2008-07-18 19:43:34.601 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:43:34.601 read <- 13 50 BACKEND_MESSAGE[]:[]DONE_RECORDING 2 101[]:[]empty 2008-07-18 19:43:34.601 MythEvent: DONE_RECORDING 2 101 2008-07-18 19:43:34.790 MythSocket(8272be8:13): socket is readable 2008-07-18 19:43:34.790 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:43:34.791 read <- 13 81 BACKEND_MESSAGE[]:[]LIVETV_CHAIN UPDATE live-mythtv-2008-07-18T19:41:51[]:[]empty 2008-07-18 19:43:34.791 MythEvent: LIVETV_CHAIN UPDATE live-mythtv-2008-07-18T19:41:51 2008-07-18 19:43:34.797 MythSocket(8272be8:13): socket is readable 2008-07-18 19:43:34.797 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:43:34.798 read <- 13 51 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty 2008-07-18 19:43:34.798 MythEvent: RECORDING_LIST_CHANGE 2008-07-18 19:43:34.800 MythSocket(8272be8:13): socket is readable 2008-07-18 19:43:34.800 MythSocket(8272be8:13): cb->readyRead() 2008-07-18 19:43:34.800 read <- 13 51 BACKEND_MESSAGE[]:[]RECORDING_LIST_CHANGE[]:[]empty 2008-07-18 19:43:34.800 MythEvent: RECORDING_LIST_CHANGE 2008-07-18 19:43:34.825 TV: Changing from WatchingLiveTV to None Destroying SipFsm object 2008-07-18 19:43:37.244 Deleting UPnP client...
Huh??????
|
|
Top |
|
|
tjc
|
Posted: Fri Jul 18, 2008 7:59 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
For starters check that this directory exists and has the right ownership and permissions:
Code: root@black2:/usr/local/bin# ls -ld /home/mythtv/.mythtv/osdcache drwxr-xr-x 2 mythtv mythtv 40960 May 4 00:04 /home/mythtv/.mythtv/osdcache
Also check your storage directory settings in mythtv-setup
|
|
Top |
|
|
knappster
|
Posted: Fri Jul 18, 2008 8:05 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Code: root@mythtv:/home/brian# ls -ld /home/mythtv/.mythtv/osdcache drwxr-xr-x 2 root root 4096 Jul 17 21:46 /home/mythtv/.mythtv/osdcache I suppose I should run chown mythtv:mythtv I just don't understand how it is wrong from a fresh install... Could Code: Realtime priority would require SUID as root. be the reason why I am having sound problems? edit: I don't know why realtime priority is not working. This is a different message than if it is completely disabled. Here is my /etc/security/limits.conf relevant info: Code: #Realtime * - rtprio 0 * - nice 0 @audio - rtprio 50 @audio - nice 0 # End of file
and Code: grep audio /etc/group returns Code: audio:x:29:mythtv,brian
|
|
Top |
|
|
knappster
|
Posted: Fri Jul 18, 2008 11:49 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
A couple images of my R5.5 setup as promised.
I have made no progress on this so far, except to change the ownership of osdcache to mythtv.
|
|
Top |
|
|
knappster
|
Posted: Sat Jul 19, 2008 12:21 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I was getting c7 respawning too fast errors this morning after some modification I must have made last night. I did a backup and auto-upgrade and was still getting them. I did an auto-install this morning and still had problems, so I am going back to R5F27 for now. Here are the audio settings to compare to what they are in R5.5.
If one of the devs wants me to run any tests in IRC sometime that would probably be the best way to go about working through it so that I can get realtime feedback.
|
|
Top |
|
|
knappster
|
Posted: Wed Jul 23, 2008 8:41 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I am thinking about revisiting this. But I do have a couple of questions.
tjc: I did several auto-upgrades and auto-installs on this machine, and every time I checked, the osdcache directory had root ownership. Is there something that I am doing to cause this to happen?
I know there are several people using the ASUS M2NPV-VM motherboard because their Tier 1 reviews are the reason that I selected it. Is anyone with this motherboard (audio chipset ADI AD1986A) using the SPDIF out for all of their audio? Are you experiencing any problems?
|
|
Top |
|
|
mihanson
|
Posted: Wed Jul 23, 2008 2:12 pm |
|
Joined: Sun Sep 25, 2005 3:50 pm
Posts: 1013
Location:
Los Angeles
|
knappster:
What output does
Code: # aplay -l produce? I have a box with a similar audio chipset (ADI AD1988B) and this is what it produces: Quote: root@mythbox-rfe-1:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital] Subdevices: 1/1 Subdevice #0: subdevice #0 As you can see, the digital side of the audio is on Card 0, Device 1. My output works fine with the settings you have in your pics. (ALSA:spdif / ALSA:iec958:{ AES0 0x02 } ). The only deviation is the Upmix setting. I don't recall what I set it to as I'm not infront of it, but have you tried messing with that? Other suggestions: Manually type into the Audio Output Device as: Code: ALSA:hw:0,1 Code: ALSA:plughw:0,1
Reference: http://alsa.opensrc.org/index.php/DigitalOut
_________________ Mike
My Hardware Profile
|
|
Top |
|
|
knappster
|
Posted: Wed Jul 23, 2008 9:07 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
Just for the record, this is the output of Code: aplay -l on the R5F27 installation. Code: **** List of PLAYBACK Hardware Devices **** card 0: NVidia [HDA NVidia], device 0: AD198x Analog [AD198x Analog] Subdevices: 1/1 Subdevice #0: subdevice #0 card 0: NVidia [HDA NVidia], device 1: AD198x Digital [AD198x Digital] Subdevices: 1/1 Subdevice #0: subdevice #0
I will post the results on an R5.5 installation when I get it back up and running.
|
|
Top |
|
|
knappster
|
Posted: Fri Aug 08, 2008 6:00 am |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I have also noticed this problem very infrequently on R5. Powered up this morning, I went to Watch Live TV and the audio was very loud and totally static. The frontend log only shows:
Code: 2008-08-08 06:36:30.530 TV: Attempting to change from None to WatchingLiveTV 2008-08-08 06:36:30.531 Using protocol version 31 2008-08-08 06:36:31.901 AFD: Opened codec 0x8b00d40, id(MPEG2VIDEO) type(Video) 2008-08-08 06:36:31.925 AFD: Opened codec 0x8b01090, id(MP2) type(Audio) 2008-08-08 06:36:32.044 Opening OSS audio device '/dev/dsp'. 2008-08-08 06:36:32.080 VideoOutputXv: XvMCTex: Init failed 2008-08-08 06:36:32.081 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 142 Minor opcode: 14 Resource id: 0x13c 2008-08-08 06:36:32.768 TV: Changing from None to WatchingLiveTV 2008-08-08 06:36:32.768 The realtime priority setting is not enabled. 2008-08-08 06:36:32.938 Video timing method: SGI OpenGL 2008-08-08 06:36:38.097 TV: Attempting to change from WatchingLiveTV to None [mpeg2video @ 0xb72543a8]ac-tex damaged at 0 20 [mpeg2video @ 0xb72543a8]Warning MVs not available 2008-08-08 06:36:38.599 TV: Changing from WatchingLiveTV to None
A few seconds later I went back into watch live tv and the sound was perfectly normal. Here is the frontend log for that: Code: 2008-08-08 06:36:40.852 TV: Attempting to change from None to WatchingLiveTV 2008-08-08 06:36:40.853 Using protocol version 31 2008-08-08 06:36:41.880 AFD: Opened codec 0x9d61390, id(MPEG2VIDEO) type(Video) 2008-08-08 06:36:41.880 AFD: Opened codec 0x8aff840, id(MP2) type(Audio) 2008-08-08 06:36:41.998 Opening OSS audio device '/dev/dsp'. 2008-08-08 06:36:42.007 VideoOutputXv: XvMCTex: Init failed 2008-08-08 06:36:42.007 VideoOutputXv: XVideo Adaptor Name: 'NV17 Video Texture'X Error: BadMatch (invalid parameter attributes) 8 Major opcode: 142 Minor opcode: 14 Resource id: 0x13c 2008-08-08 06:36:42.403 The realtime priority setting is not enabled. 2008-08-08 06:36:42.404 TV: Changing from None to WatchingLiveTV 2008-08-08 06:36:42.531 Video timing method: SGI OpenGL [mpeg2video @ 0xb72543a8]ac-tex damaged at 41 23 [mpeg2video @ 0xb72543a8]Warning MVs not available
I don't see anything useful in syslog, messages, daemon.log... mythbackend.log shows: Code: 2008-08-08 06:36:12.314 MainServer::HandleAnnounce Playback 2008-08-08 06:36:12.316 adding: mythtv as a client (events: 0) 2008-08-08 06:36:12.317 MainServer::HandleAnnounce Monitor 2008-08-08 06:36:12.318 adding: mythtv as a client (events: 1) 2008-08-08 06:36:30.531 MainServer::HandleAnnounce Playback 2008-08-08 06:36:30.540 adding: mythtv as a client (events: 0) 2008-08-08 06:36:30.554 TVRec(2): Changing from None to WatchingLiveTV 2008-08-08 06:36:30.558 TVRec(2): HW Tuner: 2->2 2008-08-08 06:36:38.141 TVRec(2): Changing from WatchingLiveTV to None 2008-08-08 06:36:38.288 Finished recording The Daily Buzz: channel 1004 2008-08-08 06:36:40.853 MainServer::HandleAnnounce Playback 2008-08-08 06:36:40.856 adding: mythtv as a client (events: 0) 2008-08-08 06:36:40.858 TVRec(2): Changing from None to WatchingLiveTV 2008-08-08 06:36:40.861 TVRec(2): HW Tuner: 2->2 2008-08-08 06:36:54.999 Finished recording The Daily Buzz: channel 1004 2008-08-08 06:36:55.195 Finished recording The Daily Buzz: channel 1004 0: start_time: 0.036 duration: 1.123 1: start_time: 0.017 duration: 1.104 stream: start_time: 0.189 duration: 12.690 bitrate=4274 kb/s 2008-08-08 06:36:55.237 AFD: Opened codec 0x824dfd0, id(MPEG2VIDEO) type(Video) 2008-08-08 06:36:55.260 AFD: Opened codec 0x824d720, id(MP2) type(Audio) 2008-08-08 06:36:55.280 TVRec(2): RingBufferChanged() 2008-08-08 06:36:55.288 Finished recording The Daily Buzz: channel 1004 2008-08-08 06:38:13.077 Expiring The Daily Buzz from Fri Aug 8 05:00:00 2008, 3 MBytes, forced expire (LiveTV recording) 2008-08-08 06:38:13.080 Expiring The Daily Buzz from Fri Aug 8 05:00:00 2008, 6 MBytes, forced expire (LiveTV recording)
The audio has only done it 2-3 times in the past several weeks on R5F27, but it was happening about 25% of the time in R5.5. I don't get it.
|
|
Top |
|
|
bpmcgee
|
Posted: Sat Aug 23, 2008 8:09 am |
|
Joined: Sat May 19, 2007 4:40 pm
Posts: 41
|
Knappster,
Did you figure out the problem? I've got this motherboard, and I was just checking the forums before I pulled the trigger on 5.5
B
|
|
Top |
|
|
knappster
|
Posted: Sun Aug 24, 2008 9:33 pm |
|
Joined: Thu Sep 27, 2007 5:44 pm
Posts: 580
|
I did not get it resolved. I have been using R5F27 still. But apparently I am the only one with the problem, so you might be okay. I would highly recommend backing up everything you can though. Having a 2nd hard drive saved me.
|
|
Top |
|
|
Human
|
Posted: Mon Aug 25, 2008 1:37 pm |
|
Joined: Thu Sep 30, 2004 11:29 am
Posts: 2419
Location:
Mechanicsburg, PA
|
In R5.5, I have a script that will configure the system for digital audio based on a combination of generic and hardware-specific settings.
Code: twk_audio.pl --implement digital Please try it in R5.5 and let me know if it works or fails for you. In either case, please also post the results of these commands so I know how to detect your audio device in the scripts: Code: lspci -vv lspci -mn
_________________ KnoppMyth R5.5
MythiC Dragon v2.0
Join the KnoppMyth Frappr!
|
|
Top |
|
|