On Tue, Jul 27, 2010 at 2:05 PM, avcoder <[email protected]> wrote:

> Hi, just prepare your bitstream in AVPacket, and call
> avcodec_decode_video2() directly
>
> int  avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture,
>                         int *got_picture_ptr,
>                         AVPacket *avpkt)
>
>
> There is no any relationship with av_open_input_file(), just forget it!
>
> avcodec_decode_video2() is natively happy with buffer, but not a so-called
> FILE
>
>
Hi,

According to your suggestion, I have to write a new av_read_frame which
points to my bit-stream buffer.
But how can I determine the AVPacket.size which contains each frame in H.264
bit-stream ?
I know that avcodec_decode_video2 will need AVPacket.data and AVPacket.size
to decode H.264 bit-stream.

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

Reply via email to