Hi,
Rajeev K. Srinivasan wrote:
> Hi,
>
> I am new to FFMPeg. I am trying to stream to use the RTP library provided by
> FFMpeg for streaming FFMpeg video.
>
> I am looknig for sample code. Is there any link where I can find once.
Streaming over RTP is just like writing to a file: you just need to use
the rtp format, and to provide an "rtp://<destination
address>:<destination port>" url as output file name. Remember that you
need an output per stream (so, if you want to stream audio and video you
neeed to open two outputs: one for the audio stream and one for the
video stream).
Then, you can use avf_sdp_create() for having an SDP description of your
RTP session (needed by the client to play it). Look at ffmpeg.c for an
example.
You can look at output_example.c and ffmpeg.c for some sample code. I
think there also are some tutorials around, explaining how to write
audio and video in a file. Just change the file to an RTP url, and you
are done.
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user