The GST_BUFFER_DURATION function returns GST_CLOCK_TIME_NONE(-1) if the duration is unknown.
ckdo8008 opened this issue · comments
ckdo8008 commented
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 { .....