On 10/12/11 2:25 PM, Martin Storsjö wrote:
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?

No =) I'd like to use the rtp packetizers but keep the network part on my side.

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.

That might work up to a point but there are some pitfalls =\

(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.)

Yes, some part of ffio will need to be public again to do such stuff ^^;

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

Reply via email to