----- Original Message ----- 
From: "Miguel Miranda." <[EMAIL PROTECTED]>
To: "Libav* user questions and discussions" <[email protected]>
Sent: Tuesday, April 15, 2008 6:52 AM
Subject: Re: [libav-user] Decoding UDP Streaming


Hello,

thank you. I checked the dranger tutorial before. But
he only shows how to read from a file.
And the end of the tutorial in the possibles
extensions he commented:

Network support. This video player can't play network
streaming video.

So I would like to see and easy example reading a
video from an UDP stream.


Thank you.




--- Yohann Martineau <[EMAIL PROTECTED]>
escribió:

> On Tue, Apr 15, 2008 at 10:07 AM, Miguel Miranda. <
> [EMAIL PROTECTED]> wrote:
>
> >
> > The question is: Is it possible to use the
> > "av_open_input_file" function for opening an UDP
> > stream.
>
>
> yes
>
>
> >
> > And a second questions is: Are there some
> additional
> > elements to consider for handling the streaming
> > (buffers, packets, etc).
>
>
> take a look at dranger tutorial.
>
>
> >
> >
> > Thank you in advance.
> >
> > // avcodec_sample.0.4.9.cpp
>
>
> this version is really outdated. please updated to a
> more recent version.

One way is to implement your own URLProtocol with your own read function to 
support streaming.  If you want to support seeking, you'll need to also 
implement your own seek function and "trick" the library into thinking you 
are using a file based approach.  Instead of av_open_input_file, try using 
av_open_input_stream...

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

Reply via email to