Hi,

Rajesh Bansal wrote:
Dear All,
I am developing a IVR application with help of GNU RTP & SIP libraries. I
have completed all work with audio streaming. Now i want to extend support
to Video Also. So i want to use FFMPEG library for this.

My question is :

How i can convert a video File (H263) into Payloads with H.263 Header so
that i can send these payloads with ORTP send method.

You can open an output with format "rtp" and url "rtp://<dst IP>:<port>"
(so, using the "rtp://" protocol). Then, you write the encoded frames
to it (as if it was a "regular" output file) and libavformat will take
care of packetising the video and sending the RTP packets.

If you do not want to use libavformat for sending the packets, you
can use url_open_dyn_packet_buf(), write the packets, and get the
a buffer containing the packets by using url_close_dyn_buf() (then,
open the dyn_packet_buf again, write other packets, get the buffer
again, etc...). See ffserver.c for details about this technique.


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

Reply via email to