[mythtv-users] External Recorder, PID Cache is Empty

John P Poet jppoet at gmail.com
Thu Jul 21 17:13:33 UTC 2016


On Thu, Jul 21, 2016 at 10:49 AM Marc Rawji <mrawji at gmail.com> wrote:

>
> On Tue, Jul 19, 2016 at 4:06 PM, John P Poet <jppoet at gmail.com> wrote:
>
>> On Mon, Jul 18, 2016 at 11:37 PM Marc Rawji <mrawji at gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I am trying to setup en External Recorder. I wrote my own but ran into
>>> trouble, so I tried using the "mythfilerecorder".
>>>
>>> In both cases, I get an error about the PID cache being empty
>>>
>>> 2016-07-18 22:11:29.140402 E  DTVChan[1](/usr/bin/mythfilerecorder
>>> --infile /home/xxx/recorder/out.ts): SetChannelByString(1): PID cache is
>>> empty
>>> 2016-07-18 22:11:29.140416 E  TVRec[1]: Failed to set channel to 1.
>>> Reverting to kState_None
>>> 2016-07-18 22:11:29.140454 I  TVRec[1]: Changing from WatchingLiveTV to
>>> None
>>>
>>> my out.ts is an mpegts file, according to mythffprobe.
>>>
>>> Input #0, mpegts, from 'out.ts':
>>>   Duration: 00:12:00.78, start: 1.400000, bitrate: 4347 kb/s
>>>     Stream #0:0[0x100]: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1
>>> DAR 16:9], 59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
>>>     Stream #0:1[0x101]: Audio: aac (LC), 48000 Hz, stereo, fltp, 125 kb/s
>>>
>>>
>>> Channel "1" is mapped to a "No Grabber" source.
>>>
>>> I am on ubuntu, running the latest from the PPA,
>>> so 2:0.28.0+fixes.20160714.04650e0-0ubuntu0mythbuntu2
>>>
>>> I poked at the code a little, but I am not sure I understand what the
>>> PID cache is for... I think it fails to start because of this line:
>>>
>>> https://github.com/MythTV/mythtv/blob/4d24d54ef43164f1325fcbe914450b7dea37e28f/mythtv/libs/libmythtv/recorders/dtvchannel.cpp#L343
>>>
>>> I'd appreciate any guidance.
>>>
>>> Thank you in advance for your help!
>>>
>>>
>> Hi Marc,
>>
>> Did you try scanning for channels on that source?  The External Recorder
>> only works with Transport Stream data (currently) and the process of
>> scanning for the channels in the TS should get it configured to record.
>>
>> John
>>
>>
>
> Thanks John. I think that fixed it. Now, I just have to get the flow
control
> working. :)
>
> Is the purpose of the "scan for channels" command to basically get the
> transport stream and identify the elementary streams within it?

Yes.  For each program in the TS, it will add the information to Myth's
channel table.

> My recorder has ~50 channels, each channel will create it's own MPEG-TS.
> Do I have to use different elementary stream numbers if each channel has
> it's own TS?

That depends on if you are trying to use the same 'source' for all 50
channels.  If you use separate sources, then they can coexist with the same
channel number.  However, the result may be difficult to navigate at the UI
level.  If all 50 channels are defined as being part of the same source,
then they would need different channel numbers.

You can override what channel number is used (detected), but myth will
still need a way to uniquely identify and tune each channel.

BTW, Please follow list etiquette and bottom post.


John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160721/a22ddc2a/attachment.html>


More information about the mythtv-users mailing list