1 Sep 2008 06:55
Re: libavformat on a stream
i know that but using http protocol directly is not my aim My aim is to give
the media buffer directly to libavformat without using any present protocols
Manas
On Mon, Sep 1, 2008 at 1:38 AM, Luca Abeni <lucabe72@...> wrote:
> Manas Bhattacharya wrote:
> > Hi all,
> > i am developing an application which uses libavformat to demux a
> stream
> > .Basically wahat i need to do is store an incoming http progressive
> donwload
> > in a buffer and input that buffer to libavformat. Do i need to implement
> > new protocol for that ?
>
> libavformat already supports http as an input protocol. Just use
> "http://..." as a file name.
>
>
> Luca
> _______________________________________________
> libav-user mailing list
> libav-user@...
> https://lists.mplayerhq.hu/mailman/listinfo/libav-user
>
Seriously, you cannot use the system time for computing timestamps (the
resulting value will never be completely correct, will be affected by
network jitter, system load, and many other unpredictable factors...)
> I will check it out - just clarify one thing: in order to keep the
> frame similar as possible to the source, I need to re-stream them with
> the same period as in the frames coming from SDK?
What do you mean by "re-stream them with the same period"? Surely, you
have to fill AVPacket with the timestamps values coming from the SDK
(be careful with PTS/DTS differences...). And then you can try to
send out the frames as soon as the SDK provides them.
>> Or maybe the problem is that it is using a variable frame rate?
RSS Feed