Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.48k stars 174 forks source link

Zero copy hardware accellerated video encoding of OpenGL frames #1056

Open mateli opened 5 years ago

mateli commented 5 years ago

1055 Describes how to get fast video rendering. This issue is about getting fast output of encoded video.

The principle here is to render do either full or offscreen rendering for a few different use cases, then have OpenMAX encode the output and get an encoded video stream back from the GPU.

As hardware encoders has patents fees paid by manufacturers using them is royalty free for us. What encoders are available depends on the video hardware.

Use cases:

  1. Fast screen recording. Run the application while getting a video documenting game play.
  2. Fast streaming. Play the game while streaming video to viewers.
  3. Fast remote gaming. Run the game on an offscreen output and stream the content to the player. Could be integrated into software like a VNC or RDP server.
  4. Video transcoding and special effects. Use Kha to transform a video in all the ways that it is capable of. Requires implementation of #1055.
RobDangerous commented 5 years ago

I have no plans to work on adding video encoding myself but would take pull requests.