У ср, 2009-07-29 у 10:51 +0200, Alessandro Ferrari пише:
> 2009/7/29 V0id <[email protected]>
> 
> > У вт, 2009-07-28 у 17:31 +0200, Alessandro Ferrari пише:
> > > Hi dear community,
> > >                                   I've a program stream as a sequence of
> > > frames each of them incapsulated in a pes packet that income from an IP
> > > camera,  I have to desume the AVFormatContext from these pes packet,
> > > although all tutorials on ffmpeg show how to obtain the AVFormatContext
> > by
> > > function av_open_input_file that want as parameter a mpeg file. Anyone
> > know
> > > if there are any tutorial, library or function that can help me?
> > > Thanks in advance, greetings.
> > >
> > I don't understand if you want to receive this data in real time from
> > camera or you trying to open already saved stream. In any way are you
> > able to get information with ffmpeg -i your_source ?
> >
> 
> I receive this data  in real time, the  IP Camera send to me  a  PES
> (program elementary stream ) packet, each PES packet contains a frame coding
> in h.264, when I receive that frame I have to decode it, so it's not an
> already saved stream, but I have to decode and re-encode frame for
> transcoding in real time.
> 
If camera sends this data as rtp/udp or even http stream there is a good chance
that you still will be able to open this stream with av_open_input_file as lavf
has support for this streams (not all streams are supported perfectly), but if
you'll have no luck with internal support may be you should take a look to
https://lists.mplayerhq.hu/pipermail/libav-user/2009-March/002605.html or try to
search this mailing list archive there was several similar discussions.

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

Reply via email to