Opened 11 years ago
Closed 11 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 Changed 11 years ago by
comment:6 Changed 11 years ago by
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:8 Changed 11 years ago by
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:10 Changed 11 years ago by
Owner: | set to Jim Stichnoth |
---|---|
Status: | new → accepted |
comment:11 Changed 11 years ago by
Resolution: | → Fixed |
---|---|
Status: | accepted → closed |
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.