Translate muted chunks into HH:MM:SS

Hello.
There is an example of JSON-file for video with muted audio chunks:

  "muted_segments": [
    {
      "duration": 363,
      "offset": 0
    }]

To translate this into HH:MM:SS format, i need to use the following function:

//Delphi code

start_timecode := FormatFloat (‘hh:mm:ss’, (offset + duration) / (3600 * 24));
end_timecode := FormatFloat (‘hh:mm:ss’, (offset + duration + < chunk length >) / (3600 * 24));

but how can I get the chunk’s length without downloading the video’s playlist?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.