-
Notifications
You must be signed in to change notification settings - Fork 95
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
Recording in small chunks #335
Comments
Sure! Make a custom stream inheriting from System.IO.Stream, and pass it to the recorder. Then you can do whatever you wish with the bytes in the Write method, like caching and chunking them and writing to the internet. |
Thanks for your response! I want to create small .ts type chunks to support HLS. I can create a custom stream to handle chunking and uploading data during the screen recording. However, I have a few questions to clarify the implementation:
Any additional insights or examples on how to implement this smoothly would be greatly appreciated! |
Pass it to the Record method on your Recorder instance, instead of a file path.
I don't have any strong opinions on the matter. Both will work.
As long as you have all the data, and reassemble the bytes in the correct order, the files will work. The chuncks will not be self contained (if you mean playable on their own), because the header necessary for playback will be in the first chunk. Enabling fragmented mp4 setting will make the files more robust to data loss, and will allow playback before the recording ends, because without it, the header necessary for playback is written at the very end of the recording. |
Is it possible to record screen in small chunks, so that those can be uploaded to a cloud service while the screen recording is in progress? And later merge those on cloud?
The text was updated successfully, but these errors were encountered: