[mythtv-users] HD-PVR blues and 0.22 - wrong video node

John P Poet jppoet at gmail.com
Tue Nov 17 16:25:29 UTC 2009


On Tue, Nov 17, 2009 at 6:12 AM, Michael Drons <mdrons at yahoo.com> wrote:
> ----- Original Message ----
>
>> From: Bob Sully <rcs at malibyte.net>
>> To: Mythtv users' list <mythtv-users at mythtv.org>
>> Sent: Tue, November 17, 2009 2:33:44 AM
>> Subject: [mythtv-users] HD-PVR blues and 0.22 - wrong video node
>>
>> Hi all -
>>
>> More 0.22 break-in blues.
>>
>> I have an HD-PVR.  Under 0.21-fixes, I used it to record by running a
>> little script I ran manually.  Worked fine, though I had to ssh into the
>> Myth machine in order to record something if I wasn't home.  I was
>> compiling the driver myself, as I was running Ubuntu 9.04 with an older
>> kernel which didn't include it.
>>
>> I am now running Ubuntu 9.10 with the 2.6.31-14 stock kernel.
>>
>>
>> I have a pcHD-5500 card in the machine which is /dev/video0.  The HD-PVR
>> should be assigned as /dev/video1.  It was assigned that node before, as I
>> have this:
>>
>> options hdpvr video_nr=1 default_video_input=0 default_audio_input=2
>>
>> in /etc/modprobe.d/hdpvr.conf, and the following in
>> /etc/udev/rules.d/50-custom.rules:
>>
>> # HD-PVR
>> KERNEL=="video*" , ATTRS{product}=="Hauppauge HD PVR" , NAME="video1"
>> KERNEL=="video1" , MODE="0666",   SYMLINK+="video"
>>
>>
>> Under 0.22, mythtv-setup sees the two tuners where they should be, when I
>> assign capture cards - the pcHD-5500 on /dev/video0 and the HD-PVR on
>> /dev/video1.
>>
>> However, I tried scheduling two recordings on the HD-PVR tonight, and both
>> failed.  Log states "Canceled recording - recorder failed".
>>
>> I tried recording manually (cat /dev/video1 > test.ts).  This worked
>> perfectly well before.  Now, I only get audio...which I think is from the
>> pcHDTV card (which had last recorded from ABC; the STB was set to FX-HD;
>> the audio was from an ABC show), and no video:
>>
>> mplayer test.ts
>> Error while decoding frame!
>> [h264_vdpau @ 0xc3dc00]B picture before any references, skipping 0
>> [h264_vdpau @ 0xc3dc00]decode_slice_header error
>> [h264_vdpau @ 0xc3dc00]no frame!
>> Error while decoding frame!
>> [h264_vdpau @ 0xc3dc00]decoding to PIX_FMT_NONE is not supported.0
>> [h264_vdpau @ 0xc3dc00]decode_slice_header error
>> [h264_vdpau @ 0xc3dc00]no frame!
>> Error while decoding frame!
>> [h264_vdpau @ 0xc3dc00]B picture before any references, skipping 0
>> [h264_vdpau @ 0xc3dc00]decode_slice_header error
>> [h264_vdpau @ 0xc3dc00]no frame!
>> Error while decoding frame!
>>
>> BUT...while recording, the LEDs on the HD-PVR DO light up.
>>
>>
>> Looking at /var/log/syslog, when I power-cycle the HD-PVR, I see this:
>>
>> Nov 16 22:49:01 vader kernel: [ 4440.100268] usb 2-3: USB disconnect,
>> address 5
>> Nov 16 22:49:02 vader kernel: [ 4440.210058] hdpvr 2-3:1.0: device
>> /dev/video0 disconnected
>> Nov 16 22:49:34 vader kernel: [ 4472.460073] usb 7-1: new full speed USB
>> device using uhci_hcd and address 4
>> Nov 16 22:49:34 vader kernel: [ 4472.650094] usb 7-1: device descriptor
>> read/64, error -71
>> Nov 16 22:49:34 vader kernel: [ 4472.890043] usb 7-1: device descriptor
>> read/64, error -71
>> Nov 16 22:49:34 vader kernel: [ 4473.120033] usb 7-1: new full speed USB
>> device using uhci_hcd and address 5
>> Nov 16 22:49:35 vader kernel: [ 4473.192571] hub 7-0:1.0: unable to
>> enumerate USB device on port 1
>> Nov 16 22:49:37 vader kernel: [ 4475.292546] usb 2-3: new high speed USB
>> device using ehci_hcd and address 7
>> Nov 16 22:49:37 vader kernel: [ 4475.468123] usb 2-3: configuration #1
>> chosen from 1 choice
>> Nov 16 22:49:37 vader kernel: [ 4475.667516] hdpvr 2-3:1.0: untested
>> firmware version 0x12, the driver might not work
>> Nov 16 22:49:37 vader kernel: [ 4475.980827] hdpvr 2-3:1.0: device now
>> attached to /dev/video0
>>
>> However, looking at the two nodes:
>> [mythtv at vader: /video]$ lsl /dev/video*
>> crw-rw----+ 1 root video 81, 1 2009-11-16 21:35 /dev/video0
>> crw-rw----+ 1 root video 81, 0 2009-11-16 22:49 /dev/video1
>>
>> /dev/video1 is obviously assigned to it, if you go by the file creation
>> times. Yet, it doesn't record.
>>
>> I tried rebooting the Myth machine.  No difference.
>>
>> This is really baffling.  Can anyone give me a sure-fire way to make sure
>> the right node gets assigned with the Ubuntu HD-PVR kernel module??  I had
>> it working reliably before.
>>
>> Thanks for any help you can offer.
>> Bob
>> --
>> ________________________________________
>> Bob Sully - Simi Valley, California, USA
>> http://www.malibyte.net
>> http://www.malibyte.com
>>
>> _______________________________________________
>> mythtv-users mailing list
>> mythtv-users at mythtv.org
>> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
>
> This is my udev rule:
> SUBSYSTEM=="video4linux", ATTR{name}=="Hauppauge HD PVR", SYMLINK+="hdpvr"
>
> It creates a symlink as /dev/hdpvr to the video device.  I then use /dev/hdpvr in mythtv
>
> myth# ls -la /dev/hdpvr
> lrwxrwxrwx 1 root root 6 Nov  9 02:32 /dev/hdpvr -> video0
>
> Mike

And, if you have more than one HD-PVR, you can further break it down
by adding the serial number:

SUBSYSTEM=="video4linux",ATTR{name}=="Hauppauge HD
PVR",ATTRS{serial}=="00A88A4E",SYMLINK+="hdpvr0"


John
-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?


More information about the mythtv-users mailing list