[mythtv-commits] Ticket #10765: HD-PVR: Rework SignalMonitor to avoid reading from device

MythTV noreply at mythtv.org
Tue Jun 5 14:36:43 UTC 2012


#10765: HD-PVR: Rework SignalMonitor to avoid reading from device
------------------------------+------------------------
 Reporter:  jpoet             |          Owner:  jpoet
     Type:  Patch - Bug Fix   |         Status:  closed
 Priority:  minor             |      Milestone:  0.25.1
Component:  MythTV - General  |        Version:  0.25
 Severity:  medium            |     Resolution:  fixed
 Keywords:  HDPVR LiveTV      |  Ticket locked:  0
------------------------------+------------------------

Comment (by Steven Adeff <adeffs.mythtv@…>):

 here's the log from one such "recording" that never actually takes place:


 {{{
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I Scheduler tv_rec.cpp:407
 (StartRecording) TVRec(5): StartRecording("The Killing":Bulldog)
 Jun  4 19:59:59 MythCenter mythbackend[17394]: N Scheduler
 autoexpire.cpp:263 (CalcParams) AutoExpire: CalcParams(): Max required
 Free Space: 4.0 GB w/freq: 15 min
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I Scheduler
 scheduler.cpp:2459 (HandleRecordingStatusChange) Started recording: "The
 Killing":Bulldog: channel 1479 on cardid 5, sourceid 1
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I ProcessRequest
 tv_rec.cpp:2763 (StopLiveTV) TVRec(5): StopLiveTV(void) curRec:
 0xffffffffa1f129f8 pseudoRec: 0xffffffffa2257948
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:1014 (HandleStateChange) TVRec(5): Changing from WatchingLiveTV
 to None
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(5):
 ClearFlags(FrontendReady,CancelNextRecording,) ->
 RunMainLoop,RecorderRunning,RingBufferReady,
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:3370 (HandleTuning) TVRec(5): HandleTuning Request:
 Program(NULL) channel() input() flags(KillRec,KillRingBuffer,)
 Jun  4 19:59:59 MythCenter mythbackend[17394]: I TVRecEvent
 mpegrecorder.cpp:1332 (StopEncoding) MPEGRec(/dev/hdpvr1): StopEncoding
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 mpegrecorder.cpp:1348 (StopEncoding) MPEGRec(/dev/hdpvr1): Encoding
 stopped
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 DeviceReadBuffer.cpp:171 (Stop) DevRdB(/dev/hdpvr1): Stop() -- begin
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 DeviceReadBuffer.cpp:180 (Stop) DevRdB(/dev/hdpvr1): Stop() -- end
 Jun  4 20:00:01 MythCenter mythbackend[17394]: E RecThread
 mpegrecorder.cpp:1017 (run) MPEGRec(/dev/hdpvr1): Device EOF detected
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I RecThread
 mpegrecorder.cpp:1113 (run) MPEGRec(/dev/hdpvr1): run finishing up
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I RecThread
 mpegrecorder.cpp:1332 (StopEncoding) MPEGRec(/dev/hdpvr1): StopEncoding
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(5): ClearFlags(RecorderRunning,) ->
 RunMainLoop,RingBufferReady,
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 mpegrecorder.cpp:1332 (StopEncoding) MPEGRec(/dev/hdpvr1): StopEncoding
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 recorderbase.cpp:89 (SetRecording) RecBase(5:/dev/hdpvr1):
 SetRecording(0x0)
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent tv_rec.cpp:812
 (FinishedRecording) TVRec(5): FinishedRecording(1446_2012-06-04T19:34:46)
 damaged recq:<RecordingQuality overall_score="0"
 key="1446_2012-06-04T19:34:46" countinuity_error_count="0"
 packet_count="8358164">#012    <Gap start="2012-06-04T19:00:00"
 end="2012-06-04T19:34:47" duration="2087" />#012</RecordingQuality>
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent tv_rec.cpp:862
 (FinishedRecording) TVRec(5):
 FinishedRecording(1446_2012-06-04T19:34:46)#012#011#011#011title: The Last
 Word With Lawrence O'Donnell#012#011#011#011in recgroup: LiveTV status:
 Recorder Failed:Recorder Failed not_dummy finished_now
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 livetvchain.cpp:130 (FinishedRecording) Chain: Updated endtime for
 '1446_20120604193446' to 20120604200001
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 programinfo.cpp:3806 (SaveVideoProperties) SaveVideoProperties(0x38, 0x20)
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(5): ClearFlags(RecorderRunning,) ->
 RunMainLoop,RingBufferReady,
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:3548 (TuningShutdowns) TVRec(5): Tearing down RingBuffer
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(5): ClearFlags(PENDINGACTIONS,) ->
 RunMainLoop,RingBufferReady,
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I ProcessRequest
 mainserver.cpp:1360 (HandleAnnounce) MainServer::ANN Playback
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I ProcessRequest
 mainserver.cpp:1362 (HandleAnnounce) adding: blackie as a client (events:
 0)
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:1014 (HandleStateChange) TVRec(6): Changing from None to
 WatchingLiveTV
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(6):
 ClearFlags(FrontendReady,CancelNextRecording,) -> RunMainLoop,
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:3370 (HandleTuning) TVRec(6): HandleTuning Request:
 Program(NULL) channel() input() flags(LiveTV,)
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:3459 (TuningCheckForHWChange) TVRec(6): HW Tuner: 6->6
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4158 (ClearFlags) TVRec(6): ClearFlags(PENDINGACTIONS,) ->
 RunMainLoop,
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:3392 (HandleTuning) TVRec(6): No recorder yet, calling
 TuningFrequency
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 v4lchannel.cpp:661 (SetInputAndFormat) V4LChannel(/dev/hdpvr2):
 SetInputAndFormat(2, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4363 (CreateLiveTVRingBuffer) TVRec(6):
 CreateLiveTVRingBuffer(479)
 Jun  4 20:00:01 MythCenter mythbackend[17394]: I TVRecEvent
 tv_rec.cpp:4269 (GetProgramRingBufferForLiveTV) TVRec(6):
 GetProgramRingBufferForLiveTV()
 Jun  4 20:00:01 MythCenter mythbackend[17394]: N CoreContext
 autoexpire.cpp:263 (CalcParams) AutoExpire: CalcParams(): Max required
 Free Space: 4.0 GB w/freq: 15 min
 Jun  4 20:00:02 MythCenter mythbackend[17394]: I TVRecEvent tv_rec.cpp:782
 (StartedRecording) TVRec(6): StartedRecording(1479_2012-06-04T20:00:01)
 fn(/media/mythtv/3/tv/1479_20120604200001.mpg)
 Jun  4 20:00:02 MythCenter mythbackend[17394]: I TVRecEvent
 livetvchain.cpp:106 (AppendNewProgram) Chain: Appended at 6
 '1479_20120604200001'


 }}}

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/10765#comment:8>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list