Play video?

15 views
Skip to first unread message

Andres Orellana

unread,
Nov 26, 2013, 4:18:05 PM11/26/13
to lispb...@googlegroups.com
Is it possible to play a video using lispbuilder?

Elliott Slaughter

unread,
Nov 27, 2013, 3:36:11 PM11/27/13
to lispb...@googlegroups.com
Unfortunately no, this is not a feature of SDL (and therefore not a feature of Lispbuilder).

If you want to do this anyway, this is how I would do it. There are basically two steps:

1. Decode the video file into a series of frames (images). This step is hard because popular codecs are typically large, proprietary binary blobs that are not especially amenable to integrating into Lisp. Maybe this would be easier with open source codecs, but you are still on your own with respect to writing Lisp bindings for them.

2. Take the frames one at a time, stuff them into a surface, and blit the surface onto the display. If you want to use OpenGL then stuff the frames into a texture instead and render the texture on the screen. This step is fairly easy.

Hope that helps.

On Tue, Nov 26, 2013 at 1:18 PM, Andres Orellana <andyo...@gmail.com> wrote:
Is it possible to play a video using lispbuilder?

--
You received this message because you are subscribed to the Google Groups "Lispbuilder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lispbuilder...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Elliott Slaughter

"Don't worry about what anybody else is going to do. The best way to predict the future is to invent it." - Alan Kay
Reply all
Reply to author
Forward
0 new messages