Hi,

Mahmoud M'HIRI wrote:
[...]
>>> I have to listen to UDP packets, extract RTP packets, and
>>> retrieve the payload.
>> Why do you want to parse RTP packets by yourself if libavformat can
>> already do it?
> 
> 
> well, it's not my may to spend my free time but because didn't knew about
> that!
 >
> I spent the weekend in printing and reading all the code related to inputs
> and networking in ffmpeg (udp.c, rtp.c, rtp.h, avio.c, avio.h,....), here
> what I figured out: ffmpeg implements methods of reading streams from file,
> http, rtp, udp, ...
[...]

 From your description, it's still not clear why you do not want to use
av_open_input_file(), av_read_frame(), and the usual libav* API, anyway...

[...]
> int main ( int argc, char *argv[] )
> {
>     // Initialization
>     av_register_all();
> 
>     URLContext *h;
>     const char *filename = "udp://0.0.0.0:8060/";

This will hardly work. What you probably want is
"udp://0.0.0.0?localport=8060".



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

Reply via email to