<br><br><div class="gmail_quote">On Fri, Mar 23, 2012 at 5:02 AM, Tony Sauri <span dir="ltr"><<a href="mailto:hoiho.nz@gmail.com">hoiho.nz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am running a mythbuntu 11.10 distribution with the following version of<br>
mythtv:<br>
mythbackend version: fixes/0.24 [v0.24.1-80-g1de0431] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a><br>
<br>
I have a Hauppauge HVR1300 capture card which has 3 logical capture devices:<br>
<br>
a) A frame grabber at /dev/video0 Driver: cx8800<br>
b) An MPEG HW encoder at /dev/video1 Driver: cx88_blackbird<br>
c) A DVB-T capture device at /dev/dvb/adapter0/frontend0<br>
Driver: cx88_bvb<br>
<br>
AN extract of Dnesg showing the initialisation of the card follows:<br>
<br>
[ 8.877663] cx88/0: cx2388x v4l2 driver version 0.0.8 loaded<br>
[ 8.877772] cx8800 0000:00:0d.0: enabling device (0014 -> 0016)<br>
[ 8.877819] cx8800 0000:00:0d.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16<br>
[ 8.917050] cx88[0]: subsystem: 0070:9600, board: Hauppauge WinTV-HVR1300<br>
DVB-T/Hybrid MPEG Encoder [card=56,autodetected], frontend(s): 1<br>
[ 8.917061] cx88[0]: TV tuner type 63, Radio tuner type -1<br>
[ 8.981378] cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.8 loaded<br>
[ 9.039271] cx88[0]: i2c init: enabling analog demod on HVR1300/3000/4000<br>
tuner<br>
[ 9.844156] cx88[0]: hauppauge eeprom: model=96559<br>
[ 9.918354] cx88[0]/0: found at 0000:00:0d.0, rev: 5, irq: 16, latency: 32,<br>
mmio: 0xf5000000<br>
[ 10.108518] wm8775 1-001b: chip found @ 0x36 (cx88[0])<br>
[ 10.124046] cx88[0]/0: registered device video0 [v4l2]<br>
[ 10.124264] cx88[0]/0: registered device vbi0<br>
[ 10.124440] cx88[0]/0: registered device radio0<br>
[ 10.124604] cx88[0]/2: cx2388x 8802 Driver Manager<br>
[ 10.124630] cx88-mpeg driver manager 0000:00:0d.2: enabling device (0014 -><br>
0016)<br>
[ 10.124647] cx88-mpeg driver manager 0000:00:0d.2: PCI INT A -> GSI 16<br>
(level, low) -> IRQ 16<br>
[ 10.124659] cx88[0]/2: found at 0000:00:0d.2, rev: 5, irq: 16, latency: 32,<br>
mmio: 0xf3000000<br>
[ 10.124915] cx88_audio 0000:00:0d.1: enabling device (0014 -> 0016)<br>
[ 10.124924] cx88_audio 0000:00:0d.1: PCI INT A -> GSI 16 (level, low) -><br>
IRQ 16<br>
[ 10.124975] cx88[0]/1: CX88x/0: ALSA support for cx2388x boards<br>
[ 10.654488] cx88/2: cx2388x dvb driver version 0.0.8 loaded<br>
[ 10.654498] cx88/2: registering cx8802 driver, type: dvb access: shared<br>
[ 10.654506] cx88[0]/2: subsystem: 0070:9600, board: Hauppauge WinTV-HVR1300<br>
DVB-T/Hybrid MPEG Encoder [card=56]<br>
[ 10.654514] cx88[0]/2: cx2388x based DVB/ATSC card<br>
[ 10.654518] cx8802_alloc_frontends() allocating 1 frontend(s)<br>
[ 10.859527] DVB: registering new adapter (cx88[0])<br>
[ 10.912343] cx88/2: registering cx8802 driver, type: blackbird access:<br>
shared<br>
[ 10.912351] cx88[0]/2: subsystem: 0070:9600, board: Hauppauge WinTV-HVR1300<br>
DVB-T/Hybrid MPEG Encoder [card=56]<br>
[ 10.912361] cx88[0]/2: cx23416 based mpeg encoder (blackbird reference<br>
design)<br>
[ 10.912584] cx88[0]/2-bb: Firmware and/or mailbox pointer not initialized<br>
or corrupted<br>
[ 13.294976] cx88[0]/2-bb: Firmware upload successful.<br>
[ 13.301564] cx88[0]/2-bb: Firmware version is 0x02060039<br>
[ 13.316110] cx88[0]/2: registered device video1 [mpeg]<br>
<br>
<br>
I have tested the hardware on this system outside of the mythtv environment<br>
and each of the components works flawlessly except for 1 cosmetic(?) bug:<br>
<br>
The cx88_blackbird driver or the v4l2-ctl userspace utility fails to return<br>
the correct result when querying the input source for /dev/video1:<br>
<br>
tartarus@locarno:~$ v4l2-ctl -d /dev/video1 -I<br>
Video input : 0 (Television)<br>
tartarus@locarno:~$ v4l2-ctl -d /dev/video1 -i 1<br>
Video input set to 1 (Composite1)<br>
tartarus@locarno:~$ v4l2-ctl -d /dev/video1 -I<br>
Video input : 0 (Television)<br>
tartarus@locarno:~$ v4l2-ctl -d /dev/video1 -i 2<br>
Video input set to 2 (S-Video)<br>
tartarus@locarno:~$ v4l2-ctl -d /dev/video1 -I<br>
Video input : 0 (Television)<br>
tartarus@locarno:~$<br>
<br>
ie It doesnt matter what the input device is set to it always reports<br>
Televisin when queried.<br>
<br>
I say this is possibly cosmetic because the driver sets up the correct input<br>
device and the correct or expected stream is outpit on /dev/video1.<br>
<br>
However when I try to configure the card in myth-setup the /dev/video0 and<br>
the /dev/dvb/adapter0 devices are set up correctly but when I try and<br>
configure the /dev/video1 device I am prevented from choosing a hardware MHEG<br>
encoder device because this is not an IVTV device. I can only take the V4L<br>
analogue device option and everything becomes very broken when I try and<br>
record a programme on the device.<br>
<br>
In essence the system tries to setup the NVR module to record a frame grabbibg<br>
operation but then falls apart when presented with an MPEG encoded stream.<br>
<br>
Is there some fundamental part of this puzzle I am overlooking that can make<br>
the MPEG encoder work in my environment or am I facing a point of time<br>
incompatability caused by feature misalignment in the V4L, V4L2, IVTV, Mythtv<br>
projects?<br>
<br>
Any thoughts would be appreciated<br></blockquote><div><br></div><div>I believe you should be using the DVB interfaces in MythTV. That uses the same MPEG hardware encoder as video1 through the supported API that Myth is looking for</div>
<div><br></div><div>Kevin</div></div>