Opened 2 weeks ago

Last modified 2 weeks ago

#10992 new enhancement

Option for forcing the inclusion of the hour field in WebVTT timestamps

Reported by: ejm Owned by:
Priority: normal Component: avformat
Version: Keywords: webvtt
Cc: ejm Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by ejm)

While the WebVTT spec denotes that the hour field is optional on timestamps whose duration is less than one hour, it would be helpful to be able to forcibly include the field, even if the value is 00, with an option.

Currently, this field is set in webvtt_write_time by checking if hour > 0.

The usecase here is with a third-party tool that expects the hour field regardless of its content, despite the spec, so I understand if that is too niche to justify inclusion.

Thank you!

Change History (1)

comment:1 by ejm, 2 weeks ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.