Log in Register FAQ Memberlist Search pcHDTV Forum Index
pcHDTV Forum

pcHDTV Forum Index -> Installation/Setup -> pcHDTV hd-5500 NTSC audio video issues on Knoppmyth R5.5
Post new topic  Reply to topic View previous topic :: View next topic 
pcHDTV hd-5500 NTSC audio video issues on Knoppmyth R5.5
PostPosted: Mon Jan 05, 2009 8:25 am Reply with quote
dothedog
 
Joined: 05 Jan 2009
Posts: 2




All, I have posted this on the Knoppmyth board as well here, but I thought maybe you guys could help.

I know this is an on-going problem. I have found a number of threads 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...


What does this "Mixer unable to find control PCM" mean? Looks like I have something misconfigured...

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!!!

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
View user's profile Send private message
PostPosted: Wed Jan 14, 2009 3:19 pm Reply with quote
MiniPilote
 
Joined: 14 Jan 2009
Posts: 1




Any update on this issue? I've been trying to get my card to receive analog too. My problem right now though is that I don't have 2 sound cards. I added the v4l device but didn't get another sound card entry.

Do I have manually add the other sound card?

Thanks for any help

_________________
____________________________
MiniPilote
View user's profile Send private message
PostPosted: Sun Jan 18, 2009 6:17 am Reply with quote
TrinitronX
 
Joined: 20 Dec 2008
Posts: 7




I have also been struggling with getting audio when using analog input methods on this card. Due to a sound card capture issue, I am unable to get quality audio through he sound card loop cable going to line-in.

Please see my other thread here for details, and what I've currently found in this forum. There seem to be many different threads saying getting audio through DMA (over the PCI bus) with "analog" input may or may not be possible... but it currently is unclear as to when it is or is not.

It seems to me that it may depend on what connections are used. However, due to the confusion of terms "Analog" and "Digital" in combination with the various A/D capable input methods on this card, it is very confusing to me when it can be done.

Another possibility is that there's a bug somewhere in the cx88_alsa driver that's not allowing a possible switch to grab audio through DMA from either the RF Coax port, or the 3.5mm jack port on the back of this card.

In a previous attempt at getting this working, I was hearing white noise static when capturing from /dev/dsp1. This indicated to me (once I did more investigating), that the card was capturing audio from my OTA antenna on the Coax. Since it wasn't tuning this while capturing analog video over S-Video, it was white noise.

The most perplexing part to me about this card is that if audio capture from the 3.5mm jack is not possible through DMA.... then WHY is it even on the card???
View user's profile Send private message
PostPosted: Sun Jan 18, 2009 7:57 pm Reply with quote
dothedog
 
Joined: 05 Jan 2009
Posts: 2




Minipilote, Try doing the steps in the posts linked in my original post. There are a couple of things you have to do to get the audio working, e.g. edit the /etc/modprobe.d/alsa-base file. If you can get it working doing those things, please post here. Because I am not getting anywhere with it.

Trinitronix, Have you tried taking your audio output to your input on your sound card? I think the 3.5 mm port on the HD-5500 is an OUTPUT. I could be wrong though, I think it is made to take audio out of the video stream and pass it to the sound card. When I go to alsamixer, I only get an output. I don't get a line-in.

DoTheDog
View user's profile Send private message
PostPosted: Mon Jan 19, 2009 12:28 am Reply with quote
TrinitronX
 
Joined: 20 Dec 2008
Posts: 7




Oh, I see. After doing some tests, I realized that the audio coming direct from the set top box was leading the video, and they were out of sync. When putting the 3.5mm jack from my STB into the pcHDTV 5500, and then plugging the audio loop output cable into my sound card's line-in port, I have synchronized audio & video. This is the reason for the strange loop on the card... since once video goes in, it takes time to process, and lags behind realtime broadcast. If audio is separated, it will lead and be output in realtime. To fix this, they have audio input to the chip for synchronous processing along with the video.

Perhaps the posts I've read saying that when using non-RF Coax inputs, one cannot get audio over the PCI bus are true.

This would mean that S-Video and using DMA audio access are mutually exclusive. The post here seems to discuss this in full detail. It now makes sense how this is working, the onboard DAC's are in use by chroma/luma for S-Video. I seemed to miss this explanation before.

Now to do some tests to see if composite input works with DMA audio or not. Otherwise, I'll have to get my sound card's line-in capture working without crackling.
View user's profile Send private message
PostPosted: Wed Dec 10, 2014 6:21 am Reply with quote
Gohar
 
Joined: 10 Dec 2014
Posts: 1




This is very nice post thank a lot...!!!

_________________
we are the pioneers in providing HP0-J73 exam dumps and Test king tutorials with ndm
View user's profile Send private message
pcHDTV hd-5500 NTSC audio video issues on Knoppmyth R5.5
  pcHDTV Forum Index -> Installation/Setup
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 7 Hours  
Page 1 of 1  

  
  
 Post new topic  Reply to topic  


Powered by phpBB © 2001-2003 phpBB Group
Theme created by Vjacheslav Trushkin