[libav-api] Stream video from OpenGL application
mspiegelmock at gmail.com
Tue May 8 06:18:14 CEST 2012
RTP is a codec transport mechanism, you need something to manage a
streaming session such as RTSP. The DESCRIBE method for RTSP returns a
session description file (sdp) which is used to set up RTP.
On Mon, May 7, 2012 at 9:03 PM, Daniel Henell <henell at gmail.com> wrote:
> I have a OpenGL application that I need to monitor from another
> computer on the network. I tried using different VNC software but the
> performance was very bad. Then I came up with the idea to use libav to
> stream the output of the program (using glReadPixels) and use VLC to
> connect to this stream.
> I spent last day trying to get it to work without any success. I
> couldn't find any code examples on how to set up RTP/UDP/or any kind
> of streaming.
> This is my code (Sorry, it's a bit ugly at the moment):
> http://pastebin.com/7YkbGbDn (VideoEncoder.h)
> http://pastebin.com/v60Q5cY4 (VideoEncoder.cc)
> What happens right now when I connect to "rtp://127.0.0.1:5004" with
> VLC is that I get the following error message:
> SDP required:
> A description in SDP format is required to receive the RTP stream.
> Note that rtp:// URIs cannot work with dynamic RTP payload format
> I would appreciate any kind of help or directions, thank you!
> Daniel Henell
> libav-api mailing list
> libav-api at libav.org
More information about the libav-api