Re: Stream degrades when going through CAM

2011-10-09 Thread Roger Mårtensson

Roger Mårtensson skrev 2011-10-08 12:32:

Hej(Hello)!

The hardware I got is a mystique DVB-C Card but it seems to a KNC1 
TV-Station MK3 clone.
08:01.0 Multimedia controller [0480]: Philips Semiconductors SAA7146 
[1131:7146] (rev 01)

Subsystem: KNC One Device [1894:0028]
Flags: bus master, medium devsel, latency 64, IRQ 16
Memory at fbeffc00 (32-bit, non-prefetchable) [size=512]
Kernel driver in use: budget_av
Kernel modules: budget-av

The CAM is a SMIT CONAX.

Kernel Used: 2.6.38(2.6.38-11-generic. Ubuntu 11.04 SMP)

Drivers tested: from latest media_build git
I noticed now that my board seems to be using a tda10024. It's wired the 
same as a tda10023 in the code so it seems compatible to 10023?


Whenever I insert the cam and starts a capture I get this error in the 
dmesg:

[8.019398] budget_av: cam inserted A
[8.689753] dvb_ca adapter 0: DVB CAM detected and initialised 
successfully

[   15.061237] eth0: no IPv6 routers present
[   92.831735] budget_av: cam inserted A
[   92.832713] DVB: TDA10023(0): tda10023_writereg, writereg error (reg 
== 0x2a, val == 0x02, ret == -121)
[   93.499511] dvb_ca adapter 0: DVB CAM detected and initialised 
successfully

[  161.695810] budget_av: cam ejected 5

This is after a reboot and one capture with gnutv.
If I unplug the CAM the error does not show.

Can it be related to the corrupt mpg-stream I see whenever the CAM is 
inserted?

--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Stream degrades when going through CAM

2011-10-08 Thread Roger Mårtensson

Hej(Hello)!

I'm the one that posted about non responding CAM earlier. I got another 
CAM I had laying around to work but now it's different problems.


With this SMIT Conax CAM(Earlier it was a Dilog Conax) I can decode but 
the resulting mpg-stream degrades fast to something unwatchable.


The testprogram I'm using is gnutv:
$ gnutv -channels ~/my-channels-v4.conf -timeout 30 -out file t.mpg SVT1
Using frontend Philips TDA10023 DVB-C, type DVB-C
status SCVYL | signal f0f0 | snr f3f3 | ber 000f | unc 00ec | 
FE_HAS_LOCK

CAM Application type: 01
CAM Application manufacturer: cafe
CAM Manufacturer code: babe
CAM Menu string: Conax Conditional Access
CAM supports the following ca system ids:
  0x0b00
Received new PMT - sending to CAM...

The recording always starts up nice but after some time it gets blocky 
artifacts and mplayer starts outputing errors. These artifacts increases 
almost exponential making this 30 second recording unwatchable very fast.

This of course does not happen when the CAM isn't inserted.

So my question is. Is there something in the driver talking with the CAM 
that degrades the stream?


It's almost like when the errors starts displaying it gets more worse by 
the second.


Other errors I see with this CAM inserted are PMT/NIT/STD filter 
timeouts when scanning with w_scan and filter timeouts(one or many pids) 
with scan resulting in channels not being found. Other runs may find the 
missing channels but then others are missing. Sometimes a run completes 
without errors and all channels are found.


If the CAM is not inserted then I do not see these errors.
All tests done with the same non-encrypted channel. (encrypted channels 
show the same problems. HD Channels degrades faster than SD.)


If someone with knowledge could help me it would be great. I sure do 
want to get this working. It is working, sort of. I does decode so 
something is getting through the CAM but not for long.


I did try to search the web and mailing list and I did find people 
with similar errors all the way back to 2006.


The hardware I got is a mystique DVB-C Card but it seems to a KNC1 
TV-Station MK3 clone.
08:01.0 Multimedia controller [0480]: Philips Semiconductors SAA7146 
[1131:7146] (rev 01)

Subsystem: KNC One Device [1894:0028]
Flags: bus master, medium devsel, latency 64, IRQ 16
Memory at fbeffc00 (32-bit, non-prefetchable) [size=512]
Kernel driver in use: budget_av
Kernel modules: budget-av

The CAM is a SMIT CONAX.

Kernel Used: 2.6.38(2.6.38-11-generic. Ubuntu 11.04 SMP)

Drivers tested: from latest media_build git
--
To unsubscribe from this list: send the line unsubscribe linux-media in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html