umlaeute / Gem

Graphics Environment for Multimedia (official repository)
https://gem.iem.at
Other
103 stars 30 forks source link

[pix_film_buffer] as [pix_film] alternative #417

Open 60-hz opened 8 months ago

60-hz commented 8 months ago

[pix_buffer_filmopen] is very handy when real time video decoding eat all cpu with [pix_film], for whatever codecs issues.

But right now, there is no way to use it other than with fixed buffer size, since the informations of the loaded media is sent after filling the buffer. So this logic doesn't work:

Capture d’écran 2024-03-07 à 18 49 42

As a simple alternative for movie with buffer, here is an example abstraction with help file called [pix_film_buffer] which resize it's own buffer, and use the same outlets logic like [pix_film]. This could be added in parallel of [pix_film].

pix_film_buffer.zip

Could be improved but works nicely for now under MacOS.

umlaeute commented 8 months ago

i haven't checked your abstraction, but i was actually thinking about adding film-loading support directly to [pix_buffer]