[mythtv-users] Captions with HD-PVR help
Larry Kennedy
lunchtimelarry at gmail.com
Sat Jan 30 19:51:34 UTC 2016
Mike,
Thanks for posting your progress on getting ccextractor to work. I'm going
to try this with my HD-PVR and a spare PVR-150. I have one quick question
after reading the Neufeld wiki
<https://www.mythtv.org/wiki/Captions_with_HD-PVR>:
Do I need to add the PVR-150 to mythtv as a tuner?
These two statements on the wiki that seems to imply that the PVR-150 is
available as a mythtv tuner:
*Also in mythtv-setup, under "Input Connections", on the second page for
the HD-PVR, create a new recording group for the HD-PVR, and add the
VBI-decoding hardware to that recording group. That ensures that the
backend will not try to schedule a recording on your VBI-decoding hardware
while you're using it to extract captions for the HD-PVR. Note that the
backend must be restarted for this recording group change to be noticed by
the scheduler.*
and
*The input number of the composite input on the VBI-extracting hardware. In
my case, that's '2'.*
Of course, I would never want mythtv to use the PVR-150 as an actual tuner
for content. The comment above implies that the "VBI-decoding hardware"
could be used at other times, but the script prevents use while the
hardware is actively extracting captions...
Thanks,
Larry
On Thu, Nov 27, 2014 at 1:09 PM, Mike Rice <mikerice1969 at gmail.com> wrote:
> I added my scripts to the wiki:
> https://www.mythtv.org/wiki/Captions_with_HD-PVR_alternate
>
> These are working nicely with 2 HD-PVRs and 1 PVR-500 using zvbi2raw.
>
> On Sun, Nov 16, 2014 at 10:24 AM, Mike Rice <mikerice1969 at gmail.com>
> wrote:
>
>> On Tue, Nov 11, 2014 at 8:16 PM, Bob <mythtv at cox.net> wrote:
>>
>>> On 11/11/2014 06:03 PM, Mike Rice wrote:
>>>
>>>>
>>>> I think I may try to start the vbi recording from a rec started writing
>>>> event instead of a rec started event. That may get me closer to what I
>>>> need, and then ccextractor might add my delay better (or I'll use a perl
>>>> script).
>>>>
>>> Let me know how well this works. I have a variable amount of delay in my
>>> captions. If I do a single recording the delay is around 30 seconds. If I
>>> have back-to-back recordings the delay is almost zero. I usually have to
>>> use a script to get the captions within 5 seconds, then I can use the
>>> frontend menu to fine tune.
>>
>>
>> Looks like I am having pretty good success now. Most of my recordings
>> seem to be fairly in sync with the captions within a second or so (which
>> can be easily adjusted in the frontend). Here's what I did:
>>
>> 1. Run the hd-captions-start script when REC_STARTED_WRITING event is
>> triggered instead of REC_STARTED. For me there was a minimum pf 8 second
>> delay between those two events. Maybe more if the system was busy.
>>
>> 2. Removed all code that tried to determine the recording duration and
>> adjust based on it. Instead I just went with the idea of recorder
>> on/captions on and recorder off/captions off.
>>
>> 3. In hd-captions-start just start recording the captions as soon as
>> possible. I left the code to kill vbi2raw in but it has never fired for me
>> according to my logs. Not sure I follow why that's needed. I am assuming
>> the REC_FINISHED event occurs when the tuner stops recording no matter what
>> postroll/end late/early options you use. If that's true then vbi2raw is
>> almost certainly killed before the REC_STARTED_WRITING event occurs for the
>> next recording, especially in my case where I have around 8 seconds between
>> REC_STARTED and REC_STARTED_WRITING. I will probably try to remove it to
>> improve the timing a bit more.
>>
>> 4. In hd-captions-finalize (called at REC_FINISHED) I just kill the
>> vbi2raw that was started in hd-captions-start then run ccextractor -in=raw
>> -delay X and copy the resulting .srt file to the recording directory. I
>> also copy the .raw file to the recording directory along with a script that
>> I can easily run to adjust the delay if I find out later it is off.
>>
>> 5. Created a script to run on REC_DELETED to remove the .srt file, .raw
>> file, and script.
>>
>> Still need clean up my scripts a bit but it looks good.
>>
>>
>>
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20160130/e92471be/attachment.html>
More information about the mythtv-users
mailing list