~eliasnaur/gio

1

video decode and playback with gio

Details
Message ID
<CAN_L7j2-bbGe8BnMT-kgdRZhrr9j+8GPaOcMBqoqPhF91r2=+w@mail.gmail.com>
DKIM signature
missing
Download raw message
https://github.com/zergon321/reisen/blob/master/examples/player/main.go
is a good example of what is needed also.

The video and audio is decoded and then but on to the buffer and
played with Editen. GIo can also be used i think.

cheers
Details
Message ID
<CAFcc3FQoTyUAoOxsrXvO45JwEL9f8t_gRY8XFv6wL_S2X6EKew@mail.gmail.com>
In-Reply-To
<CAN_L7j2-bbGe8BnMT-kgdRZhrr9j+8GPaOcMBqoqPhF91r2=+w@mail.gmail.com> (view parent)
DKIM signature
missing
Download raw message
On Sat, Oct 28, 2023 at 3:15 AM Ged Wed <gedw99@gmail.com> wrote:
>
> https://github.com/zergon321/reisen/blob/master/examples/player/main.go
> is a good example of what is needed also.
>
> The video and audio is decoded and then but on to the buffer and
> played with Editen. GIo can also be used i think.

Yes, Gio can be used in this way, but this is the inefficient strategy
that copies the frame image data multiple times. The optimal approach
is to decode the video frame straight into GPU memory and then
reference that texture from Gio, but we lack the necessary ops. The
best we can do right now is a custom renderer window that shares a GL
context between Gio and the video decoder.

Cheers,
Chris
Reply to thread Export thread (mbox)