Re: [Libav-user] How to process incomming AVFrame pointer in a decoder ?

2016-07-18 Thread ssshukla26
Hi guyz,

What I found out is that the decoder is getting *avpkt->size* as *0 (zero)*
under the below function after some 67 frames and hence it closing abruptly.

*int qhw_decode_frame (AVCodecContext *avctx, void *pframe, int *got_frame,
AVPacket *avpkt);*

Can anyone please help. Am so much stuck.



--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-How-to-process-incomming-AVFrame-pointer-in-a-decoder-tp4662357p4662365.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user


[Libav-user] How to process incomming AVFrame pointer in a decoder ?

2016-07-15 Thread ssshukla26
Hi,

I am implementing the custom decoder of qualcomm chipset into ffmpeg, have a
working linux application for the same. Every thing is working fine except
one thing, that is I am unable to fill decoded data into in coming AVFrame
pointer. 

My implementation of decoder has the following function to decode frames,
*int qhw_decode_frame (AVCodecContext *avctx, void *pframe, int *got_frame,
AVPacket *avpkt);*

First of all the do_decode call was asserting with the following error
*Assertion avctx->internal->buffer_frame->buf[0] failed at
libavcodec/utils.c:2772*

So I used *av_frame_get_buffer* function to allocate memory to data buffers,
but still the pipe (as follows) isn't working.

*$ ffmpeg -f h264 -c:v h264_qhw -i no_mans_sky_1080p_10sec.h264 -vcodec
rawvideo -pix_fmt nv12_tiled -s 1920x1080 -r 30 output.yuv -loglevel debug
*

Note: I confirm my decoder is working by *dumping* the first decode frame on
a file, as the decode function is only called once and then it hang up, just
hanp up and do nothing.

Please help am so much stuck, please guyz need some insight on how to
process and fill the incoming AVFrame pointer from do_decode function.




--
View this message in context: 
http://libav-users.943685.n4.nabble.com/Libav-user-How-to-process-incomming-AVFrame-pointer-in-a-decoder-tp4662357.html
Sent from the libav-users mailing list archive at Nabble.com.
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user