[mythtv-users] PVR-350 playback causes mythfrontend to lock up (long)

Gerald Schepens schepens at shaw.ca
Wed Oct 13 08:35:31 UTC 2004


On occasion, mythfrontend hangs during fast-forward or reverse of 
playback on the PVR-350 TV out.  This is a longstanding problem which 
seems to have been really alleviated by me switching over to the very 
recent ivtv-0.3.0x drivers posted in Chris Kennedy's ivtv archives.  It 
used to be that my computer would completely lock if the playback messed 
up.  This doesn't seem to happen anymore, since switching from the 
ivtv-0.1.9 drivers. 

Now, during playback of recordings, on the occasional fast-forward / 
reverse, the playback will cease.  The OSD continues to behave itself, 
in the sense that it will time out and fade away.  At this point, the 
only way to stop the mythfrontend is to kill the process.  Looking at 
the myth frontend log will reveal that, usually, the hang is associated 
with many, many messages about "bad newframes".

However, I can restart another mythfrontend and continue watching the 
recording without having to reboot, or hit the reset button which would 
happen before on occasion as the entire machine would hang!

It seems like now I am so close to having this problem completely 
eliminated.  Anyone know what the issue is, and how to fix it?  Is it an 
issue with the mythfrontend playback?  with mplayer?  Is it still an 
ivtv issue?

I did see some mention about there being a sudo fix or a nice level 
thing a person's supposed to do with mythfrontend.  I just run the front 
end at standard priority.

Anyway, details:
ivtv 0.3.0 e (Chris Kennedy's)
mplayer 1.0pre5-3,2,2
myth 0.16.20040906-1

Relevant bits of modules.conf:

# This is for WinTV PVR-350 IVTV
alias char-major-61 lirc_i2c
alias char-major-81     videodev
alias char-major-81-0   ivtv

options ivtv ivtv_debug=1 tuner=2
# options tuner type=2
options saa7127 enable_output=1 output_select=1
options msp3400 once=0 simpler=1 simple=0
add below ivtv msp3400 saa7115 tuner saa7127
# add above ivtv lirc_dev lirc_i2c ivtv-fb
add above ivtv lirc_dev lirc_i2c ivtv-fb
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video0 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video16 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video32 -u 0x3000
post-install ivtv /usr/local/bin/ivtvctl -d /dev/video224 -u 0x3000



Relevant bits from dmesg:

i2c-algo-bit.o: i2c bit algorithm module
saa7127: video encoder driver version V 0.3 loaded
i2c-core.o: driver saa7127 registered.
i2c-core.o: driver i2c TV tuner driver registered.
i2c-core.o: driver saa7115 registered.
i2c-core.o: driver i2c msp3400 driver registered.
ivtv: ==================== START INIT IVTV ====================
ivtv: version 0.1.10 (0.3.0e) loading
ivtv: Linux version: 2.4.20-35.9
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: Found IRQ 5 for device 02:0d.0
ivtv: XXX PCI device: 0x2560 vendor: 0x8086
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.
0).
tuner: probing ivtv i2c driver #0 i2c adapter [id=0x10005]
tuner: chip found @ 0xc2
ivtv: i2c attach [client=(tuner unset),ok]
i2c-core.o: client [(tuner unset)] registered to adapter [ivtv i2c 
driver #0](po
s. 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) 0x81, (1F) 0xb1
msp34xx: ivtv version
msp34xx: init: chip=MSP3448W-A2, has NICAM support, simpler (G) 
no-thread mode
msp34xx: $Id$ compiled on: Oct 13 2004 01:16:33
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 = J323, serial# = 6813931
tveeprom: tuner = Philips FM1236 (idx = 23, type = 2)
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 2, Tuner formats 0x00001000, Radio: yes, Model 
0x00a93493, Revi
sion 0x00000001
ivtv: NTSC tuner detected
ivtv: Radio detected
ivtv: Encoder revision: 0x02040011
ivtv: Decoder revision: 0x02020023
ivtv: Configuring WinTV PVR 350 card with 10 streams
ivtv: Create DMA stream 0 using 128 32768 byte buffers  4194304 kbytes total
ivtv: Registered v4l2 device, streamtype 0 minor 0
ivtv: Create DMA stream 1 using 64 32768 byte buffers  2097152 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 64 32768 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 32 32768 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 32 32768 byte buffers  1048576 kbytes total
ivtv: Registered v4l2 device, streamtype 8 minor 48
ivtv: Create DMA stream 9 using 64 32768 byte buffers  2097152 kbytes total
ivtv: Setting Tuner 2
tuner: type set to 2 (Philips NTSC (FI1236,FM1236 and compatibles))
ivtv: ivtv_enc_thread: pid = 14265, itv = 0xe0aef800
ivtv: ivtv_dec_thread: pid = 14266, itv = 0xe0aef800
ivtv: Setting audio matrix to input 3, output 1
ivtv: Switching standard to NTSC.
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 0xe18a2000, size 1350k
ivtv-osd: mode is 720x480x32, linelength=2880
ivtv-osd: fb1: iTVC15 TV out frame buffer device
lirc_dev: IR Remote Control driver registered, at major 61
bttv: driver version 0.7.104 loaded
bttv: using 4 buffers with 2080k (8320k total) for capture
bttv: Host bridge is Intel Corp. 82845G/GL [Brookdale-G] Chipset 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
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
ivtv: v4l2 ioctl: set frequency 9140
saa7115: decoder enable output
ivtv: Finished with reset in 100 ms
ivtv: Finished with Mute
ivtv: DEC: (0) DMA Error 0x00000007


Relevant bits of mythfrontend.log:

2004-10-13 00:40:02 mythfrontend version: 0.16.20040906-1 www.mythtv.org
2004-10-13 00:40:02 Enabled verbose msgs : important general
2004-10-13 00:40:03 Registering Internal as a media playback plugin.
2004-10-13 00:40:03 Registering MythDVD DVD Media Handler as a media handler
2004-10-13 00:40:03 Registering MythDVD VCD Media Handler as a media handler
2004-10-13 00:40:03 Registering MythMusic Media Handler as a media handler
2004-10-13 00:40:08 Default
2004-10-13 00:40:09 Connecting to backend server: 127.0.0.1:6543 (try 1 
of 5)
2004-10-13 00:40:09 Using protocol version 13
2004-10-13 00:40:09 Using protocol version 13
Error loading image file: 
/usr/share/mythtv/themes/default/1037_20041012230000_20041013004500.nuv.png
Error loading image file: 
/usr/share/mythtv/themes/default/1037_20041012230000_20041013004500.nuv.png
Using the PVR-350 decoder/TV-out
2004-10-13 00:40:14 Changing from None to WatchingPreRecorded
bad newframes: 61 33720 33770 33721
bad newframes: 61 33720 33775 33721
pthread_setschedparam: Operation not permitted
2004-10-13 00:40:14 Running as SUID root would allow some threads to run 
with realtime priority, improving video smoothness.
bad newframes: 1 33720 33814 33781
bad newframes: 1 33720 33814 33781
bad newframes: 1 33720 33814 33781
bad newframes: 1 33720 33821 33781
bad newframes: 1 33720 33821 33781
...  (many many of these lines and similar lines)


I would be ever grateful if sonebody could help me finally get this 
problem completely fixed!

Regards,

Gerald Schepens


More information about the mythtv-users mailing list