¡@

Home 

2014/10/15 ¤U¤È 10:12:24

iphone Programming Glossary: out_size

Encoding images to video with ffmpeg

http://stackoverflow.com/questions/3334939/encoding-images-to-video-with-ffmpeg

strange so thats the code Register all formats and codecs av_register_all AVCodec codec AVCodecContext c NULL int i out_size size outbuf_size FILE f AVFrame picture uint8_t outbuf printf Video encoding n find the mpeg video encoder codec avcodec_find_encoder.. data picture linesize 0 c height outpic data outpic linesize Here is where I try to convert to YUV encode the image out_size avcodec_encode_video c outbuf outbuf_size outpic printf encoding frame 3d size 5d n i out_size fwrite outbuf 1 out_size.. to YUV encode the image out_size avcodec_encode_video c outbuf outbuf_size outpic printf encoding frame 3d size 5d n i out_size fwrite outbuf 1 out_size f free buffer buffer NULL get the delayed frames for out_size i fflush stdout out_size avcodec_encode_video..