Hi again,

How to open UDP stream using libavformat API ?

Is it something like :

avformat_alloc_output_context2(&oc, NULL, "mpegts", "udp://localhost:7777");

?

On Wed, Mar 28, 2012 at 4:00 PM, Kalileo <[email protected]> wrote:

>  On Mar 28, 2012, at 13:27 , ashika umanga wrote:
>
> > Greetings all,
> > I successfully managed to encode/decode H264 video and Speex audio using
> "libavcodec" and save in MKV container
> > using "libavformat".
> > Now instead of creating a container file , I want to stream audio and
> video over our local network.
> > I saw that RTP is the standarized way to do this.
> > According to libavformat sourcecode,it does not support Speex with RTP.
> > Anyother suggestions on streaming H264/Speex over the LAN?
> > What things I should read before If I implement Speex support in
> libavformat RTP ?
> >
> > Can I send multiplexed audio+video stream(multiplexed into MKV) over RTP
> ?
> > Or two seperate streams for audio and video ?
> >
>
> sorry, no idea about speex, but if you want to stream h264 and audio IMHO
> the easiest way is to use mpegts container and to stream to udp (instead of
> rtp).
>
> Simply use mpegts as muxer and open the output "file" as
> udp://targetIP:port
>
> When you have that working you can decide if you still need rtp.
>
> _______________________________________________
> libav-api mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-api
>
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to