On 27/07/10 20:22, Umakant Goyal wrote:
Thanks you very much for clearing my doubt. now i got your point. i believe
same thing will be applicable for H.263+&  MPEG4.
Exact.

Can u share the API of libavformat that i can use to init RTP stack,open
socket and send/receive stream to/from other end?
It's the same libavformat API you would use to write to a file (for example, to an mp4 file). You can use url_fopen() to open the output sockets (use "rtp:<dst addr>:<dst port>" as an url), then you initilise an AVFormatContext (format type "rtp"), and you call av_write_header() to initialise the RTP stack.
Then, you can send RTP packets with av_interleaved_write_frame().

You can look at output_example.c or ffmpeg.c for more details.


                                Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to