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

Customize segments #24

Open
IacoSimoncini opened this issue Apr 8, 2022 · 3 comments
Open

Customize segments #24

IacoSimoncini opened this issue Apr 8, 2022 · 3 comments

Comments

@IacoSimoncini
Copy link

is it possible to have segments that have a fixed time duration?

@djvergad
Copy link
Owner

@IacoSimoncini This is behaviour that is used. All segments have a fixed duration.

@IacoSimoncini
Copy link
Author

@djvergad I thought that every segment has a fixed length of 100 frames. So that the length was fixed in dimension, not in time. In the end can you tell me where the time duration of the segment is set in the library? Thanks for your answer.

@djvergad
Copy link
Owner

@IacoSimoncini It is defined in

#define MPEG_TIME_BETWEEN_FRAMES 20 // Miliseconds or 50 fps

There are 100 frames per segment, and time between consecutive frames is 20 ms (50fps). The bitrate is adapted by changing the size in bytes of the frames. The time between frames is constant.

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

2 participants