Gem icon indicating copy to clipboard operation
Gem copied to clipboard

[pix_film_buffer] as [pix_film] alternative

Open 60-hz opened this issue 11 months ago • 1 comments

[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.

60-hz avatar Mar 07 '24 18:03 60-hz

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

umlaeute avatar Mar 08 '24 07:03 umlaeute