On 7/27/2010 2:35 AM, Nhat Huy wrote:
On Tue, Jul 27, 2010 at 3:04 PM, avcoder<[email protected]>  wrote:

On Tue, Jul 27, 2010 at 1:43 PM, Nhat Huy<[email protected]>  wrote:
Hi,

According to your suggestion, I have to write a new av_read_frame which
points to my bit-stream buffer.

No! you do not need it, just tell ffmpeg your buffer and length ,
FFmpeg will do everything for you

But how can I determine the AVPacket.size which contains each frame in
H.264
bit-stream ?

I will share some pieces of code.
you should grasp my idea based on the code!
Note: my code was based on older FFmpeg APIs.

Thank you very much.
_______________________________________________

That's fine if you're getting only the raw video packets. Not so fine if you are getting a video stream in some container format and need to go through all the stream processing. I thought it was the latter.

Andy

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

Reply via email to