Hi jayant,

jayant wrote:
> I am new to FFmpeg.I want to use FFmpeg libraries to stream H.264 encoded 
> data on RTSP.

libavformat is already able to stream H.264 video over RTP (you just have to 
use the
rtp output format, and to specify and "rtp://..." url as a file name for the 
output.
However, it does not provide any RTSP server functionalities.

You can look at the mailing list archives for some examples about streaming 
audio
and video over RTP with the "ffmpeg" program.

You can look at ffserver.c for a possible RTSP server implementation that uses
libavformat for streaming RTP packets. H.264 video should be supported.


> This is to be live streaming where the encoded H.264 data will be available 
> inside a buffer which will be provided to FFmpeg to stream on RTP.

It seems to me that ffserver might already be able to do this. In theory, if
you configure an RTSP stream (see the "test1-rtsp.mpg" stream which is currently
commented out in ffserver.conf) getting the input from a live feed, it should 
work
(I say "should work" because I haven't recently tried rtsp/rtp with live feeds).

Just try it, (and if it does not work, fixing ffserver is simpler than writing a
new server from scratch :).


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

Reply via email to