videolang / video

Source Code for Video language.
https://lang.video
Apache License 2.0
125 stars 12 forks source link

Port-based IO API? #36

Open jackfirth opened 6 years ago

jackfirth commented 6 years ago

It might be useful for Video to provide a way to read and write video data to and from arbitrary Racket ports, instead of only to and from files. I think a possible way to support this would be for clip to accept an input port from which it reads video data. Maybe it would have to be a thunk that produces a port though? I'm not sure how lazy video construction is or when exactly the file is read into memory.

LeifAndersen commented 6 years ago

This is also possible, although I will have to think about how to fit this into the current architecture.

Thanks for the suggestion.