How can I obtain encoded video frames in real-time without writing them to a file, so that I can transmit them over the network?