Hi Dario,
Dario wrote:
[...]
> I'm using Live555 for streaming MPEG4 video stream over network.
> Sending and receiving frames is done perfectly. (Checked the headers of the
> frames).
> But when feeding the frame into avcodec_decode_video first 3 frames
> got_picture returns
> 0, and then it starts to decode every other frame.
I think this is expected... If you have B frames, the decoder cannot start to
decode
frames immediately.
> And when frame is decoded got_picture returns value of 200. (?).
This looks ok, too. A nonzero value means that avcodec_decode_video() is
returning
a decoded frame.
> This is causing incorect deltas in P and B frames.
What do you mean with this? Are the generated PTSs and DTSs wrong? I use
libavcodec and libavformat for streaming and receiving MPEG4 video over RTP,
and everything seems to work well.
> Every I frame puts it back to normal.
> Anyone knows what is causing this?
Maybe you are seeing the usual decoding-order/display-order confusion?
I had problems streaming video with B frames in the past, but that was
caused by the fact that I was using DTSs as RTP timestamps (instead of PTSs).
Try to check if you are correctly handling the timestamps...
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user