On 06/14/2010 03:35 PM, Dominik Tomczak wrote:
Hello

I try to use libavXXX libraries to do H264 encoding and RTP streaming. I'm
able to do it using FFMpeg itself but now I try to get it from src code to
write my own encoder/streamer. Below is what I do. It does not work, I can't
see VLC plays this stream. I think img convert from RGB->YUV works, H264
encoding too. The problem is with RTP muxing. I do not know how to write
code to use RTP muxer properly. Any hints are warmly welcome.

Just open an output AVFormatContext, with format "rtp", and filename
"rtp://<destination address>:<destination RTP port>". Add one single
AVStream to it (if you have multiple streams - for example audio and
video - create multiple output AVFormatContexts, one per stream).
Then, write the encoded stream to it, as if it was a "regular" output.

You can find some (not too clean, but working) example code in AVStreamer,
here:
http://imedia.disi.unitn.it/avstreamer-v0.3.tgz


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

Reply via email to