Opened 12 years ago

Closed 12 years ago

#11618 closed Developer Task (Fixed)

Support playback of externally-produced .srt caption files for in-progress recordings

Reported by: Jim Stichnoth Owned by: Jim Stichnoth
Priority: minor Milestone: 0.27
Component: MythTV - Captions Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description

This is to provide better support for the third-party scripts described in http://www.mythtv.org/wiki/Captions_with_HD-PVR. These scripts allow an analog tuner to capture VBI closed captions via ccextractor while capturing HD video via the HD-PVR.

Change History (11)

comment:1 by Jim Stichnoth, 12 years ago

8491c5e1a51a1c1d8c24e9e7c3810e0bb7890797 adds a more precise system event, REC_STARTED_WRITING, which is dispatched when data starts being captured to disk. Note that REC_STARTED is dispatched before the lengthy tuning / channel changing process.

comment:2 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In c691ddf536856416a7f94ed8695aa24b622efc23/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:3 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In feb2e0fae2dc7e163cffd004da92d7654765fa1f/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:4 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In ba75244a7f7e412bdb100b7741eaa6a6f0e6649b/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:5 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In 79ac9afc0a75ab95094382902c790b8be8c8a69f/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

in reply to:  3 comment:6 by Jim Stichnoth, 12 years ago

Replying to Jim Stichnoth <jstichnoth@…>:

2. Currently the REC_STARTED_WRITING event is not sent when the HD-PVR
switches to a new program during live TV, so the third-party script
ends up not generating .srt files for subsequent programs in a live TV
session.

This is incorrect, the REC_STARTED_WRITING event was in fact being sent in all cases, but sometimes with cardid=0, leading to the external script ignoring the event. Fixed in 79ac9afc0a75ab95094382902c790b8be8c8a69f.

comment:7 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In 66f80e0bb35613b3d1510d060c0814f61499422a/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

in reply to:  3 comment:8 by Jim Stichnoth, 12 years ago

Replying to Jim Stichnoth <jstichnoth@…>:

3. ccextractor buffers its output, so one needs to be at least 30
seconds behind real-time to get .srt captions.  A better solution
would be to add the required functionality to mythccextractor.

The main issue here is actually ccextractor's buffering of input. FILEBUFFERSIZE is defined to be 16MB which, at the script's suggested bitrate of 4.5Mb/s, takes around 30s to fill. Changing FILEBUFFERSIZE to something smaller, like 1MB, makes it much more practical for Live TV and in-progress recordings.

comment:9 by Jim Stichnoth <jstichnoth@…>, 12 years ago

In 3f377abe6a50d41a8572923e9be5711c3880ff2a/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available

comment:10 by Jim Stichnoth, 12 years ago

Owner: set to Jim Stichnoth
Status: newaccepted

comment:11 by Jim Stichnoth, 12 years ago

Resolution: Fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.