Skip to content

Decode Frame at specific timestamp - How on earth do I seek? #29

@teoAlivanoglou

Description

@teoAlivanoglou

How do I seek? Such a simple question, no comprehensive answers at all.

EDIT: Ignore everything below, Demuxer implicitly casts itself to AVFormatContext*.

I need to decode frames at specific timestamps. This is normally done with av_seek_frame. However this wrapper hasn't implemented it.

I tried using the function directly from FFmpeg.Autogen but it requires AVFormatContext* as an input and the Demuxer.Ref is of type AVFormatContext.

My first thought was doing ffmpeg.av_seek_frame(&(demuxer.Ref), ...)
But of course, Cannot take the address of the given expression

Then I tried fixed (AVFormatContext* fmt_ctx = &demuxer.Ref)
Same error.

I will be honest, I don't really understand fixed statements, why they are even needed or how C# works with pointers and I would really appreciate some help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions