[Libav-user] Avcodec_decode_video2 clariifcation

2012-06-13 Thread krishnaks
Hi, I am using following API to decode H264 frame. int avcodec_decode_video2(AVCodecContext *avctx, AVFrame *picture, int *got_picture_ptr, const AVPacket *avpkt); But whenever 3rd parameter got_picture_ptr will be false, after that Whats the deco

Re: [Libav-user] How to know if lavf guessed the duration from the bitrate or not?

2012-06-13 Thread Michael Bradshaw
On Tue, Jun 12, 2012 at 8:12 PM, Michael Niedermayer wrote: > On Tue, Jun 12, 2012 at 11:44:03AM -0600, Michael Bradshaw wrote: >> avformat_find_stream_info() attempts to find the file's and streams' >> durations, but it will guess them based on the bitrate if it can't >> determine the actual dura

Re: [Libav-user] avio_* APIs and muxing to memory

2012-06-13 Thread Carl Eugen Hoyos
Michael Chisholm writes: > Is a NULL buffer supported (if not documented) if you set the > direct flag? direct is the intended replacement, while it is not a good idea to pass NULL (that's why it is not documented), it may work. A better idea is to pass a buffer, note that neither the old API