ionorg / ion-sdk-go

ion sdk for golang
MIT License
55 stars 46 forks source link

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

Open ckdo8008 opened 2 years ago

ckdo8008 commented 2 years ago

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