[mythtv-users] 0.19 live-tv problems: how can we help ?

Pshem Kowalczyk pshem.k at gmail.com
Thu Feb 16 21:43:11 UTC 2006


On 16/02/06, Stef Coene <stef.coene at docum.org> wrote:
> Hallo,
>
> I'm not going to restart the "I have problems with live-tv" threads, but I
> have them too ;)  Is there more information the developers need to tackle
> this problem?
> I'm working from home all day and I can switch on live tv and collect some
> data.  But only if someone can do something usefull with it.
>
> I have a backend with a pvr500 that worked fine with 0.18.  Even live-tv was
> fast enough to be accepted by my wife (1 second to change channel).

I guess, all we can do is collect as much information as possible:
1. Problems that we have with the new version we didn't have previously
2. Type of input (analog card, hardware encoder, dvb, external box)
3. Setup details (cpu, ram, disks - local or nfs, frontend/backend ?)
4. What is in the log file when the backend runs with the highest
debug level ('all')?

In my case:
1. LiveTV takes really long to start (8-10sec), channel changes are
also very slow (around 8 sec). LiveTV freezes during the buffer
changes. Channel change occures in a few stages:
- audio goes off
- video freezes
- osd shows for the new channel
- audio and video unfreezes (still the old channel)
- channel changes
When I exit liveTV frontend crashes with seg fault, backend dies too.
2. Input - pvr150, just a bunch of terrestial channels
3. CPU - duron 1.4GHz, 512MB ram,  local scsi disks, frontend/backend
on a single machine
4. This is what I see in the log file during buffer changes:
2006-02-15 18:24:39.024 TVRec(1): SwitchLiveTVRingBuffer(discont 1, set_rec 1)
2006-02-15 18:24:39.057 TVRec(1): GetProgramRingBufferForLiveTV()
2006-02-15 18:24:39.664 TVRec(1): StartedRecording(0x81798f0)
fn(/data1/myth/1002_20060215182439.mpg)
2006-02-15 18:24:39.839 TVRec(1): FinishedRecording(Gilmore Girls) in
recgroup: LiveTV
2006-02-15 18:24:39.906 Chain: Updated endtime for
'1003_20060215182422' to 20060215182439
2006-02-15 18:24:40.206 Finished recording Gilmore Girls: channel 1003
2006-02-15 18:24:40.239 Preview:
'myth://10.1.1.4:6543/1003_20060215182422.mpg' is not local,
                        replacing with
'/data1/myth/1003_20060215182422.mpg', which is local.
2006-02-15 18:24:40.438 Chain: Appended at 2 '1002_20060215182439'
2006-02-15 18:24:40.372 RingBuf(/data1/myth/1003_20060215182422.mpg):
OpenFile(/data1/myth/1003_20060215182422.mpg, 0)
[mpeg @ 0xb7700360]Parser not found for Codec Id: 94210 !
0: start_time: 3208.530 duration: 1.105
1: start_time: 18.148 duration: 1.454
2: start_time: 18.106 duration: 1.467
stream: start_time: 201.180 duration: 35461.432 bitrate=2 kb/s
2006-02-15 18:24:41.029 AFD: Stream #0, has id 0x105 codec id
MPEG2VBI, type Data at 0x0x818dc90
2006-02-15 18:24:41.063 RecBase(/dev/v4l/video0):
SetRingBuffer(0x818c7d0) '/data1/myth/1002_20060215182439.mpg'
2006-02-15 18:24:41.087 AFD: data codec (Data)
2006-02-15 18:24:41.112 TVRec(1): RingBufferChanged()
2006-02-15 18:24:41.137 AFD: Stream #1, has id 0x480 codec id
MPEG2VIDEO, type Video at 0x0x8169370
2006-02-15 18:24:41.196 detectInterlace(Detect Scan, Detect Scan, 25,
480) ->Interlaced Scan
2006-02-15 18:24:41.262 Interlaced: Interlaced Scan  video_height: 480  fps: 25
2006-02-15 18:24:41.287 TVRec(1): FinishedRecording(Gilmore Girls) in
recgroup: LiveTV
2006-02-15 18:24:41.312 AFD: Looking for decoder for MPEG2VIDEO
2006-02-15 18:24:41.366 AFD: Opened codec 0x81670d0, id(MPEG2VIDEO) type(Video)
2006-02-15 18:24:41.395 Chain: Updated endtime for
'1003_20060215182422' to 20060215182441
2006-02-15 18:24:41.429 AFD: Stream #2, has id 0x448 codec id MP2,
type Audio at 0x0x819ca30
2006-02-15 18:24:41.487 AFD: Looking for decoder for MP2
2006-02-15 18:24:41.520 Finished recording Gilmore Girls: channel 1003
2006-02-15 18:24:41.553 AFD: Opened codec 0x818f780, id(MP2) type(Audio)
2006-02-15 18:24:41.606 AFD: Audio Track #1 is A/V stream #2 and has 2
channels in the Unknown language(0).
2006-02-15 18:24:41.662 RingBuf(/data1/myth/1003_20060215182422.mpg):
CalcReadAheadThresh(6384 KB)
                         -> threshhold(233 KB) min read(32 KB) blk size(128 KB)
2006-02-15 18:24:41.688 TVRec(1): SetFlags(RingBufferReset,) ->
FrontendReady,RunMainLoop,CancelNextRecording,AskAllowRecording,NeedToStartRecor
der,RecorderRunning,RingBufferReset,
2006-02-15 18:24:41.712 AFD: Selected track 1: Unknown MP2 2ch (A/V Stream #2)
2006-02-15 18:24:41.761 AFD: Initializing audio parms from audio track #1
2006-02-15 18:24:41.789 TVRec(1): ClearFlags(NeedToStartRecorder,) ->
FrontendReady,RunMainLoop,CancelNextRecording,AskAllowRecording,RecorderRu
nning,RingBufferReset,
2006-02-15 18:24:41.811 AFD: Audio format changed
                        from id(NONE)    -1Hz -1ch   0bps    ;
id(NONE)    -1Hz -1ch   0bps
                        to   id( MP2) 48000Hz  2ch  16bps    ; id(
MP2) 48000Hz  2ch  16bps
2006-02-15 18:24:41.895 Resyncing position map. posmapStarted = 0
livetv(0) watchingRec(0)
2006-02-15 18:24:41.990 TVRec(1): SetChannel() -- end

When the frontend dies - on the console I see the same message:
[mpeg @ 0xb7700360]Parser not found for Codec Id: 94210 !

When the frontend segfaults in the log file of the backend I see:

2006-02-15 18:26:23.049 TVRec(1): Changing from WatchingLiveTV to None
2006-02-15 18:26:23.097 TVRec(1):
ClearFlags(FrontendReady,CancelNextRecording,) ->
RunMainLoop,AskAllowRecording,RecorderRunning,RingBufferRese
t,
2006-02-15 18:26:23.162 TVRec(1): SetFlags(AskAllowRecording,) ->
RunMainLoop,AskAllowRecording,RecorderRunning,RingBufferReset,
2006-02-15 18:26:23.274 TVRec(1): Request: Program(no) channel()
input() flags(KillRec,KillRingBuffer,)
2006-02-15 18:26:24.136 TVRec(1): ClearFlags(RecorderRunning,) ->
RunMainLoop,AskAllowRecording,RingBufferReset,
2006-02-15 18:26:24.252 TVRec(1): FinishedRecording(One News) in
recgroup: LiveTV
2006-02-15 18:26:24.318 Chain: Updated endtime for
'1002_20060215182439' to 20060215182624
2006-02-15 18:26:24.627 Finished recording One News: channel 1002
2006-02-15 18:26:24.695 TVRec(1): ClearFlags(RecorderRunning,) ->
RunMainLoop,AskAllowRecording,RingBufferReset,
2006-02-15 18:26:24.726 TVRec(1): Tearing down RingBuffer
2006-02-15 18:26:24.761 TVRec(1): ClearFlags(PENDINGACTIONS,) ->
RunMainLoop,AskAllowRecording,RingBufferReset,
Unable to write to client socket, as it's no longer there


regards
pshemko


More information about the mythtv-users mailing list