Baseflow / screenrecorder

Flutter package which can be used to record flutter widgets
https://pub.dev/packages/screen_recorder
MIT License
64 stars 30 forks source link

Not an Issue, just a suggestion. #6

Closed NeilCaffrey1 closed 3 years ago

NeilCaffrey1 commented 3 years ago

Very impressive.

Can we the run the export on a seperate isolate to speed things up?

ueman commented 3 years ago

Yeah, but it wouldn't help much because image is single threaded. So it would just take as much time on another thread. Also isolates are dart:io only so it won't help on web.

ueman commented 3 years ago

At the moment you can only speed it up by reducing the quality. I plan to make transcoding changeable so you could use ffmpeg on mobile but there's no timeline yet

NeilCaffrey1 commented 3 years ago

Thank you for the speedy reply. I appreciate it.

ueman commented 3 years ago

I looked at the code again and it is already using another isolate: https://github.com/ueman/screenrecorder/blob/main/lib/src/screen_recorder.dart#L120

Flutter's compute functions wraps an isolate.