Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding frames at a variable frame rate #126

Open
Miticoval opened this issue Nov 15, 2022 · 0 comments
Open

Adding frames at a variable frame rate #126

Miticoval opened this issue Nov 15, 2022 · 0 comments

Comments

@Miticoval
Copy link

Miticoval commented Nov 15, 2022

Hi!

I'm creating a video frame by frame, so far so good.
But I'm trying to add frames not all at once, but time by time as soon as I receive them from the camera.
However these frames arrive at a variable rate, so I'm trying to add the new frames using:

_mediaBuilder.Video.AddFrame(bitmapData, _totalTimeElapsed);

That kinda works, but when I playback the video it plays really really slow.

First question: is there a way to declare that the video is going to use a variable framerate?
Second question: is it correct to set the parameter "duration" for every frame as the total time elapsed from the beginning of the recording?

Thank you very much!

@Miticoval Miticoval changed the title Add frames at variable frame rate Adding frames at variable frame rate Nov 15, 2022
@Miticoval Miticoval changed the title Adding frames at variable frame rate Adding frames at a variable frame rate Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant