Your screen. Your subscription. Your ProMax. Start with a one-day trial ↗

Pro Max 4K OTT

Converting WebCodecs timestamps from microseconds

WebCodecs encoded chunks and VideoFrame objects use microseconds for their presentation timestamps.

Windows player questions. Identify a Windows player from its publisher before arranging service-account access. Pro Max 4K OTT, promax4k.tv.
Windows player questions. Identify a Windows player from its publisher before arranging service-account access. Pro Max 4K OTT, promax4k.tv.

WebCodecs encoded chunks and VideoFrame objects use microseconds for their presentation timestamps. The HTML media timeline uses seconds. When a custom web player crosses those APIs, the unit conversion must be explicit. A correct numeric timestamp in one API can be wildly wrong when copied directly into another without its unit.

Calculate one conversion

A frame timestamp of 2,500,000 microseconds represents 2.5 seconds. Divide microseconds by 1,000,000 to express seconds, or multiply seconds by 1,000,000 for the reverse conversion. The number is a presentation timestamp; it is not automatically Unix time or a programme-guide date. Its reference point comes from the media timeline and the application's mapping.

Keep duration and frame rate separate

A duration of 40,000 microseconds is 0.04 seconds. In a simplified constant-duration example, that corresponds to 25 such frame intervals per second. Do not infer the entire programme's frame rate from one frame duration, because timestamps and durations can vary. The arithmetic is useful for checking a diagnostic value, rather than certifying that every part of the source has a fixed cadence.

Look for a scale error

Suppose an overlay tied to the video should appear at 2.5 seconds but the renderer schedules it using 2,500,000 seconds. That failure is several orders of magnitude larger than a small audio offset. A consistent factor of one million suggests a unit boundary to inspect. This is an illustrative implementation diagnosis, not proof of the cause of any particular subtitle or synchronization issue.

Preserve units in the report

A developer should log a timestamp with its unit and object type, then record any origin offset applied during conversion. A viewer can note the visible playback time and whether the error is immediate or grows during the programme. Do not ask them to type converted values into an unrelated subtitle-delay setting. Correct unit mapping belongs in the player integration, while ordinary user synchronization controls address the narrower adjustment their documentation actually describes.

Sources & further reading

From the ProMax collection

A few details make setup easier.

Your device model, operating system and player edition. Keep those three details ready when you contact us.

Pro Max television interface with device, network and player preparation prompts for setup support.
Your device model, operating system and player edition. Keep those three details ready when you contact us.

An evening worth making time for

Get the player ready.
We’ll help with the rest.

Install the player for your screen, then WhatsApp the ProMax team for a one-day free trial. Already watching? Open the help desk for your next step.

Ask ProMax↑