Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video support? #163

Open
kflak opened this issue Feb 28, 2024 · 4 comments
Open

Video support? #163

kflak opened this issue Feb 28, 2024 · 4 comments

Comments

@kflak
Copy link

kflak commented Feb 28, 2024

Hi,

I'm dipping my toes into the lisp waters (again) and wondering if there's any way to get video input/playback working with sketch? I'm on Arch Linux.

@Kevinpgalligan
Copy link
Contributor

Not currently, no. I've been looking to add support for saving a video recording of a sketch, but haven't gotten around to it yet. Dunno what it would take to be able to play videos in a sketch -- from what I can tell, the support for video is lacking in the CL ecosystem.

@Kevinpgalligan
Copy link
Contributor

These are the currently supported resource types:

((:png :jpg :jpeg :tga :gif :bmp) :image)
  ((:ttf :otf) :typeface))

A workaround would be to use a gif, or dump the frames of your video as PNG files and cycle through them.

@kflak
Copy link
Author

kflak commented Feb 29, 2024

Thanks! I am looking at doing live video processing of a webcam, which would be tricky to do with that approach (although there might be some way to get around it with ffmpeg/v4l2...?). For video files the frame dump option could be plausible. I guess that's what processing and openFrameworks does when it comes down to it: displaying one image after another... Although that approach would still need some way to make sure that the video playback is happening at the right speed.

@Kevinpgalligan
Copy link
Contributor

Yeah, maybe it could work with ffmpeg/v4l2, though I don't have experience with those and don't know if there would be an efficient way to dump their output into Sketch's OpenGL buffers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants