oddity-ai / video-rs

Video readers, writers, muxers, encoders and decoders for Rust based on ffmpeg libraries.
Apache License 2.0
234 stars 28 forks source link

[Feature Request] Hope to support generating videos sent through http streaming instead of just saving them locally. #30

Closed HiWayne closed 9 months ago

HiWayne commented 9 months ago

I'm doing a simple remote screen sharing. The current solution is to capture the screen frame by frame and combine them into a video and send it to the client via http.

However, this lib can only save video locally, and it lacks the function of adding frame to http video stream (such as add_frame_to_stream).

gerwin3 commented 9 months ago

Depending on exactly what you're trying to do this can actually achieved by using:

Alternatively, if you don't need to decode it before sending it you can Reader::read