LinHES Forums http://forums.linhes.org/ |
|
pcHDTV hd-5500 NTSC audio video issues on R5.5 http://forums.linhes.org/viewtopic.php?f=2&t=19387 |
Page 1 of 1 |
Author: | dothedog [ Thu Jan 01, 2009 7:57 pm ] |
Post subject: | pcHDTV hd-5500 NTSC audio video issues on R5.5 |
I know this is an on-going problem. I have found a number of threads here about it http://mysettopbox.tv/phpBB2/viewtopic.php?t=18678&highlight=hd5500+ntsc+audio and http://mysettopbox.tv/phpBB2/viewtopic.php?t=17863&highlight=hd5500+audio for example. I have tried pretty much everything in those posts with no luck. Just for background, I have an intel dual core, on board video with HDMI out, Digital SP/Dif out, and 1 hd-5500. I have successfully gotten the clear QAM off comcast cable, I have a firewire connection from a DCH-3200 working perfectly. The only thing left is analog NTSC on the hd-5500. Here is what I have done so far. I have the DMA capable hd-5500: Code: $ lspci | grep Audio 00:09.0 Audio device: nVidia Corporation MCP73 High Definition Audio (rev a1) 01:08.0 Multimedia video controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder (rev 05) 01:08.1 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [Audio Port] (rev 05) 01:08.2 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [MPEG Port] (rev 05) 01:08.4 Multimedia controller: Conexant Systems, Inc. CX23880/1/2/3 PCI Video and Audio Decoder [IR Port] (rev 05) Alsa recognizes it: Code: $ cat /proc/asound/cards 0 [NVidia ]: HDA-Intel - HDA NVidia HDA NVidia at 0xefff4000 irq 22 1 [CX8801 ]: CX88x - Conexant CX8801 Conexant CX8801 at 0xeb000000 There is a /dev/dsp1 Code: $ ll /dev | grep dsp crw-rw---- 1 root audio 14, 12 Jan 1 13:14 adsp crw-rw---- 1 root audio 14, 3 Jan 1 13:14 dsp crw-rw---- 1 root audio 14, 19 Jan 1 13:14 dsp1 Alsa is loading the correct modules: Code: $ lsmod | grep snd_* snd_hda_intel 347544 0 snd_pcm_oss 40608 0 snd_mixer_oss 18304 1 snd_pcm_oss snd_pcm 70916 3 snd_hda_intel,cx88_alsa,snd_pcm_oss snd_timer 23300 1 snd_pcm snd_page_alloc 11912 2 snd_hda_intel,snd_pcm snd_hwdep 11012 1 snd_hda_intel snd 52644 7 snd_hda_intel,cx88_alsa,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep soundcore 10080 1 snd I have made the changes to /etc/modprobe.d/alsa-base Code: #options cx88-alsa index=-2,-2,-2,-2,-2 enable=0,0,0,0,0 #added to enable sound on hd-5500 alias snd-card-0 snd_hda_intel options snd_hda_intel index=0 alias snd-card-1 cx88_alsa options cx88_alsa index=1 alsamixer is set for both devices (not muted) Backend >> Capture Cards >> check box "Open DVB Card On Demand" is set on the DVB side. I have the DVB and the v4l inputs in a custom input group HD55 So here is the problem. If I set the v4l card to use /dev/dsp, right after a reboot I can get a few minutes of good video but no audio. After a while I get the video flashing green, static, etc. every couple of seconds. Here are the DVB Settings: Card Type: DVB DTV Capture Card (v3.x) DVB Device Number: 0 Signal Timeout: 3000 Tuning Timeout: 5500 Recording Options Max Recordings: 1 Wait for SEQ: Checked Open DVB Card on Demand: Checked Use DVB Card for active EIT Scan: Checked DVB Tuning Delay: 0 Here are the v4l Settings: Card Type: Analog V4L Capture Card Video Device: /dev/video0 Probed Info: pcHDTV hd-5500 HDTV [cx8800] VBI Device: /dev/vbi0 Audio Device: /dev/dsp Audio Sampling Rate: 48000 Default Input: Television Also on the frontend I have all the recording profiles set to uncompressed 48000Khz So what happens is after a few minutes of good video and no audio, I start getting lots of static, green static, skipped frames etc. Here is what it looks like from the frontend logs: Code: 2009-01-01 17:59:56.219 Opening audio device 'default'. ch 2(2) sr 48000 2009-01-01 17:59:56.219 Opening ALSA audio device 'default'. 2009-01-01 17:59:56.236 ALSA, Warning: mmap not available, attempting to fall back to slow writes. 2009-01-01 17:59:56.314 Mixer unable to find control PCM 2009-01-01 17:59:56.314 Mixer unable to find control PCM 2009-01-01 17:59:56.315 Mixer unable to find control PCM 2009-01-01 17:59:56.315 Mixer unable to find control PCM 2009-01-01 17:59:56.315 Mixer unable to find control PCM 2009-01-01 17:59:56.316 Mixer unable to find control PCM 2009-01-01 17:59:56.316 Mixer unable to find control PCM 2009-01-01 17:59:56.868 VideoOutputXv: XVideo Adaptor Name: 'Intel(R) Textured Video' 2009-01-01 17:59:57.025 OSD Theme Dimensions W: 640 H: 480 2009-01-01 18:00:01.131 Realtime priority would require SUID as root. 2009-01-01 18:00:01.136 LiveTVChain(live-kohjish6-2009-01-01T17:56:47): SwitchTo() not switching to current 2009-01-01 18:00:04.343 NVP: Timed out waiting for free video buffers. 2009-01-01 18:00:05.016 Video timing method: USleep with busy wait 2009-01-01 18:00:05.063 NVP::AddAudioData():p1: Audio buffer overflow, audio data lost! ... (Gobs of these per second) 2009-01-01 18:00:14.899 NVP::AddAudioData():p1: Audio buffer overflow, audio data lost! 2009-01-01 18:00:15.050 TV: Attempting to change from WatchingLiveTV to None 2009-01-01 18:00:16.338 TV: Changing from WatchingLiveTV to None 2009-01-01 18:00:16.423 DPMS Reactivated. 2009-01-01 18:00:21.876 Deleting UPnP client... The backend log looks like this: Code: 2009-01-01 17:59:55.030 TVRec(6): Changing from None to WatchingLiveTV 2009-01-01 17:59:55.033 TVRec(6): HW Tuner: 6->6 2009-01-01 17:59:56.102 AutoExpire: CalcParams(): Max required Free Space: 2.0 GB w/freq: 15 min 2009-01-01 17:59:56.129 MainServer::HandleAnnounce Playback 2009-01-01 17:59:56.130 adding: kohjish6 as a client (events: 0) 2009-01-01 17:59:56.135 MainServer::HandleAnnounce FileTransfer 2009-01-01 17:59:56.136 adding: kohjish6 as a remote file transfer 2009-01-01 17:59:56.604 NVR(/dev/video0) Error: DQBUF ioctl failed. eno: Input/output error (5) 2009-01-01 17:59:56.620 NVR(/dev/video0) Error: Resetting and re-queueing 2009-01-01 17:59:57.430 NVR(/dev/video0) Error: DQBUF ioctl failed. eno: Input/output error (5) ... (Gobs of these too, a few per second) 2009-01-01 18:00:15.011 NVR(/dev/video0) Error: Resetting and re-queueing 2009-01-01 18:00:15.140 TVRec(6): Changing from WatchingLiveTV to None Simply changing the /dev/dsp in the v4l audio device to /dev/dsp1 gives me this in the frontend log: Code: 2009-01-01 18:12:44.450 TV: Attempting to change from None to WatchingLiveTV 2009-01-01 18:12:44.454 Using protocol version 40 2009-01-01 18:12:51.465 MythSocket(b3100b48:19): readStringList: Error, timeout (quick). 2009-01-01 18:12:51.465 RemoteEncoder::SendReceiveStringList(): No response. 2009-01-01 18:12:58.535 MythSocket(b3102720:19): readStringList: Error, timeout (quick). 2009-01-01 18:13:05.539 MythSocket(b3101d98:19): readStringList: Error, timeout (quick). QString::arg(): Argument missing: RemoteFile::openSocket(file data socket): Did not get proper responce from /1035_20090101181244.nuv:192.168.80.221, 6543 2009-01-01 18:13:05.539 RemoteFile::openSocket(file data socket): Did not get proper responce from /1035_20090101181244.nuv:192.168.80.221 2009-01-01 18:13:05.539 RingBuffer::RingBuffer(): Failed to open remote file (myth://192.168.80.221:6543/1035_20090101181244.nuv) 2009-01-01 18:13:05.540 MythSocket(b3102720:-1): writeStringList: Error, called with unconnected socket. 2009-01-01 18:13:05.540 MythSocket(b3102720:-1): readStringList: Error, called with unconnected socket. 2009-01-01 18:13:05.540 Remote file timeout. ...(Hundreds of these per second) 2009-01-01 18:13:45.543 TV Error: StartRecorder() -- timed out waiting for recorder to start 2009-01-01 18:13:45.543 TV Error: LiveTV not successfully started 2009-01-01 18:13:45.545 TV: Deleting TV Chain in destructor 2009-01-01 18:13:45.549 DPMS Reactivated. The backend log gives me this: Code: 2009-01-01 18:12:44.490 TVRec(6): Changing from None to WatchingLiveTV 2009-01-01 18:12:44.493 TVRec(6): HW Tuner: 6->6 2009-01-01 18:42:26.709 UPnpMedia: BuildMediaMap VIDEO scan starting in :/mnt/public/data/videos: So apparently /dev/dsp1 is not the correct device? What am I missing? If anyone can help me with this I would really appreciate it!!! I have another issue that I hope is relatively simple (if a little OT), I keep getting this error in my backend logs: Code: 2009-01-01 14:10:47.189 Reschedule requested for id -1.
2009-01-01 14:10:47.362 Scheduled 133 items in 0.2 = 0.02 match + 0.16 place 2009-01-01 14:14:57.052 DB Error (change_program): Query was: UPDATE program SET starttime = '2009-01-01T23:37:14', endtime = '2009-01-0 2T00:37:00' WHERE chanid = 2021 AND starttime = '2009-01-01T23:37:00' Driver error was [2/1062]: QMYSQL3: Unable to execute query Database error was: Duplicate entry '2021-2009-01-01 23:37:14-0' for key 1 2009-01-01 14:14:57.054 DB Error (change_program): Query was: UPDATE program SET starttime = '2009-01-01T23:37:14', endtime = '2009-01-0 2T00:37:00' WHERE chanid = 2021 AND starttime = '2009-01-01T23:37:00' Driver error was [2/1062]: QMYSQL3: Unable to execute query Database error was: Duplicate entry '2021-2009-01-01 23:37:14-0' for key 1 Is there an easy way to fix this? Dothedog |
Author: | dothedog [ Sun Jan 04, 2009 11:42 am ] |
Post subject: | |
One more piece of data. I just did a cat /proc/asound/pcm and got this: Code: $ cat /proc/asound/pcm
01-00: CX88 Digital : CX88 Digital : capture 1 00-02: ALC883 Analog : ALC883 Analog : capture 1 00-01: ALC883 Digital : ALC883 Digital : playback 1 : capture 1 00-00: ALC883 Analog : ALC883 Analog : playback 1 : capture 1 Should there be a card 01 Analog for the CX88? I have been struggling with this for a while. Please any help is appreciated. DoTheDog |
Author: | cecil [ Mon Jan 05, 2009 1:17 am ] |
Post subject: | |
In terms of MySQL, I'd check the db for errors. Anything on the pcHDTV forum in regard to NTSC? |
Author: | dothedog [ Mon Jan 05, 2009 8:58 am ] |
Post subject: | |
Cecil, Thanks for the reply. I actually did a "repair tables" in mythweb and I haven't seen the mysql errors since. I also did as your linked post suggested and have no errors. I will let you know if they come back. On the pcHDTV card analog, I will try posting to that forum as well. I have googled and googled and found that there are others with this problem but I haven't found the solution. If I get a fix, I will post here. BTW, Cecil, THANK YOU for your work on this, Knoppmyth is a great distro and for the most part has worked out of the box. Just got to get these final little things taken care of. Dothedog |
Author: | cesman [ Mon Jan 05, 2009 12:28 pm ] |
Post subject: | |
You're welcome. If you find a solution, please let use know. |
Author: | dothedog [ Tue Jan 06, 2009 7:48 am ] |
Post subject: | |
Cecil, Yeah, I posted on the pcHDTV forum here as well. Next stop is tech support there. I actually live in Salt Lake City, so I think I will try giving them a call. I will post here if I find a solution. DoTheDog |
Author: | poflynn [ Wed Feb 11, 2009 11:27 pm ] |
Post subject: | |
dothedog wrote: Cecil,
I actually live in Salt Lake City, DoTheDog Sorry, can't help you with your problem but I have to ask, why bother doing this when analog is going away very soon? |
Author: | pilesofspam [ Thu Feb 12, 2009 10:16 am ] |
Post subject: | |
Quote: Sorry, can't help you with your problem but I have to ask, why bother doing this when analog is going away very soon?
Just a quick note to whoever reads this and gets confused. Analog over the air broadcast (meaning you use rabbit ears or an antenna to get analog TV) is going to be retired on June 12, 2009 in the United States. You can get a converter box to down convert digital stations if you still want to use your analog TV or tuner. What your cable or satellite TV provides you is completely up to them. |
Author: | poflynn [ Thu Feb 12, 2009 10:28 am ] |
Post subject: | |
pilesofspam wrote: What your cable or satellite TV provides you is completely up to them.
True but it's my understanding that (comcast for example) have already stopped analog broadcasts in many areas and the rest are soon to follow. Maybe I'm just more averse to debugging these problems than most but it wouldn't seem worth it when you could lose your signal at any moment. Good luck, |
Author: | cliffsjunk [ Wed Feb 18, 2009 8:11 am ] |
Post subject: | |
poflynn wrote: Sorry, can't help you with your problem but I have to ask, why bother doing this when analog is going away very soon?
I have analog NTSC coming out of my satellite STB and going into an HD-5500. I also record OTA ATSC on this HD-5500. I have an analog sound card though. The only two tricks that I remember having to do were to set up both DVB and V4L drivers in mythtv-setup and make sure you select the "open dvb card on demand" in mythtv-setup. It sounds like you have done both. I'd through the HD-5500 into a different PC and do a test install on a junk hard drive for a test to see if you have hardware problems considering that it works ok for a little while after boot. |
Author: | neutron68 [ Wed Feb 18, 2009 6:24 pm ] |
Post subject: | what is the data rate? |
Hi Cliff (of cliffsjunk fame), You have a HD-5500 card capturing analog NTSC video WITH sound? What is the data rate (filesize per hour) of analog NTSC video captured with the HD-5500 card? I've only used the HD-5500 card for digital tv (HDTV mostly) because from what I've read on forums, getting it to capture analog video is more trouble than it's worth. In fact, I've never seen a successful "how-to capture analog" guide for either the HD-3000 or the HD-5500 card. For analog NTSC video (from the satellite receiver) I use a Hauppauge PVR-150 card. With the PVR series of cards, you get the benefit of MPEG video compression done by the card (rather than your processor) in real time. I have the data rate set around 5000kb/s. So every 1 hour of NTSC video takes up about 1.9GB of hard drive space. That allows 2 hours of video on a single layer DVD-R disc (for storage and sharing). Eric |
Author: | cliffsjunk [ Tue Mar 03, 2009 11:00 pm ] |
Post subject: | |
Sorry I am not very active on the forum lately... Yes, I have an STB running SVideo to the SVideo in on the HD-5500. I just set up my brother in law and sister the same way and it works fine too. I also record ATSC OTA and sometimes it even records ATSC and Analog at the same time. Works fine. You need to pretend that you have two different cards when you have an HD-5500. In mythtv-setup, set one up as DVB DTV (with "open DVB card on demand" enabled) and the other up as Analog V4L. Of course run the STB svideo to the svideo in on the HD-5500 and the STB audio to you sound card's line in input. As always, fiddle with alsamixer to make it record from line in. There is usually a slider to boost the record level. I find that it needs to be all the way down or else you make the analog recordings (that get boosted) a lot louder than the DVB recordings (which have audio as part of the digital file capture and thus don't get boosted thru the line-in booster). I played with my recording profiles and found that this works good (but I have a dual core 3.4 so I have plenty of CPU). In "recording profiles" select "software encoders (v4l based)" and set all profiles to this: (first page) 544x480 (video) MPEG-4 bitrate 4400 max qual 2 min qual 15 max qual diff 4 (y) scal bitrate for frame size (y) enable h-q encoding (y) enable 4mv encoding (n) enable interlaced DCT encoding (n) enable interlated motion... Number of threads 2 (because I am running a dual core CPU) (audio) MP3 48000 MP3 quality 2 volume 90% Data rate with this setup is about 1.7gig per hour. Let me know if it helps. Let the others that have problenms with HD-5500 know if it helps. Cliff |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |