Check out https://github.com/pion/mediadevices it’s an attempt to make that way easier
> Capture camera stream, encode it in H264/VP8/VP9, and send it to a RTP server
It says here few encodings but below it’s only h264 package, for others I would have to write my own package I assume? Also, any AV1 support if hw allow it?