Forums » Tutorial and setups »
Tvheadend + WinTV PVR USB2 = No device shown in adapter list
Added by Fritiof Hedman about 12 years ago
Hi!
I've installed tvheadend from the deb-package on this page. To this, I'm running a WinTV PVR USB2. However, when logging on to the admin interface there's no adapter shown in the list.
I've read somewhere where one hade a similiar problem that Tvheadends requires a MPEG-encoder, but the WinTV PVR USB2 has one (http://registration.hauppauge.com/webstore/hardware2.asp?product=pvrusb2).
The HTS is user is in video group, and I've run chmod a+rw /dev/video0 (which shows up, so the adaptor works. I figured at least.)
Output of dmesg:
zyber@tvbackend:/dev$ dmesg | grep pvr [ 6.164163] pvrusb2: Hardware description: WinTV PVR USB2 Model 24xxx [ 6.165014] usbcore: registered new interface driver pvrusb2 [ 6.165017] pvrusb2: V4L in-tree version:Hauppauge WinTV-PVR-USB2 MPEG2 Encoder/Tuner [ 6.165031] pvrusb2: Debug mask is 31 (0x1f) [ 7.385789] pvrusb2: Device microcontroller firmware (re)loaded; it should now reset and reconnect. [ 8.634223] pvrusb2: Device being rendered inoperable [ 12.447634] pvrusb2: Hardware description: WinTV PVR USB2 Model 24xxx [ 12.502051] pvrusb2: Device has newer IR hardware; disabling unneeded virtual IR device [ 12.502055] pvrusb2: Binding ir_rx_z8f0811_haup to i2c address 0x71. [ 12.502090] pvrusb2: Binding ir_tx_z8f0811_haup to i2c address 0x70. [ 12.616376] cx25840 0-0044: cx25843-24 found @ 0x88 (pvrusb2_a) [ 12.659415] pvrusb2: Attached sub-driver cx25840 [ 12.714742] pvrusb2: Attached sub-driver tuner [ 12.717808] wm8775 0-001b: chip found @ 0x36 (pvrusb2_a) [ 12.742876] pvrusb2: Attached sub-driver wm8775 [ 12.792495] pvrusb2: Attached sub-driver tuner [ 16.278047] pvrusb2: Supported video standard(s) reported available in hardware: PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K [ 16.278050] pvrusb2: Mapping standards mask=0xff00ff (PAL-B/B1/D/D1/G/H/I/K;SECAM-B/D/G/H/K/K1/L/LC) [ 16.278051] pvrusb2: Setting up 20 unique standard(s) [ 16.278053] pvrusb2: Set up standard idx=0 name=PAL-B/G [ 16.278054] pvrusb2: Set up standard idx=1 name=PAL-D/K [ 16.278056] pvrusb2: Set up standard idx=2 name=SECAM-B/G [ 16.278057] pvrusb2: Set up standard idx=3 name=SECAM-D/K [ 16.278058] pvrusb2: Set up standard idx=4 name=PAL-B [ 16.278059] pvrusb2: Set up standard idx=5 name=PAL-B1 [ 16.278060] pvrusb2: Set up standard idx=6 name=PAL-G [ 16.278061] pvrusb2: Set up standard idx=7 name=PAL-H [ 16.278062] pvrusb2: Set up standard idx=8 name=PAL-I [ 16.278063] pvrusb2: Set up standard idx=9 name=PAL-D [ 16.278064] pvrusb2: Set up standard idx=10 name=PAL-D1 [ 16.278065] pvrusb2: Set up standard idx=11 name=PAL-K [ 16.278067] pvrusb2: Set up standard idx=12 name=SECAM-B [ 16.278068] pvrusb2: Set up standard idx=13 name=SECAM-D [ 16.278070] pvrusb2: Set up standard idx=14 name=SECAM-G [ 16.278071] pvrusb2: Set up standard idx=15 name=SECAM-H [ 16.278073] pvrusb2: Set up standard idx=16 name=SECAM-K [ 16.278075] pvrusb2: Set up standard idx=17 name=SECAM-K1 [ 16.278076] pvrusb2: Set up standard idx=18 name=SECAM-L [ 16.278077] pvrusb2: Set up standard idx=19 name=SECAM-LC [ 16.278079] pvrusb2: Initial video standard auto-selected to PAL-B/G [ 16.278085] pvrusb2: Device initialization completed successfully. [ 16.278564] pvrusb2: registered device video0 [mpeg] [ 16.278867] pvrusb2: registered device radio0 [mpeg] zyber@tvbackend:/dev$ dmesg | grep tv [ 16.278035] tveeprom 0-00a2: Hauppauge model 24029, rev E189, serial# 8665800 [ 16.278038] tveeprom 0-00a2: tuner model is TCL MFPE05 2 (idx 89, type 38) [ 16.278039] tveeprom 0-00a2: TV standards PAL(B/G) PAL(I) SECAM(L/L') PAL(D/D1/K) (eeprom 0x74) [ 16.278041] tveeprom 0-00a2: audio processor is CX25843 (idx 37) [ 16.278042] tveeprom 0-00a2: decoder processor is CX25843 (idx 30) [ 16.278043] tveeprom 0-00a2: has radio, has IR receiver, has IR transmitter
And syslog with tvheadends output:
Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: pvrusb2 WinTV PVR USB2 Model 24xxx usb-0000:02:02.0-1 capabilities: 0x01070001 Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #0: 0000000000000005 PAL-B/G, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #1: 00000000000000a0 PAL-D/K, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #2: 0000000000050000 SECAM-B/G, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #3: 0000000000120000 SECAM-D/K, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #4: 0000000000000001 PAL-B, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #5: 0000000000000002 PAL-B1, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #6: 0000000000000004 PAL-G, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #7: 0000000000000008 PAL-H, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #8: 0000000000000010 PAL-I, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #9: 0000000000000020 PAL-D, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #10: 0000000000000040 PAL-D1, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #11: 0000000000000080 PAL-K, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #12: 0000000000010000 SECAM-B, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #13: 0000000000020000 SECAM-D, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #14: 0000000000040000 SECAM-G, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #15: 0000000000080000 SECAM-H, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #16: 0000000000100000 SECAM-K, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #17: 0000000000200000 SECAM-K1, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #18: 0000000000400000 SECAM-L, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Standard #19: 0000000000800000 SECAM-LC, frameperiod: 1/25, 625 lines Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Input #0: television (Tuner), audio:0x0, tuner:0, standard:0000000000000000, Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Input #1: composite (Camera), audio:0x0, tuner:0, standard:0000000000000000, Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Input #2: s-video (Camera), audio:0x0, tuner:0, standard:0000000000000000, Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Input #3: radio (Tuner), audio:0x0, tuner:0, standard:0000000000000000, Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Format #0: MPEG1/2 [] (compressed) Sep 9 14:53:28 tvbackend tvheadend[7981]: v4l: /dev/video0: Device lacks MPEG encoder, device skipped Sep 9 14:53:28 tvbackend tvheadend[7981]: dvr: Creating new configuration '' Sep 9 14:53:28 tvbackend tvheadend[7981]: CSA: Using SSE2 128bit parallel descrambling Sep 9 14:53:28 tvbackend tvheadend[7981]: START: HTS Tvheadend version 3.0 started, running as PID:7981 UID:106 GID:44, settings located in '/home/hts/.hts/tvheadend', dataroot: /usr/share/tvheadend
Why does tvheadend says that there's no mpeg encoder? Have I missed something?
Thanks in advance!
Zyber
Replies (6)
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Fritiof Hedman about 12 years ago
I did a ugly hack; removed the check for can_mpeg. And it works! Almost. I can scan, and view video, however, I have no sound. What should I check for?
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Ellen Verheyen about 12 years ago
Where did you disable the "can_mpeg" ?
Thanks, Ellen
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Adam Sutton about 12 years ago
in src/v4l.c it checks what output formats the device supports if MPEG is not listed this is how the detection is done. Simplest solution is set can_mpeg=1 on line 509 (that's line in git master, or just find "int can_mpeg = 0" and change to 1).
I'd be interested to see how this goes, although generally the analogue stuff is mostly unloved.
Adam
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Ellen Verheyen about 12 years ago
that's when compiling? I'm just testing this on my appleTV .. so I cannot recompile on the fly...
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Adam Sutton about 12 years ago
Well there is no way to override this check without re-building TVH. It's a hard rule that the device must provide an MPEG2 encoder and if it has one and fails to do so that equates to the same thing (i.e. it doesn't have one as far as TVH is concerned).
It's possible the check code is flawed, I'd have to read it, but still not much you can do about that without recompiling.
Unless the driver is wrong and there is something you can do to to re-configure the driver, not sure there is much can be done.
Adam
RE: Tvheadend + WinTV PVR USB2 = No device shown in adapter list - Added by Fritiof Hedman about 12 years ago
Adam Sutton wrote:
in src/v4l.c it checks what output formats the device supports if MPEG is not listed this is how the detection is done. Simplest solution is set can_mpeg=1 on line 509 (that's line in git master, or just find "int can_mpeg = 0" and change to 1).
I'd be interested to see how this goes, although generally the analogue stuff is mostly unloved.
Adam
It's actually my devices driver that is flawed, but it was quite a lot easier to recomple tvheadend than the v4l driver
It actually works pretty well, except for one thing - there is no sound. The video works great, I can change channel without any problem, it just the sound.
Any thoughts?
Fritiof