On 10/07/14 06:33, Psychesnet Hsieh wrote: > > 2. Who has the sample code or any suggestion, please help me out?? > Seems you are missing calling avcodec_encode_video2() to fill the packet with compressed data.