[mythtv-users] PVR-350 TV-out

Tony Paterra apaterra at gmail.com
Tue Mar 22 23:00:25 UTC 2005


Let me preface with I have spent numerous hours on this project and
specifically trying to get this last part working so I apologize if I
haven't been able to find something in the archives as the search
strings I've tried haven't netted me much!  Any help would be greatly
appreciated as I am really excited to see this in action.

My current setup:

Software
MythTV v0.16
ivtv v0.2.0-rc2q
Slackware 9.1

Hardware
Athlon 1200
PVR-350 (input is rg-6 coax)

I am noticing the following behaviors:
-If I use ivtvfbctl and dd video0 -> video16 I have fine live video
with audio and can use ptune-ui.pl to change channels.

-I am able to display X on the TV screen through the TV-out on the
PVR-350 by su'ing to root and starting x so I am assuming my XFConfig
is ok.

The problem I am having is that when I start myth up and want to use
it for LiveTV.  It doesn't have sound and the framerate/resolution are
very low so I'm guessing it isn't using the decoder on the PVR-350's
TV-out.  Below are my log files as well as my dmesg.

mythfrontend:
root at www:~# cat /var/log/mythfrontend.log
Xlib:  extension "GLX" missing on display ":0.0".
Xlib:  extension "GLX" missing on display ":0.0".
2005-03-22 17:52:25 mythfrontend version: 0.16.20040906-1 www.mythtv.org
2005-03-22 17:52:25 Enabled verbose msgs : important general
mythtv: could not connect to socket
mythtv: Connection refused
lirc_init failed for mythtv, see preceding messages
2005-03-22 17:52:27 Registering Internal as a media playback plugin.
removing stale cache dir: /root/.mythtv/themecache/G.A.N.T..2560.1024
removing stale cache dir: /root/.mythtv/themecache/G.A.N.T..2560.1024/bkg
removing stale cache dir: /root/.mythtv/themecache/G.A.N.T..2560.1024/title
removing stale cache dir: /root/.mythtv/themecache/G.A.N.T..2560.1024/type
removing stale cache dir: /root/.mythtv/themecache/G.A.N.T..2560.1024/watermark
2005-03-22 17:52:51 Connecting to backend server: 127.0.0.1:6543 (try 1 of 5)
2005-03-22 17:52:51 Using protocol version 13
2005-03-22 17:52:51 Using protocol version 13
2005-03-22 17:52:51 Using protocol version 13
2005-03-22 17:52:53 Opening OSS audio device '/dev/dsp'.
2005-03-22 17:52:53 Audio fragment size: 4096
X Error: XvBadPort 153
  Major opcode:  142
  Minor opcode:  15
  Resource id:  0xffffffff
X Error: XvBadPort 153
  Major opcode:  142
  Minor opcode:  14
  Resource id:  0xffffffff
Couldn't get the color key color, and we need it.
You likely won't get any video.
***
* Couldn't find Xv support, falling back to non-Xv mode.
* MythTV performance will be much slower since color
* conversion and scaling will be done in software.
* Consider upgrading your video card or X server if
* you would like better performance.
2005-03-22 17:52:53 Changing from None to WatchingLiveTV
2005-03-22 17:52:54 Using realtime priority.
***
* Your system is not capable of displaying the
* full framerate at 720x480 resolution.  Frames
* will be skipped in order to keep the audio and
* video in sync.
2005-03-22 17:53:04 Changing from WatchingLiveTV to None
2005-03-22 17:53:04 Changing from None to None
root at www:~#

mythbackend.log:
root at www:~# cat /var/log/mythbackend.log
Starting up as the master server.
2005-03-22 17:52:25 mythbackend version: 0.16.20040906-1 www.mythtv.org
2005-03-22 17:52:25 Enabled verbose msgs : important general
2005-03-22 17:52:27 Found changes in the todo list.
2005-03-22 17:52:27 Scheduled 0 items in 0.14719 seconds.
2005-03-22 17:52:27 Seem to be woken up by USER
2005-03-22 17:52:51 MainServer::HandleAnnounce Playback
2005-03-22 17:52:51 adding: www as a client (events: 0)
2005-03-22 17:52:51 MainServer::HandleAnnounce Playback
2005-03-22 17:52:51 adding: www as a client (events: 1)
2005-03-22 17:52:51 MainServer::HandleAnnounce Playback
2005-03-22 17:52:51 adding: www as a client (events: 0)
2005-03-22 17:52:51 MainServer::HandleAnnounce Playback
2005-03-22 17:52:51 adding: www as a client (events: 0)
2005-03-22 17:52:51 adding: www as a remote ringbuffer
2005-03-22 17:52:51 Changing from None to WatchingLiveTV
2005-03-22 17:53:04 Changing from WatchingLiveTV to None
root at www:~#

dmesg:
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
FAT: bogus logical sector size 261
UMSDOS: msdos_read_super failed, mount aborted.
FAT: bogus logical sector size 261
FAT: bogus logical sector size 261
md: swapper(pid 1) used obsolete MD ioctl, upgrade your software to
use new ictls.
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device md(9,0)) ...
for (md(9,0))
md(9,0):Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 116k freed
Unable to find swap-space signature
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device md(9,1)) ...
for (md(9,1))
md(9,1):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device md(9,2)) ...
for (md(9,2))
md(9,2):Using r5 hash to sort names
reiserfs: found format "3.6" with standard journal
reiserfs: checking transaction log (device md(9,3)) ...
for (md(9,3))
md(9,3):Using r5 hash to sort names
Linux agpgart interface v0.99 (c) Jeff Hartmann
agpgart: Maximum main memory to use for agp memory: 439M
agpgart: Detected Via Apollo Pro KT400 chipset
agpgart: AGP aperture is 64M @ 0xf8000000
PCI: Found IRQ 11 for device 01:00.0
PCI: Sharing IRQ 11 with 00:0d.0
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-6106  Wed Jun
23 08:14:01 PDT 2004
via-rhine.c:v1.10-LK1.1.19  July-12-2003  Written by Donald Becker
  http://www.scyld.com/network/via-rhine.html
PCI: Assigned IRQ 9 for device 00:12.0
eth0: VIA VT6102 Rhine-II at 0xa800, 00:0c:6e:28:b4:87, IRQ 9.
eth0: MII PHY found at address 1, status 0x786d advertising 01e1 Link 45e1.
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
PCI: Found IRQ 3 for device 00:10.3
PCI: Sharing IRQ 3 with 00:10.0
PCI: Sharing IRQ 3 with 00:10.1
PCI: Sharing IRQ 3 with 00:10.2
ehci_hcd 00:10.3: VIA Technologies, Inc. USB 2.0
ehci_hcd 00:10.3: irq 3, pci mem e0f70000
usb.c: new USB bus registered, assigned bus number 1
PCI: 00:10.3 PCI cache line size set incorrectly (32 bytes) by BIOS/FW.
PCI: 00:10.3 cache line size too large - expecting 16.
ehci_hcd 00:10.3: USB 2.0 enabled, EHCI 1.00, driver 2003-Jun-19/2.4
hub.c: USB hub found
hub.c: 6 ports detected
eth0: Setting full-duplex based on MII #1 link partner capability of 45e1.
uhci.c: USB Universal Host Controller Interface driver v1.1
PCI: Found IRQ 3 for device 00:10.0
PCI: Sharing IRQ 3 with 00:10.1
PCI: Sharing IRQ 3 with 00:10.2
PCI: Sharing IRQ 3 with 00:10.3
uhci.c: USB UHCI at I/O 0xd000, IRQ 3
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:10.1
PCI: Sharing IRQ 3 with 00:10.0
PCI: Sharing IRQ 3 with 00:10.2
PCI: Sharing IRQ 3 with 00:10.3
uhci.c: USB UHCI at I/O 0xb800, IRQ 3
usb.c: new USB bus registered, assigned bus number 3
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Found IRQ 3 for device 00:10.2
PCI: Sharing IRQ 3 with 00:10.0
PCI: Sharing IRQ 3 with 00:10.1
PCI: Sharing IRQ 3 with 00:10.3
uhci.c: USB UHCI at I/O 0xb400, IRQ 3
usb.c: new USB bus registered, assigned bus number 4
hub.c: USB hub found
hub.c: 2 ports detected
PCI: Enabling device 00:0d.1 (0004 -> 0005)
gameport0: Emu10k1 Gameport at 0xd400 size 8 speed 1242 kHz
PCI: Enabling device 00:0d.0 (0004 -> 0005)
PCI: Found IRQ 11 for device 00:0d.0
PCI: Sharing IRQ 11 with 01:00.0
hdb: attached ide-scsi driver.
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: _NEC      Model: DVD_RW ND-3500AG  Rev: 2.16
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 48x/48x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.12
Linux video capture interface: v1.00
i2c-core.o: i2c core module
i2c-algo-bit.o: i2c bit algorithm module
i2c-core.o: driver i2c TV tuner driver registered.
saa7127: video encoder driver version V 0.3 loaded
i2c-core.o: driver saa7127 registered.
i2c-core.o: driver saa7115 registered.
i2c-core.o: driver i2c msp3400 driver registered.
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.2.0 (0.2.0-rc2q) loading
ivtv: Linux version: 2.4.22
ivtv: In case of problems please include the debug info
ivtv: between the START INIT IVTV and END INIT IVTV lines when
ivtv: mailing the ivtv-devel mailinglist.
ivtv: Autodetected WinTV PVR 350 card
ivtv: Found an iTVC15 based chip
PCI: Enabling device 00:0b.0 (0014 -> 0016)
PCI: Assigned IRQ 5 for device 00:0b.0
ivtv: Unreasonably low latency timer, setting to 64 (was 32)
ivtv: VIA PCI device: 0x3189 vendor: 0x1106
tuner: chip found @ 0xc2
tuner(bttv): type forced to 47 (LG NTSC (TAPE series)) [insmod]
ivtv: i2c attach [client=LG NTSC (TAPE series),ok]
i2c-core.o: client [LG NTSC (TAPE series)] registered to adapter [ivtv
i2c driver #0](pos. 0).
saa7127: Selecting NTSC video Standard
saa7127: Selecting S-Video+Composite
saa7127: Turn WSS off
saa7127: Widescreen Mode 4:3 Full Format
saa7127: Selecting Normal Encoder Input
saa7127: Enable Video Output
ivtv: i2c attach [client=saa7127[0],ok]
i2c-core.o: client [saa7127[0]] registered to adapter [ivtv i2c driver
#0](pos. 1).
saa7115: starting probe for adapter ivtv i2c driver #0 (0x10005)
saa7115: detecting saa7115 client on address 0x42
saa7115: writing init values
ivtv: i2c attach [client=saa7115[0],ok]
i2c-core.o: client [saa7115[0]] registered to adapter [ivtv i2c driver
#0](pos. 2).
saa7115: status: (1E) 0x01, (1F) 0xc0
msp34xx: ivtv version
msp34xx: init: chip=MSP3448W-A2, has NICAM support, simpler (G) no-thread mode
msp34xx: $Id$ compiled on: Nov 22 2004 00:20:56
ivtv: i2c attach [client=MSP3448W-A2,ok]
i2c-core.o: client [MSP3448W-A2] registered to adapter [ivtv i2c
driver #0](pos. 3).
i2c-core.o: adapter ivtv i2c driver #0 registered as adapter 0.
i2c-core.o: driver tveeprom registered.
tveeprom: Hauppauge: model = 48132, rev = K168, serial# = 7520123
tveeprom: tuner = LG TAPE H001F MK3 (idx = 68, type = 47)
tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08, v4l2 = 0x00001000)
tveeprom: audio_processor = MSP3440 (type = 11)
ivtv: i2c attach [client=tveeprom[0],ok]
i2c-core.o: client [tveeprom[0]] registered to adapter [ivtv i2c
driver #0](pos. 4).
ivtv: Tuner Type 47, Tuner formats 0x00001000, Radio: yes, Model
0x00ad1598, Revision 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
ivtv: Encoder revision: 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 9 streams
ivtv: Create DMA stream 0 using 256 16384 byte buffers  4194304 kbytes total
ivtv: Registered v4l2 device, streamtype 0 minor 0
ivtv: Create DMA stream 1 using 64 16384 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 1 minor 32
ivtv: Create stream 2 using 40 52224 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 2 minor 224
ivtv: Create DMA stream 3 using 128 16384 byte buffers  2097152 kbytes total
ivtv: Registered v4l2 device, streamtype 3 minor 24
ivtv: Create stream 4
ivtv: Registered v4l2 device, streamtype 4 minor 64
ivtv: Create DMA stream 5 using 16 65536 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 5 minor 16
ivtv: Create stream 6 using 1024 2048 byte buffers  262144 kbytes total
ivtv: Registered v4l2 device, streamtype 6 minor 228
ivtv: Create stream 7
ivtv: Registered v4l2 device, streamtype 7 minor 232
ivtv: Create DMA stream 8 using 16 65536 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 8 minor 48
ivtv: ivtv_enc_thread: pid = 1366, itv = 0xe109fcc0
ivtv: ivtv_dec_thread: pid = 1367, itv = 0xe109fcc0
ivtv: Setting Tuner 47
tuner: type already set (47)
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
spurious 8259A interrupt: IRQ7.
saa7115: decoder set norm NTSC
saa7115: set audio: 0x01
saa7127: Setting Encoder Video Standard
saa7127: Set NTSC Video Mode
saa7127: Selecting NTSC video Standard
ivtv: Initialized WinTV PVR 350, card #0
ivtv: ====================  END INIT IVTV  ====================
ivtv-osd: Framebuffer module loaded (attached to ivtv card id 0)
ivtv-osd: Framebuffer is at decoder-relative address 0x00510000 and
has 1704960 bytes.
ivtv-osd: screen coords: [0 0] -> [720 480]
ivtv-osd: original global alpha = 208
ivtv-osd: current OSD state = 39
ivtv-osd: new global alpha = 208 (1 255 0)
ivtv-osd: framebuffer at 0xe9510000, mapped to 0xe1e53000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
Console: switching to colour frame buffer device 90x30
ivtv-osd: fb0: iTVC15 TV out frame buffer device
lirc_dev: IR Remote Control driver registered, at major 61
bttv: driver version 0.7.107 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
i2c-core.o: driver i2c ir driver registered.
lirc_i2c: chip found @ 0x18 (Hauppauge IR)
ivtv: i2c attach [client=Hauppauge IR,ok]
i2c-core.o: client [Hauppauge IR] registered to adapter [ivtv i2c
driver #0](pos. 5).
lirc_dev: lirc_register_plugin:sample_rate: 10
bttv: driver version 0.7.107 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is VIA Technologies, Inc. VT8377 [KT400 AGP] Host Bridge
saa7115: decoder set picture bright=128 contrast=63 saturation=64 hue=0
saa7115: decoder set picture bright=128 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder disable output
saa7115: decoder enable output
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set picture bright=127 contrast=63 saturation=63 hue=0
saa7115: decoder set size
saa7115: decoder disable output
saa7115: decoder enable output
root at www:~#


--
Tony Paterra
apaterra at gmail.com


-- 
Tony Paterra
apaterra at gmail.com


More information about the mythtv-users mailing list