[Libav-user] Decoding Problem (got_picture always return 0)
hydezhao at gmail.com
Fri Mar 23 10:36:00 CET 2012
Thank you very much for your hints!
I monitored the sending frames and the receiving frames, and they are the
same. In fact, at the server end, I generate frames one by one, and encode
it, then send it. Therefore, at the client end, they must be received one
frame by one frame. So I think i don't have "incomplete frame" issue.
On Fri, Mar 23, 2012 at 1:39 AM, 吴沁凡 <wuqinfan at gmail.com> wrote:
> The incoming data received by the client can be an incomplete frame (or
> may be more than one frame, since the data is not organized as the same as
> you wrote at server end), so you can not decode it directly.
> Use function av_parser_parse2() first to get complete frame one by one
> from the incoming data.
> for usage of av_parse_parse2(), please refer to avcodec.h
> Here is my code for decoding. I also tried a lot, since the examples in
> ffmpeg only tell about decode complete frames.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user