Skip to content

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

@ckdo8008

Description

@ckdo8008

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions