Viet Hung Nguyen wrote:
Hi you all,

I want to develop a server that capture video from source, encode it and
streaming it via rtp. I have successfully captured and ecoded video.

I have look through ffserver and write my own code as follow:
I obtain stream format rtp via "guess_format("rtp", NULL, NULL);"
I open URL via "url_open(&url, "rtp://localhost:5004", URL_WRONLY);"
After got encoded data, I write to rtp format context, get out buffer and
write to url.

I successfully create sdp file and use vlc to play this but nothing
displayed.
From this description, it is kind of difficult to understand what is going
wrong...

If you want some working code, you can have a look at
http://imedia.disi.unitn.it/software.html
(the "real-time encoder" does exactly what you need: captures video from
video4linux2 devices, encodes it, and streams it over RTP; avstreamer-v0.1.tgz
contains some code showing how to read an audio/video file and stream
it over RTP without re-encoding - respect to RTEncoder-v0.1.tgz, it shows
how to cope with both audio and video).


I want to stream video under 3gp format, how can I do?
Read some 3gp standard, and setup the codec parameters according to it :)


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

Reply via email to