[mediacapture-transform] First timestamp generated by mediastream fails (#111)

tiuvi has just created a new issue for https://github.com/w3c/mediacapture-transform:

== First timestamp generated by mediastream fails ==


I have seen several problems about this, some from two years ago, what would be the steps to follow to use MediaStreamTrackProcessor with getusermedia.
Since the first timestamp is wrong and also does not return duration.
Sometimes it has given me a longer duration. I don't know if this depends on some factor that I don't know about.
Having a frame duration I can now calculate the timestamp and square it with the audio.

![image](https://github.com/w3c/mediacapture-transform/assets/69035383/876c6a55-3711-4337-a6b4-7ca8dc0e7d27)

This runs on my PC, it may be down, try the next day.
Demo: https://tiuvi.com/videoEditorWebCodecs

Currently I run getUserMedia recording, I encode them directly from the frames, another way is to save the audiodata in an array and the frames on disk, and another way is to save both audiodata and frames on disk, then I recreate the audiodata and videoframe objects again.

For this I need to have coherent times. Do you have a solution?

Please view or discuss this issue at https://github.com/w3c/mediacapture-transform/issues/111 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 10 July 2024 08:09:32 UTC