* fix stdin close error
* Refactor stream endpoint, fix encoder thread safety and improve tests
* fix and improve test
* remove not None
* use Enum
* use Enum and add todo
* remove poll
* Add stream helper utilities and IVF frame iterator
* fix lint
* some cosmetics
* fix lint
* changes
* improve test
* improve types and test
* add todo for better bitrate calculation