title: How can I perform hardware-accelerated H.264 encoding and decoding for streaming?
body: <p>I am able to get the RGBA frame data from the camera, and I want to encode it in H.264 format. I've used FFmpeg to encode and decode H.264 video, but at a frame size of 640x480 it's too slow for my needs.</p>
  
  <p>I'd like to use hardware acceleration to speed up the encoding and decoding, so how would I do that? </p>
  
  <p>Also, I need to be able to stream the encoded video across the network and decode it on the other end. How can this be done?</p>