[Libav-user] Decoding Problem (got_picture always return 0)

ZHAO Yinxia hydezhao at gmail.com
Fri Mar 23 11:28:48 CET 2012


Hi,

If i am right, got_picture_ptr should be zero in my case because i send one
frame each time. While there are bad pointers in picture->data, do you have
any idea?

On Fri, Mar 23, 2012 at 10:36 AM, ZHAO Yinxia <hydezhao at gmail.com> wrote:

> Hi Qinfan,
>
> 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.
>
> Sincerely,
>
> 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...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120323/a6e3d324/attachment.html>


More information about the Libav-user mailing list