[mythtv-users] convertx ppc livetv hanging

Scott Goldman scottjg at umich.edu
Mon Jan 7 08:50:56 UTC 2008


I've recently installed debian on my ppc mac mini and setup mythtv. I use a 
plextor convertx (usb) for capture.

Though I can schedule recordings and they seem to record ok, If I watch live 
tv, when transitioning to a new show, livetv hangs. On 20.2 it would make 
mythfrontend use 100% cpu and hang. I've updated now to svn (rev 15357), and 
the behavior changed. The video still hangs but now I can escape back to the 
menu and click back in to keep watching.  I have some backend/frontend logs 
below.  Anyone know how I can fix it?

I saw some old trac ticket about some similar behavior. A lot of people said 
they fixed it by unchecking the "Wait for SEQ start Header". I didn't see 
this in mythtv-setup, is this option deprecated?

some --verbose recorded,playback logs from the backend:
2008-01-07 03:19:48.785 Using profile 'Live TV' to record
2008-01-07 03:19:48.785 TVRec(1): CreateLiveTVRingBuffer()
2008-01-07 03:19:48.785 TVRec(1): GetProgramRingBufferForLiveTV()
2008-01-07 03:19:49.883 TVRec(1): StartedRecording(0x10254be8) 
fn(/var/lib/mythtv/1058_20080107031948.nuv)
2008-01-07 03:19:49.898 Chain: Appended at 0 '1058_20080107031948'
2008-01-07 03:19:49.903 TVRec(1): SetFlags(RingBufferReady,) -> 
RunMainLoop,AskAllowRecording,NeedToStartRecorder,RingBufferReady,
2008-01-07 03:19:49.926 RecBase(/dev/video0): SetRingBuffer(0x1029ec90) 
'/var/lib/mythtv/1058_20080107031948.nuv'
2008-01-07 03:19:49.948 RecBase(/dev/video0): SetRecording(0x1029d0b0) 
title(Metalocalypse)
2008-01-07 03:19:49.959 TVRec(1): SetFlags(CancelNextRecording,) -> 
RunMainLoop,CancelNextRecording,AskAllowRecording,NeedToStartRecorder,RingBufferReady,
2008-01-07 03:19:49.959 AutoExpire: CalcParams(): Max required Free Space: 
2.0 GB w/freq: 15 min
VIDIOC_S_CTRL:V4L2_CID_AUDIO_MUTE: Invalid argument
2008-01-07 03:19:50.000 NVR(/dev/video0): v4l2: format set, getting yuv420 
from v4l
2008-01-07 03:19:50.105 TVRec(1): 
SetFlags(RecorderRunning,RingBufferReady,) -> 
RunMainLoop,CancelNextRecording,AskAllowRecording,NeedToStartRecorder,RecorderRunning,RingBufferReady,
2008-01-07 03:19:50.105 TVRec(1): ClearFlags(NeedToStartRecorder,) -> 
RunMainLoop,CancelNextRecording,AskAllowRecording,RecorderRunning,RingBufferReady,
2008-01-07 03:19:51.690 TVRec(1): SetFlags(FrontendReady,) -> 
FrontendReady,RunMainLoop,CancelNextRecording,AskAllowRecording,RecorderRunning,RingBufferReady,
2008-01-07 03:30:00.016 TVRec(1): SwitchLiveTVRingBuffer(discont 0, set_rec 
1)
2008-01-07 03:30:00.016 TVRec(1): GetProgramRingBufferForLiveTV()
2008-01-07 03:30:01.211 TVRec(1): StartedRecording(0x10510710) 
fn(/var/lib/mythtv/1058_20080107033000.nuv)
2008-01-07 03:30:01.238 TVRec(1): FinishedRecording(Metalocalypse) in 
recgroup: LiveTV
2008-01-07 03:30:01.297 Chain: Updated endtime for '1058_20080107031948' to 
20080107033001
2008-01-07 03:30:01.338 Finished recording Metalocalypse "Dethwater": 
channel 1058
2008-01-07 03:30:01.353 Preview: 
'myth://127.0.0.1:6543/1058_20080107031948.nuv' is not local,
                        replacing with 
'/var/lib/mythtv/1058_20080107031948.nuv', which is local.
2008-01-07 03:30:01.382 Chain: Appended at 1 '1058_20080107033000'
2008-01-07 03:30:01.651 TVRec(1): SetFlags(RingBufferReady,) -> 
FrontendReady,RunMainLoop,CancelNextRecording,AskAllowRecording,RecorderRunning,RingBufferReady,
2008-01-07 03:30:01.652 TVRec(1): !has_rec(1) !rec_soon(1) 
curRec(0x10254be8) starttm(2008-01-07T03:19:48)
2008-01-07 03:30:01.652 TVRec(1): Enabling Full LiveTV UI.
2008-01-07 03:30:01.661 AutoExpire: CalcParams(): Max required Free Space: 
2.0 GB w/freq: 15 min
2008-01-07 03:30:01.931 RecBase(/dev/video0): SetRingBuffer(0x1052dbc0) 
'/var/lib/mythtv/1058_20080107033000.nuv'
2008-01-07 03:30:01.931 TVRec(1): RingBufferChanged()
2008-01-07 03:30:01.944 NVR(/dev/video0) Error: Resetting and re-queueing
2008-01-07 03:30:01.960 TVRec(1): FinishedRecording(Metalocalypse) in 
recgroup: LiveTV
2008-01-07 03:30:01.962 Chain: Updated endtime for '1058_20080107031948' to 
20080107033001
2008-01-07 03:30:01.965 Finished recording Metalocalypse "Dethwater": 
channel 1058


and from the frontend:
2008-01-07 03:30:01.737 LiveTVChain(live-tivo-2008-01-07T03:19:48): 
ReloadAll(): Added new recording
2008-01-07 03:30:01.737 Resyncing position map. posmapStarted = 0 livetv(1) 
watchingRec(0)
2008-01-07 03:30:01.772 Position map filled from DB to: 612
2008-01-07 03:30:01.773 SyncPositionMap watchingrecording, from DB: 613 
entries
2008-01-07 03:30:01.773 SyncPositionMap watchingrecording no entries from 
encoder, try DB
2008-01-07 03:30:01.801 Position map filled from DB to: 612
2008-01-07 03:30:01.801 SyncPositionMap watchingrecording total: 613 entries
2008-01-07 03:30:01.801 SyncPositionMap, new totframes: 18360, new length: 
612, posMap size: 613
2008-01-07 03:30:02.353 LiveTVChain(live-tivo-2008-01-07T03:19:48): 
SwitchTo(1)
2008-01-07 03:30:02.354 LiveTVChain(live-tivo-2008-01-07T03:19:48): Entry at 1: 
'1058_20080107033000'
2008-01-07 03:30:02.405 NVP: IsReallyNearEnd() br(0KB) fps(29) sz(79KB) 
vfl(29) frh(4294967295) ne:1
2008-01-07 03:30:02.405 SwitchToProgram(void)
2008-01-07 03:30:02.444 RingBuf(/var/lib/mythtv/1058_20080107031948.nuv): 
OpenFile(/var/lib/mythtv/1058_20080107033000.nuv, 10)
2008-01-07 03:30:02.444 RingBuf(/var/lib/mythtv/1058_20080107033000.nuv): 
CalcReadAheadThresh(223399748 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
2008-01-07 03:30:02.444 RingBuf(/var/lib/mythtv/1058_20080107033000.nuv): 
CalcReadAheadThresh(238971344 KB)
                         -> threshhold(64 KB) min read(0 KB) blk size(32 KB)
2008-01-07 03:30:02.637 Searching for frame header.
2008-01-07 03:30:03.598 NVP: prebuffering pause
2008-01-07 03:30:03.598 NVP: Waiting for prebuffer.. 0 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA
2008-01-07 03:30:03.608 WriteAudio: buffer underrun
2008-01-07 03:30:03.744 NVP: Waiting for prebuffer.. 1 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA
2008-01-07 03:30:03.894 NVP: Waiting for prebuffer.. 2 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA
2008-01-07 03:30:04.043 NVP: Waiting for prebuffer.. 3 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA
2008-01-07 03:30:04.192 NVP: Waiting for prebuffer.. 4 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA
2008-01-07 03:30:04.216 RingBuf(/var/lib/mythtv/1058_20080107033000.nuv): 
Waited 1.0 seconds for data to become available...
2008-01-07 03:30:04.216 Checking to see if there's a new livetv program to 
switch to..
2008-01-07 03:30:04.342 NVP: Waiting for prebuffer.. 5 
AAAAAAAAAAAAAAAAAAAAAAauAAAAAAA



More information about the mythtv-users mailing list