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

The GST_BUFFER_DURATION function returns GST_CLOCK_TIME_NONE(-1) if the duration is unknown. #68

Open
ckdo8008 opened this issue Mar 3, 2022 · 0 comments

Comments

@ckdo8008
Copy link

ckdo8008 commented Mar 3, 2022

Summary

The GST_BUFFER_DURATION function returns GST_CLOCK_TIME_NONE(-1) if the duration is unknown.
If you test "Gstreamer send" as custom during the example, it will respond "GST_CLOCK_TIME_NONE" for the "GST_BUFFER_DURATION" function.

example)
nvarguscamerasrc sensor_id=0 ! video/x-raw(memory:NVMM),width=1640,height=1232,framerate=30/1 ! queue

Motivation

I hope there is no one like me who can't find the cause.

Describe alternatives you've considered

When using a fixed source, ignore the duration argument in the goHandlePipelineBuffer function in "gst.go" and use a fixed value.

example)
....
duration = 33333333 // 30fps
if ok { .....

Additional context

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