[mythtv-users] backend holding analog device open too long on master?

Brian J. Murrell brian at interlinx.bc.ca
Fri Mar 23 15:54:38 UTC 2012


Running v0.25-beta-201-g8a5977d I got a new (first ever) problem last
night trying to record from an analog MPEG2 encoder (analog tuner of an
HVR-1600):

Mar 22 21:30:02 pvr mythbackend[1757]: I TVRecEvent v4lchannel.cpp:651 (SetInputAndFormat) V4LChannel(/dev/video1): SetInputAndFormat(11, NTSC) (v4l v2) input_switch: 0 mode_switch: 0
Mar 22 21:30:03 pvr mythbackend[1757]: N Scheduler autoexpire.cpp:263 (CalcParams) AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 4 min
Mar 22 21:30:03 pvr mythbackend[1757]: I Scheduler scheduler.cpp:2459 (HandleRecordingStatusChange) Tuning recording: "Parks and Recreation": channel 1040 on cardid 11, sourceid 1
Mar 22 21:30:03 pvr mythbackend[1757]: I TVRecEvent tv_rec.cpp:3953 (TuningNewRecorder) TVRec(11): rec->GetPathname(): '/storage1/1040_20120322213000.mpg'
Mar 22 21:30:03 pvr mythbackend[1757]: I CoreContext scheduler.cpp:634 (UpdateRecStatus) Updating status for "Parks and Recreation" on cardid 11 (Tuning => Recording)
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set Audio Sampling Frequency to 1#012#011#011#011eno: Device or resour
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set Audio Encoding to 1#012#011#011#011eno: Device or resource busy (1
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set Audio L2 Bitrate to 13#012#011#011#011eno: Device or resource busy
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set MPEG Stream type to 0#012#011#011#011eno: Device or resource busy 
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set Video Average Bitrate to 4500000#012#011#011#011eno: Device or res
Mar 22 21:30:03 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:741 (set_ctrls) mpegrecorder.cpp:set_ctrls(): Could not set Video Peak Bitrate to 6000000#012#011#011#011eno: Device or resour
Mar 22 21:30:03 pvr mythbackend[1757]: E DVBRead mpeg/mpegstreamdata.cpp:819 (ProcessPAT) ProcessPAT: Program not found in PAT. Rescan your transports.
Mar 22 21:30:03 pvr mythbackend[1757]: E DVBRead mpeg/mpegstreamdata.cpp:425 (CreatePATSingleProgram) Desired program #307 not found in PAT.#012#011#011#011Cannot create single program PAT.
Mar 22 21:30:05 pvr mythbackend[1757]: W RecThread mpegrecorder.cpp:1358 (StartEncoding) MPEGRec(/dev/video1): StartEncoding failed#012#011#011#011eno: Input/output error (5)
Mar 22 21:30:05 pvr mythbackend[1757]: E RecThread mpegrecorder.cpp:969 (run) MPEGRec(/dev/video1): Failed to start recording
Mar 22 21:30:05 pvr mythbackend[1757]: I RecThread mythdbcon.cpp:75 (MSqlDatabase) Database connection created: DBManager68
Mar 22 21:30:05 pvr mythbackend[1757]: I RecThread mythdbcon.cpp:298 (popConnection) New DB connection, total: 19
Mar 22 21:30:05 pvr mythbackend[1757]: I RecThread mythdbcon.cpp:179 (OpenDatabase) Connected to database 'mythconverg' at host: localhost
Mar 22 21:30:05 pvr mythbackend[1757]: I RecThread mythdbcon.cpp:453 (CloseDatabases) Closing DB connection named 'DBManager68'

As you can see the tuner was busy.  But it was successfully used only
an hour and half prior (i.e. at 8pm) to record a 1hr program.  There is
nothing else running on this machine that would have been using that
tuner so my only conclusion can be that the BE still had it open at
9:30pm when it went to record another program on it.

b.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
Url : http://www.mythtv.org/pipermail/mythtv-users/attachments/20120323/bff4330d/attachment.bin 


More information about the mythtv-users mailing list