On Wed, 12 Oct 2011, Luca Barbato wrote:

On 10/12/11 1:54 PM, Martin Storsjö wrote:
On Wed, 12 Oct 2011, Luca Barbato wrote:

Ok, once we got enough time and will we should think about expose more
rtp layer properly I'm afraid...

Applied

And yes, exposing parts of that might be valuable, but as it is today it
isn't really ready for that...

I'd love to be able to directly use it from feng and I guess others would like as well ^^;

Actually, you should be able to do what you want to do in feng with the public APIs already. What you want to do is RTP packetization and perhaps also sending the data over UDP, right? That's possible with the RTP muxer interface. The RTSP muxer does this using only the public APIs - for sending data over UDP, it opens one RTP muxer and one rtp:// AVIOContext for each stream, and just writes data using that. For sending data over TCP, it uses the RTP muxer in the same way, but uses avio_dyn_buf for getting a custom AVIOContext that you can extract the data from later, and send it in any TCP socket.

(Actually, it seems to be using ffio_open_dyn_packet_buf which has become private in the avio remodelling, but we can either make that a public function, or you can do the same yourself with a bit of custom AVIOContext callbacks.)

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to