Skip to content

[IMPROVEMENT] Add Default X-TIMESTAMP-MAP Header When No Subtitles Are Present #1743

@AbHash-RixE

Description

@AbHash-RixE

CCExtractor version: 0.94

Necessary information

  • Is this a regression (i.e. did it work before)? NO
  • What platform did you use? Linux
  • What were the used arguments? ./ccextractor --timestamp-map --out=webvtt output_clean.ts

Description

Current Behavior: When there are no subtitles in the .ts file, the tool (CCExtractor) produces an empty .webvtt file ,
i.e no X-TIMESTAMP-MAP header is produced . This is expected behavior, as no subtitles are present.

Desired Behavior: To add a default X-TIMESTAMP-MAP header in the .webvtt file even when no subtitles are present,
i.e X-TIMESTAMP-MAP=MPEGTS:0,LOCAL:00:00:00.000.

This would ensure that the .webvtt file is consistently formatted, even when there are no subtitles present, which is necessary for HLS stream compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions